Class HierarchicalRowHideIndicatorEventMatcher
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
org.eclipse.nebula.widgets.nattable.hideshow.indicator.HierarchicalRowHideIndicatorEventMatcher
- All Implemented Interfaces:
IMouseEventMatcher
MouseEventMatcher that checks for cell edges at row borders and for
the existence of row hide indicator labels in the level headers of a
HierarchicalTreeLayer.- Since:
- 1.6
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
LEFT_BUTTON, RIGHT_BUTTON -
Constructor Summary
Constructors -
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
-
HierarchicalRowHideIndicatorEventMatcher
public HierarchicalRowHideIndicatorEventMatcher(int stateMask, int button) - Parameters:
stateMask- The state of the keyboard modifier keys and mouse masks at the time the event was generated to match.button- The mouse button that should be pressed to match.
-
-
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 classMouseEventMatcher- 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
-