public class SelectionAnchorCellLabelKeyEventMatcher extends Object implements IKeyEventMatcher
IUniqueIndexLayer downwards are
considered. Optionally the matcher can be chained with an additional
IKeyEventMatcher (results are and'ed).| Modifier and Type | Field and Description |
|---|---|
protected IKeyEventMatcher |
aggregate |
protected String |
labelToMatch |
protected IUniqueIndexLayer |
layer |
protected SelectionLayer |
selectionLayer |
| Constructor and Description |
|---|
SelectionAnchorCellLabelKeyEventMatcher(SelectionLayer selectionLayer,
IUniqueIndexLayer layer,
String labelToMatch)
Create a
SelectionAnchorCellLabelKeyEventMatcher that 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 a
SelectionAnchorCellLabelKeyEventMatcher that 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. |
| Modifier and Type | Method and Description |
|---|---|
static SelectionAnchorCellLabelKeyEventMatcher |
anchorLabel(SelectionLayer selectionLayer,
IUniqueIndexLayer layer,
String labelToMatch)
Create a
SelectionAnchorCellLabelKeyEventMatcher that checks only
if the given label is assigned to the selection anchor's cell, while the
label stack is retrieved from the given layer. |
static SelectionAnchorCellLabelKeyEventMatcher |
anchorLabel(SelectionLayer selectionLayer,
IUniqueIndexLayer layer,
String labelToMatch,
IKeyEventMatcher aggregate)
Create a
SelectionAnchorCellLabelKeyEventMatcher that 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. |
boolean |
matches(org.eclipse.swt.events.KeyEvent event) |
protected final SelectionLayer selectionLayer
protected final IUniqueIndexLayer layer
protected final String labelToMatch
protected final IKeyEventMatcher aggregate
public SelectionAnchorCellLabelKeyEventMatcher(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch)
SelectionAnchorCellLabelKeyEventMatcher that checks only
if the given label is assigned to the selection anchor's cell, while the
label stack is retrieved from the given layer.selectionLayer - the SelectionLayer used 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.public SelectionAnchorCellLabelKeyEventMatcher(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch, IKeyEventMatcher aggregate)
SelectionAnchorCellLabelKeyEventMatcher that 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.selectionLayer - the SelectionLayer used 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 additional IKeyEventMatcher to be
chained with the result of this matcher (results are and'ed).public boolean matches(org.eclipse.swt.events.KeyEvent event)
matches in interface IKeyEventMatcherpublic static SelectionAnchorCellLabelKeyEventMatcher anchorLabel(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch)
SelectionAnchorCellLabelKeyEventMatcher that checks only
if the given label is assigned to the selection anchor's cell, while the
label stack is retrieved from the given layer.selectionLayer - the SelectionLayer used 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.public static SelectionAnchorCellLabelKeyEventMatcher anchorLabel(SelectionLayer selectionLayer, IUniqueIndexLayer layer, String labelToMatch, IKeyEventMatcher aggregate)
SelectionAnchorCellLabelKeyEventMatcher that 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.selectionLayer - the SelectionLayer used 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 additional IKeyEventMatcher to be
chained with the result of this matcher (results are and'ed).Copyright © 2019. All rights reserved.