Class DisplayModeMouseEventMatcher
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.matcher.DisplayModeMouseEventMatcher
- All Implemented Interfaces:
IMouseEventMatcher
This class is used to check a mouse event against the
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 Summary
ConstructorsConstructorDescriptionDisplayModeMouseEventMatcher(String displayMode) Deprecated.DisplayModeMouseEventMatcher(String displayMode, IMouseEventMatcher aggregate) Deprecated.Use constructor withDisplayModeparameter.DisplayModeMouseEventMatcher(DisplayMode displayMode) Creates aDisplayModeMouseEventMatcherthat checks only if the specified display mode matches.DisplayModeMouseEventMatcher(DisplayMode displayMode, IMouseEventMatcher aggregate) Creates aDisplayModeMouseEventMatcherthat checks if the specified display mode matches and the aggregate matcher. -
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayModeMouseEventMatcherdisplayMode(String displayMode) Deprecated.static DisplayModeMouseEventMatcherdisplayMode(String displayMode, IMouseEventMatcher aggregate) Deprecated.static DisplayModeMouseEventMatcherdisplayMode(DisplayMode displayMode) static DisplayModeMouseEventMatcherdisplayMode(DisplayMode displayMode, IMouseEventMatcher aggregate) booleanmatches(NatTable natTable, org.eclipse.swt.events.MouseEvent event, LabelStack regionLabels) Figures out if the mouse event occurred in the supplied region.
-
Constructor Details
-
DisplayModeMouseEventMatcher
Deprecated.Use constructor withDisplayModeparameter.Creates aDisplayModeMouseEventMatcherthat checks only if the specified display mode matches.- Parameters:
displayMode- theDisplayModeto be matched.
-
DisplayModeMouseEventMatcher
Creates aDisplayModeMouseEventMatcherthat checks only if the specified display mode matches.- Parameters:
displayMode- theDisplayModeto be matched.- Since:
- 2.0
-
DisplayModeMouseEventMatcher
Deprecated.Use constructor withDisplayModeparameter.Creates aDisplayModeMouseEventMatcherthat checks if the specified display mode matches and the aggregate matcher.- Parameters:
displayMode- theDisplayModeto be matched.aggregate- (optional) an additionalIMouseEventMatcherto be chained with the result of this matcher (results are and'ed).
-
DisplayModeMouseEventMatcher
Creates aDisplayModeMouseEventMatcherthat checks if the specified display mode matches and the aggregate matcher.- Parameters:
displayMode- theDisplayModeto be matched.aggregate- (optional) an additionalIMouseEventMatcherto be chained with the result of this matcher (results are and'ed).- Since:
- 2.0
-
-
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
-
displayMode
@Deprecated public static DisplayModeMouseEventMatcher displayMode(String displayMode, IMouseEventMatcher aggregate) Deprecated.- Parameters:
displayMode- theDisplayModeto be matched.aggregate- (optional) an additionalIMouseEventMatcherto be chained with the result of this matcher (results are and'ed).- Returns:
- a
DisplayModeMouseEventMatcherthat checks if the specified display mode matches and the aggregate matcher.
-
displayMode
Deprecated.- Parameters:
displayMode- theDisplayModeto be matched.- Returns:
- a
DisplayModeMouseEventMatcherthat checks only if the specified display mode matches.
-
displayMode
public static DisplayModeMouseEventMatcher displayMode(DisplayMode displayMode, IMouseEventMatcher aggregate) - Parameters:
displayMode- theDisplayModeto be matched.aggregate- (optional) an additionalIMouseEventMatcherto be chained with the result of this matcher (results are and'ed).- Returns:
- a
DisplayModeMouseEventMatcherthat checks if the specified display mode matches and the aggregate matcher. - Since:
- 2.0
-
displayMode
- Parameters:
displayMode- theDisplayModeto be matched.- Returns:
- a
DisplayModeMouseEventMatcherthat checks only if the specified display mode matches. - Since:
- 2.0
-
DisplayModeparameter.