Class SelectionAnchorCellLabelKeyEventMatcher
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.matcher.SelectionAnchorCellLabelKeyEventMatcher
- All Implemented Interfaces:
IKeyEventMatcher
This class allows checking the current selection anchor's cell for a matching
label. Only labels from the given
IUniqueIndexLayer downwards are
considered. Optionally the matcher can be chained with an additional
IKeyEventMatcher (results are and'ed).-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IKeyEventMatcherprotected final Stringprotected final IUniqueIndexLayerprotected final SelectionLayer -
Constructor Summary
ConstructorsConstructorDescriptionSelectionAnchorCellLabelKeyEventMatcher(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch) Create aSelectionAnchorCellLabelKeyEventMatcherthat checks only if the given label is assigned to the selection anchor's cell, while the label stack is retrieved from the given layer.SelectionAnchorCellLabelKeyEventMatcher(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch, IKeyEventMatcher aggregate) Create aSelectionAnchorCellLabelKeyEventMatcherthat checks if the aggregate matches as well as if the given label is assigned to the selection anchor's cell, while the label stack is retrieved from the given layer. -
Method Summary
Modifier and TypeMethodDescriptionanchorLabel(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch) Create aSelectionAnchorCellLabelKeyEventMatcherthat checks only if the given label is assigned to the selection anchor's cell, while the label stack is retrieved from the given layer.anchorLabel(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch, IKeyEventMatcher aggregate) Create aSelectionAnchorCellLabelKeyEventMatcherthat checks if the aggregate matches as well as if the given label is assigned to the selection anchor's cell, while the label stack is retrieved from the given layer.booleanmatches(org.eclipse.swt.events.KeyEvent event)
-
Field Details
-
selectionLayer
-
layer
-
labelToMatch
-
aggregate
-
-
Constructor Details
-
SelectionAnchorCellLabelKeyEventMatcher
public SelectionAnchorCellLabelKeyEventMatcher(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch) Create aSelectionAnchorCellLabelKeyEventMatcherthat checks only if the given label is assigned to the selection anchor's cell, while the label stack is retrieved from the given layer.- Parameters:
selectionLayer- theSelectionLayerused to get the current selection anchor's position.layer- the layer used to retrieve the label stack at the selection anchor's position.labelToMatch- the label that should be part of the label stack at the selection anchor's position.
-
SelectionAnchorCellLabelKeyEventMatcher
public SelectionAnchorCellLabelKeyEventMatcher(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch, IKeyEventMatcher aggregate) Create aSelectionAnchorCellLabelKeyEventMatcherthat checks if the aggregate matches as well as if the given label is assigned to the selection anchor's cell, while the label stack is retrieved from the given layer.- Parameters:
selectionLayer- theSelectionLayerused to get the current selection anchor's position.layer- the layer used to retrieve the label stack at the selection anchor's position.labelToMatch- the label that should be part of the label stack at the selection anchor's position.aggregate- (optional) an additionalIKeyEventMatcherto be chained with the result of this matcher (results are and'ed).
-
-
Method Details
-
matches
public boolean matches(org.eclipse.swt.events.KeyEvent event) - Specified by:
matchesin interfaceIKeyEventMatcher
-
anchorLabel
public static SelectionAnchorCellLabelKeyEventMatcher anchorLabel(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch) Create aSelectionAnchorCellLabelKeyEventMatcherthat checks only if the given label is assigned to the selection anchor's cell, while the label stack is retrieved from the given layer.- Parameters:
selectionLayer- theSelectionLayerused to get the current selection anchor's position.layer- the layer used to retrieve the label stack at the selection anchor's position.labelToMatch- the label that should be part of the label stack at the selection anchor's position.
-
anchorLabel
public static SelectionAnchorCellLabelKeyEventMatcher anchorLabel(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch, IKeyEventMatcher aggregate) Create aSelectionAnchorCellLabelKeyEventMatcherthat checks if the aggregate matches as well as if the given label is assigned to the selection anchor's cell, while the label stack is retrieved from the given layer.- Parameters:
selectionLayer- theSelectionLayerused to get the current selection anchor's position.layer- the layer used to retrieve the label stack at the selection anchor's position.labelToMatch- the label that should be part of the label stack at the selection anchor's position.aggregate- (optional) an additionalIKeyEventMatcherto be chained with the result of this matcher (results are and'ed).
-