Class FillHandleEventMatcher
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
org.eclipse.nebula.widgets.nattable.fillhandle.event.FillHandleEventMatcher
- All Implemented Interfaces:
IMouseEventMatcher
Matcher that returns
true in case the mouse moves over the fill
handle rendered by the FillHandleLayerPainter.- Since:
- 1.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FillHandleBoundsProviderprotected FillHandleLayerPainterDeprecated.Fields inherited from class org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
LEFT_BUTTON, RIGHT_BUTTON -
Constructor Summary
ConstructorsConstructorDescriptionFillHandleEventMatcher(FillHandleBoundsProvider fillHandleBoundsProvider) Create aFillHandleEventMatcherthat reacts when the mouse is moved over the fill handle bounds provided by the givenFillHandleBoundsProvider.FillHandleEventMatcher(FillHandleLayerPainter fillHandlePainter) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(NatTable natTable, org.eclipse.swt.events.MouseEvent event, LabelStack regionLabels) Figures out if the mouse event occurred in the supplied region.Methods inherited from class org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
bodyLeftClick, bodyRightClick, columnGroupHeaderLeftClick, columnGroupHeaderRightClick, columnHeaderLeftClick, columnHeaderRightClick, equals, getButton, getEventRegion, getStateMask, hashCode, rowGroupHeaderLeftClick, rowGroupHeaderRightClick, rowHeaderLeftClick, rowHeaderRightClick
-
Field Details
-
fillHandlePainter
Deprecated. -
fillHandleBoundsProvider
- Since:
- 2.5
-
-
Constructor Details
-
FillHandleEventMatcher
Deprecated.Create aFillHandleEventMatcherthat reacts when the mouse is moved over the fill handle rendered by the givenFillHandleLayerPainter.- Parameters:
fillHandlePainter- TheFillHandleLayerPainterthat should be used to determine the bounds of the fill handle. Can not benull.
-
FillHandleEventMatcher
Create aFillHandleEventMatcherthat reacts when the mouse is moved over the fill handle bounds provided by the givenFillHandleBoundsProvider.- Parameters:
fillHandleBoundsProvider- TheFillHandleBoundsProviderthat should be used to determine the bounds of the fill handle. Can not benull.- Since:
- 2.5
-
-
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- Overrides:
matchesin classMouseEventMatcher- 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
-