public interface ITraversalStrategy
| Modifier and Type | Interface and Description |
|---|---|
static class |
ITraversalStrategy.TraversalScope
The scope of the traversal which is necessary to determine what should
happen on cycling.
|
| Modifier and Type | Field and Description |
|---|---|
static ITraversalStrategy |
AXIS_CYCLE_TRAVERSAL_STRATEGY
ITraversalStrategy that specifies the following:traversal scope = axis cycle = true step count = 1 valid = true This means for example, on moving a selection to the right, the selection will move one cell at a time and jump to the first column when moving over the right border. |
static ITraversalStrategy |
AXIS_TRAVERSAL_STRATEGY
ITraversalStrategy that specifies the following:traversal scope = axis cycle = false step count = 1 valid = true This means for example, on moving a selection to the right, the selection will move one cell at a time and stop at the right border. |
static ITraversalStrategy |
TABLE_CYCLE_TRAVERSAL_STRATEGY
ITraversalStrategy that specifies the following:traversal scope = table cycle = true step count = 1 valid = true This means for example, on moving a selection to the right, the selection will move one cell at a time and jump to the first column and move one row down when moving over the right border. |
static ITraversalStrategy |
TABLE_TRAVERSAL_STRATEGY
ITraversalStrategy that specifies the following:traversal scope = table cycle = false step count = 1 valid = true This means for example, on moving a selection to the right, the selection will move one cell at a time and jump to the first column and move one row down when moving over the right border. |
| Modifier and Type | Method and Description |
|---|---|
int |
getStepCount() |
ITraversalStrategy.TraversalScope |
getTraversalScope() |
boolean |
isCycle() |
boolean |
isValidTarget(ILayerCell from,
ILayerCell to)
Checks whether the
ILayerCell that would be selected after the
selection movement is valid or not. |
static final ITraversalStrategy AXIS_TRAVERSAL_STRATEGY
ITraversalStrategy that specifies the following:This is the default traversal strategy.
static final ITraversalStrategy AXIS_CYCLE_TRAVERSAL_STRATEGY
ITraversalStrategy that specifies the following:static final ITraversalStrategy TABLE_TRAVERSAL_STRATEGY
ITraversalStrategy that specifies the following:static final ITraversalStrategy TABLE_CYCLE_TRAVERSAL_STRATEGY
ITraversalStrategy that specifies the following:ITraversalStrategy.TraversalScope getTraversalScope()
ITraversalStrategy.TraversalScope this traversal strategy specifies.boolean isCycle()
true if on traversal the selection should cycle,
false if the selection should stay at the last/first
position without cycling.int getStepCount()
boolean isValidTarget(ILayerCell from, ILayerCell to)
ILayerCell that would be selected after the
selection movement is valid or not. In case the target is invalid, the
responsible command handler is able to react accordingly, e.g. move the
next valid cell.
This is for example useful for editing traversal. If the selection movement is triggered on committing a value in an editor, the next editable cell should be selected and the editor opened immediately.
from - The ILayerCell from which the selection movement is
started.to - The ILayerCell to which the selection movement should
be performed.true if the target is a valid target for selection
movement, false if notCopyright © 2017. All rights reserved.