org.eclipse.nebula.widgets.nattable.ui.matcher
Class MouseEventMatcher

java.lang.Object
  extended by 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


Field Summary
static int LEFT_BUTTON
           
static int RIGHT_BUTTON
           
 
Constructor Summary
MouseEventMatcher()
           
MouseEventMatcher(int stateMask, String eventRegion)
           
MouseEventMatcher(int stateMask, String eventRegion, int button)
          Constructor
MouseEventMatcher(String eventRegionName)
           
MouseEventMatcher(String eventRegion, int button)
           
 
Method Summary
static 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 equals(Object obj)
           
 int getButton()
           
 String getEventRegion()
           
 int getStateMask()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 - GridRegion
button -
See Also:
"org.eclipse.swt.events.MouseEvent.stateMask", {@link MouseEventMatcher#LEFT_BUTTON}, {@link MouseEventMatcher#RIGHT_BUTTON} can be used for convenience
Method Detail

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.