Class ComboBoxClearFilterIconMouseEventMatcher
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
org.eclipse.nebula.widgets.nattable.ui.matcher.CellPainterMouseEventMatcher
org.eclipse.nebula.widgets.nattable.filterrow.combobox.ComboBoxClearFilterIconMouseEventMatcher
- All Implemented Interfaces:
IMouseEventMatcher
Specialization of a
ClearFilterIconMouseEventMatcher that only
matches for the filter row region if a filter is applied in the clicked cell
and the click was executed on the painted icon in that cell (usually the
clear filter icon) if the filter row painter is used with the Excel like
combo box filters.- Since:
- 2.1
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
LEFT_BUTTON, RIGHT_BUTTON -
Constructor Summary
ConstructorsConstructorDescriptionComboBoxClearFilterIconMouseEventMatcher(FilterRowPainter filterRowPainter, IComboBoxDataProvider comboBoxDataProvider) Create a newComboBoxClearFilterIconMouseEventMatcherfor the givenFilterRowPainter -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(NatTable natTable, org.eclipse.swt.events.MouseEvent event, LabelStack regionLabels) Figures out if the mouse event occurred in the supplied region.Methods inherited from class org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
bodyLeftClick, bodyRightClick, columnGroupHeaderLeftClick, columnGroupHeaderRightClick, columnHeaderLeftClick, columnHeaderRightClick, equals, getButton, getEventRegion, getStateMask, hashCode, rowGroupHeaderLeftClick, rowGroupHeaderRightClick, rowHeaderLeftClick, rowHeaderRightClick
-
Constructor Details
-
ComboBoxClearFilterIconMouseEventMatcher
public ComboBoxClearFilterIconMouseEventMatcher(FilterRowPainter filterRowPainter, IComboBoxDataProvider comboBoxDataProvider) Create a newComboBoxClearFilterIconMouseEventMatcherfor the givenFilterRowPainter- Parameters:
filterRowPainter- TheFilterRowPainterneeded to determine the filter icon painter.comboBoxDataProvider- TheIComboBoxDataProviderthat is used to fill the filter comboboxes. Needed here to determine whether a filter is applied or not.
-
-
Method Details
-
matches
public boolean matches(NatTable natTable, org.eclipse.swt.events.MouseEvent event, LabelStack regionLabels) Description copied from interface:IMouseEventMatcherFigures out if the mouse event occurred in the supplied region.- Specified by:
matchesin interfaceIMouseEventMatcher- Overrides:
matchesin classCellPainterMouseEventMatcher- Parameters:
natTable- The NatTable on which theMouseEventoccured.event- The SWTMouseEvent.regionLabels- TheLabelStackwith the region labels of theMouseEventcoordinates.- Returns:
trueif theMouseEventmatches thisIMouseEventMatcherand should therefore be handled,falseif not
-