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 MouseEventMatcher
bodyLeftClick
(int mask) static MouseEventMatcher
bodyRightClick
(int mask) static MouseEventMatcher
columnGroupHeaderLeftClick
(int mask) static MouseEventMatcher
columnGroupHeaderRightClick
(int mask) static MouseEventMatcher
columnHeaderLeftClick
(int mask) static MouseEventMatcher
columnHeaderRightClick
(int mask) boolean
int
int
int
hashCode()
boolean
matches
(NatTable natTable, org.eclipse.swt.events.MouseEvent event, LabelStack regionLabels) Figures out if the mouse event occurred in the supplied region.static MouseEventMatcher
rowGroupHeaderLeftClick
(int mask) static MouseEventMatcher
rowGroupHeaderRightClick
(int mask) static MouseEventMatcher
rowHeaderLeftClick
(int mask) static MouseEventMatcher
rowHeaderRightClick
(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.stateMask
GridRegion
MouseEvent.button
-
-
Method Details
-
matches
public boolean matches(NatTable natTable, org.eclipse.swt.events.MouseEvent event, LabelStack regionLabels) Description copied from interface:IMouseEventMatcher
Figures out if the mouse event occurred in the supplied region.- Specified by:
matches
in interfaceIMouseEventMatcher
- Parameters:
natTable
- The NatTable on which theMouseEvent
occured.event
- The SWTMouseEvent
.regionLabels
- TheLabelStack
with the region labels of theMouseEvent
coordinates.- Returns:
true
if theMouseEvent
matches thisIMouseEventMatcher
and should therefore be handled,false
if 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
-