public class DisplayModeMouseEventMatcher extends Object implements IMouseEventMatcher
DisplayMode of
the cell at the mouse event's position. Optionally, the matcher can be
chained with an additional IMouseEventMatcher (results are and'ed).| Constructor and Description |
|---|
DisplayModeMouseEventMatcher(String displayMode)
Creates a
DisplayModeMouseEventMatcher that checks only if the
specified display mode matches. |
DisplayModeMouseEventMatcher(String displayMode,
IMouseEventMatcher aggregate)
Creates a
DisplayModeMouseEventMatcher that checks if the
specified display mode matches and the aggregate matcher. |
| Modifier and Type | Method and Description |
|---|---|
static DisplayModeMouseEventMatcher |
displayMode(String displayMode) |
static DisplayModeMouseEventMatcher |
displayMode(String displayMode,
IMouseEventMatcher aggregate) |
boolean |
matches(NatTable natTable,
org.eclipse.swt.events.MouseEvent event,
LabelStack regionLabels)
Figures out if the mouse event occurred in the supplied region.
|
public DisplayModeMouseEventMatcher(String displayMode)
DisplayModeMouseEventMatcher that checks only if the
specified display mode matches.displayMode - the DisplayMode to be matched.public DisplayModeMouseEventMatcher(String displayMode, IMouseEventMatcher aggregate)
DisplayModeMouseEventMatcher that checks if the
specified display mode matches and the aggregate matcher.displayMode - the DisplayMode to be matched.aggregate - (optional) an additional IMouseEventMatcher to be
chained with the result of this matcher (results are and'ed).public boolean matches(NatTable natTable, org.eclipse.swt.events.MouseEvent event, LabelStack regionLabels)
IMouseEventMatchermatches in interface IMouseEventMatchernatTable - The NatTable on which the MouseEvent occured.event - The SWT MouseEvent.regionLabels - The LabelStack with the region labels of the
MouseEvent coordinates.true if the MouseEvent matches this
IMouseEventMatcher and should therefore be handled,
false if notpublic static DisplayModeMouseEventMatcher displayMode(String displayMode, IMouseEventMatcher aggregate)
displayMode - the DisplayMode to be matched.aggregate - (optional) an additional IMouseEventMatcher to be
chained with the result of this matcher (results are and'ed).DisplayModeMouseEventMatcher that checks if the
specified display mode matches and the aggregate matcher.public static DisplayModeMouseEventMatcher displayMode(String displayMode)
displayMode - the DisplayMode to be matched.DisplayModeMouseEventMatcher that checks only if the
specified display mode matches.Copyright © 2016. All rights reserved.