org.eclipse.nebula.widgets.nattable.ui.matcher
Class MouseEventMatcher
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
- All Implemented Interfaces:
- IMouseEventMatcher
- Direct Known Subclasses:
- CellLabelMouseEventMatcher, CellPainterMouseEventMatcher, ColumnHeaderClickEventMatcher, ColumnResizeEventMatcher, RowResizeEventMatcher
public class MouseEventMatcher
- extends Object
- implements IMouseEventMatcher
LEFT_BUTTON
public static final int LEFT_BUTTON
- See Also:
- Constant Field Values
RIGHT_BUTTON
public static final int RIGHT_BUTTON
- See Also:
- Constant Field Values
MouseEventMatcher
public MouseEventMatcher()
MouseEventMatcher
public MouseEventMatcher(String eventRegionName)
MouseEventMatcher
public MouseEventMatcher(String eventRegion,
int button)
MouseEventMatcher
public MouseEventMatcher(int stateMask,
String eventRegion)
MouseEventMatcher
public MouseEventMatcher(int stateMask,
String eventRegion,
int button)
- Constructor
- Parameters:
stateMask
- eventRegion
- GridRegionbutton
- - See Also:
- "org.eclipse.swt.events.MouseEvent.stateMask",
{@link MouseEventMatcher#LEFT_BUTTON},
{@link MouseEventMatcher#RIGHT_BUTTON} can be used for convenience
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 interface IMouseEventMatcher
event
- SWT mouse event
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getStateMask
public int getStateMask()
getEventRegion
public String getEventRegion()
getButton
public int getButton()
columnHeaderLeftClick
public static MouseEventMatcher columnHeaderLeftClick(int mask)
columnHeaderRightClick
public static MouseEventMatcher columnHeaderRightClick(int mask)
rowHeaderLeftClick
public static MouseEventMatcher rowHeaderLeftClick(int mask)
rowHeaderRightClick
public static MouseEventMatcher rowHeaderRightClick(int mask)
bodyLeftClick
public static MouseEventMatcher bodyLeftClick(int mask)
bodyRightClick
public static MouseEventMatcher bodyRightClick(int mask)
columnGroupHeaderLeftClick
public static MouseEventMatcher columnGroupHeaderLeftClick(int mask)
columnGroupHeaderRightClick
public static MouseEventMatcher columnGroupHeaderRightClick(int mask)
rowGroupHeaderLeftClick
public static MouseEventMatcher rowGroupHeaderLeftClick(int mask)
rowGroupHeaderRightClick
public static MouseEventMatcher rowGroupHeaderRightClick(int mask)
Copyright © 2015. All rights reserved.