Class DisplayModeMouseEventMatcher
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.ui.matcher.DisplayModeMouseEventMatcher
-
- All Implemented Interfaces:
IMouseEventMatcher
public class DisplayModeMouseEventMatcher extends Object implements IMouseEventMatcher
This class is used to check a mouse event against theDisplayMode
of the cell at the mouse event's position. Optionally, the matcher can be chained with an additionalIMouseEventMatcher
(results are and'ed).
-
-
Constructor Summary
Constructors Constructor Description DisplayModeMouseEventMatcher(String displayMode)
Deprecated.Use constructor withDisplayMode
parameter.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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 Detail
-
DisplayModeMouseEventMatcher
@Deprecated public DisplayModeMouseEventMatcher(String displayMode)
Deprecated.Use constructor withDisplayMode
parameter.Creates aDisplayModeMouseEventMatcher
that checks only if the specified display mode matches.- Parameters:
displayMode
- theDisplayMode
to be matched.
-
DisplayModeMouseEventMatcher
public DisplayModeMouseEventMatcher(DisplayMode displayMode)
Creates aDisplayModeMouseEventMatcher
that checks only if the specified display mode matches.- Parameters:
displayMode
- theDisplayMode
to be matched.- Since:
- 2.0
-
DisplayModeMouseEventMatcher
@Deprecated public DisplayModeMouseEventMatcher(String displayMode, IMouseEventMatcher aggregate)
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
public DisplayModeMouseEventMatcher(DisplayMode displayMode, IMouseEventMatcher aggregate)
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 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 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 public static DisplayModeMouseEventMatcher displayMode(String 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
public static DisplayModeMouseEventMatcher displayMode(DisplayMode displayMode)
- Parameters:
displayMode
- theDisplayMode
to be matched.- Returns:
- a
DisplayModeMouseEventMatcher
that checks only if the specified display mode matches. - Since:
- 2.0
-
-