public class ClearFilterIconMouseEventMatcher extends CellPainterMouseEventMatcher
CellPainterMouseEventMatcher
that only matches for the
filter row region if a filter is applied in the clicked cell and the click was
executed on the painted icon in that cell (usually the clear filter icon).LEFT_BUTTON, RIGHT_BUTTON
Constructor and Description |
---|
ClearFilterIconMouseEventMatcher(FilterRowPainter filterRowPainter)
Create a new
ClearFilterIconMouseEventMatcher for the given FilterRowPainter |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(NatTable natTable,
org.eclipse.swt.events.MouseEvent event,
LabelStack regionLabels)
Figures out if the mouse event occurred in the supplied region.
|
bodyLeftClick, bodyRightClick, columnGroupHeaderLeftClick, columnGroupHeaderRightClick, columnHeaderLeftClick, columnHeaderRightClick, equals, getButton, getEventRegion, getStateMask, hashCode, rowGroupHeaderLeftClick, rowGroupHeaderRightClick, rowHeaderLeftClick, rowHeaderRightClick
public ClearFilterIconMouseEventMatcher(FilterRowPainter filterRowPainter)
ClearFilterIconMouseEventMatcher
for the given FilterRowPainter
filterRowPainter
- The FilterRowPainter
needed to determine the filter icon painter.public boolean matches(NatTable natTable, org.eclipse.swt.events.MouseEvent event, LabelStack regionLabels)
IMouseEventMatcher
matches
in interface IMouseEventMatcher
matches
in class CellPainterMouseEventMatcher
event
- SWT mouse eventCopyright © 2013. All Rights Reserved.