Class FilterRowMouseEventMatcher
java.lang.Object
org.eclipse.nebula.widgets.nattable.filterrow.event.FilterRowMouseEventMatcher
- All Implemented Interfaces:
IMouseEventMatcher
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aFilterRowMouseEventMatcherthat checks for theGridRegion.FILTER_ROWin the region labels.FilterRowMouseEventMatcher(int button) Creates aFilterRowMouseEventMatcherthat checks for theGridRegion.FILTER_ROWin the region labels and additionally checks for the given mouse button. -
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.
-
Constructor Details
-
FilterRowMouseEventMatcher
public FilterRowMouseEventMatcher()Creates aFilterRowMouseEventMatcherthat checks for theGridRegion.FILTER_ROWin the region labels. -
FilterRowMouseEventMatcher
public FilterRowMouseEventMatcher(int button) Creates aFilterRowMouseEventMatcherthat checks for theGridRegion.FILTER_ROWin the region labels and additionally checks for the given mouse button.- Parameters:
button- The mouse button that should be additionally checked, e.g.MouseEventMatcher.LEFT_BUTTON- Since:
- 2.2
-
-
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- 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
-