Class MouseEventMatcher
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
- All Implemented Interfaces:
IMouseEventMatcher
- Direct Known Subclasses:
CellLabelMouseEventMatcher,CellPainterMouseEventMatcher,ColumnHeaderClickEventMatcher,ColumnHideIndicatorEventMatcher,ColumnResizeEventMatcher,FillHandleEventMatcher,HierarchicalRowHideIndicatorEventMatcher,RowHideIndicatorEventMatcher,RowResizeEventMatcher
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMouseEventMatcher(int stateMask, String eventRegion) MouseEventMatcher(int stateMask, String eventRegion, int button) ConstructorMouseEventMatcher(String eventRegionName) MouseEventMatcher(String eventRegion, int button) -
Method Summary
Modifier and TypeMethodDescriptionstatic MouseEventMatcherbodyLeftClick(int mask) static MouseEventMatcherbodyRightClick(int mask) static MouseEventMatchercolumnGroupHeaderLeftClick(int mask) static MouseEventMatchercolumnGroupHeaderRightClick(int mask) static MouseEventMatchercolumnHeaderLeftClick(int mask) static MouseEventMatchercolumnHeaderRightClick(int mask) booleanintintinthashCode()booleanmatches(NatTable natTable, org.eclipse.swt.events.MouseEvent event, LabelStack regionLabels) Figures out if the mouse event occurred in the supplied region.static MouseEventMatcherrowGroupHeaderLeftClick(int mask) static MouseEventMatcherrowGroupHeaderRightClick(int mask) static MouseEventMatcherrowHeaderLeftClick(int mask) static MouseEventMatcherrowHeaderRightClick(int mask)
-
Field Details
-
LEFT_BUTTON
public static final int LEFT_BUTTON- See Also:
-
RIGHT_BUTTON
public static final int RIGHT_BUTTON- See Also:
-
-
Constructor Details
-
MouseEventMatcher
public MouseEventMatcher() -
MouseEventMatcher
-
MouseEventMatcher
-
MouseEventMatcher
-
MouseEventMatcher
Constructor- Parameters:
stateMask- the state of the keyboard modifier keys and mouse masks at the time the event was generated.eventRegion- the grid region in which the mouse event should be matchedbutton- the button that was pressed or released, e.g.LEFT_BUTTON,RIGHT_BUTTON- See Also:
-
MouseEvent.stateMaskGridRegionMouseEvent.button
-
-
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
-
equals
-
hashCode
public int hashCode() -
getStateMask
public int getStateMask() -
getEventRegion
-
getButton
public int getButton() -
columnHeaderLeftClick
-
columnHeaderRightClick
-
rowHeaderLeftClick
-
rowHeaderRightClick
-
bodyLeftClick
-
bodyRightClick
-
columnGroupHeaderLeftClick
-
columnGroupHeaderRightClick
-
rowGroupHeaderLeftClick
-
rowGroupHeaderRightClick
-