Class ColumnHideIndicatorEventMatcher
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
org.eclipse.nebula.widgets.nattable.hideshow.indicator.ColumnHideIndicatorEventMatcher
- All Implemented Interfaces:
IMouseEventMatcher
MouseEventMatcher
that checks for cell edges at column borders and
for the existence of column hide indicator labels.- Since:
- 1.6
-
Field Summary
FieldsFields inherited from class org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
LEFT_BUTTON, RIGHT_BUTTON
-
Constructor Summary
ConstructorsConstructorDescriptionColumnHideIndicatorEventMatcher
(int stateMask, String eventRegion, int button, ILayer columnHeaderLayer) -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(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
-
columnHeaderLayer
-
-
Constructor Details
-
ColumnHideIndicatorEventMatcher
public ColumnHideIndicatorEventMatcher(int stateMask, String eventRegion, int button, ILayer columnHeaderLayer) - Parameters:
stateMask
- The state of the keyboard modifier keys and mouse masks at the time the event was generated to match.eventRegion
- The region label of the region in which the event should be processed only. TypicallyGridRegion.COLUMN_HEADER
.button
- The mouse button that should be pressed to match.columnHeaderLayer
- The layer in the column header that should be used to determine the height of the hidden column indicator. Should be the top most layer in the column header region, e.g. the FilterRowHeaderComposite in case filtering is included. Can benull
which leads to label inspection of the table row the mouse cursor moves over.
-
-
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
- Overrides:
matches
in classMouseEventMatcher
- 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
-