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 withDisplayMode
parameter.DisplayModeMouseEventMatcher
(DisplayMode displayMode) Creates aDisplayModeMouseEventMatcher
that checks only if the specified display mode matches.DisplayModeMouseEventMatcher
(DisplayMode displayMode, IMouseEventMatcher aggregate) Creates aDisplayModeMouseEventMatcher
that checks if the specified display mode matches and the aggregate matcher. -
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayModeMouseEventMatcher
displayMode
(String displayMode) Deprecated.static DisplayModeMouseEventMatcher
displayMode
(String displayMode, IMouseEventMatcher aggregate) Deprecated.static DisplayModeMouseEventMatcher
displayMode
(DisplayMode displayMode) static DisplayModeMouseEventMatcher
displayMode
(DisplayMode 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.
-
Constructor Details
-
DisplayModeMouseEventMatcher
Deprecated.Use constructor withDisplayMode
parameter.Creates aDisplayModeMouseEventMatcher
that checks only if the specified display mode matches.- Parameters:
displayMode
- theDisplayMode
to be matched.
-
DisplayModeMouseEventMatcher
Creates aDisplayModeMouseEventMatcher
that checks only if the specified display mode matches.- Parameters:
displayMode
- theDisplayMode
to be matched.- Since:
- 2.0
-
DisplayModeMouseEventMatcher
Deprecated.Use constructor withDisplayMode
parameter.Creates aDisplayModeMouseEventMatcher
that checks if the specified display mode matches and the aggregate matcher.- Parameters:
displayMode
- theDisplayMode
to be matched.aggregate
- (optional) an additionalIMouseEventMatcher
to be chained with the result of this matcher (results are and'ed).
-
DisplayModeMouseEventMatcher
Creates aDisplayModeMouseEventMatcher
that checks if the specified display mode matches and the aggregate matcher.- Parameters:
displayMode
- theDisplayMode
to be matched.aggregate
- (optional) an additionalIMouseEventMatcher
to 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: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
-
displayMode
@Deprecated public static DisplayModeMouseEventMatcher displayMode(String displayMode, IMouseEventMatcher aggregate) Deprecated.- Parameters:
displayMode
- theDisplayMode
to be matched.aggregate
- (optional) an additionalIMouseEventMatcher
to be chained with the result of this matcher (results are and'ed).- Returns:
- a
DisplayModeMouseEventMatcher
that checks if the specified display mode matches and the aggregate matcher.
-
displayMode
Deprecated.- Parameters:
displayMode
- theDisplayMode
to be matched.- Returns:
- a
DisplayModeMouseEventMatcher
that checks only if the specified display mode matches.
-
displayMode
public static DisplayModeMouseEventMatcher displayMode(DisplayMode displayMode, IMouseEventMatcher aggregate) - Parameters:
displayMode
- theDisplayMode
to be matched.aggregate
- (optional) an additionalIMouseEventMatcher
to be chained with the result of this matcher (results are and'ed).- Returns:
- a
DisplayModeMouseEventMatcher
that checks if the specified display mode matches and the aggregate matcher. - Since:
- 2.0
-
displayMode
- Parameters:
displayMode
- theDisplayMode
to be matched.- Returns:
- a
DisplayModeMouseEventMatcher
that checks only if the specified display mode matches. - Since:
- 2.0
-
DisplayMode
parameter.