private abstract class TraversalEngine.BaseEngineContext extends java.lang.Object implements TraversalContext
Modifier | Constructor and Description |
---|---|
private |
BaseEngineContext() |
Modifier and Type | Method and Description |
---|---|
private void |
addFocusableChildrenToList(java.util.List<Node> list,
Parent parent) |
java.util.List<Node> |
getAllTargetNodes()
Returns all traversable nodes in the context's (engine's) root
|
Bounds |
getSceneLayoutBounds(Node n)
Returns layout bounds of the Node in the relevant (Sub)Scene.
|
Node |
selectFirstInParent(Parent parent)
If the TraversalEngine does not want to handle traversal inside some inner child (Parent), it can use this method to apply
default algorithm inside that Parent and return the first Node
|
Node |
selectInSubtree(Parent subTreeRoot,
Node from,
Direction dir)
If the TraversalEngine does not want to handle traversal inside some inner child (Parent), it can use this method to apply
default algorithm inside that Parent and return the next Node within the Parent or null if there's no successor.
|
Node |
selectLastInParent(Parent parent)
If the TraversalEngine does not want to handle traversal inside some inner child (Parent), it can use this method to apply
default algorithm inside that Parent and return the last Node
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRoot
public java.util.List<Node> getAllTargetNodes()
getAllTargetNodes
in interface TraversalContext
public Bounds getSceneLayoutBounds(Node n)
TraversalContext
getSceneLayoutBounds
in interface TraversalContext
private void addFocusableChildrenToList(java.util.List<Node> list, Parent parent)
public Node selectFirstInParent(Parent parent)
TraversalContext
selectFirstInParent
in interface TraversalContext
public Node selectLastInParent(Parent parent)
TraversalContext
selectLastInParent
in interface TraversalContext
public Node selectInSubtree(Parent subTreeRoot, Node from, Direction dir)
TraversalContext
selectInSubtree
in interface TraversalContext
subTreeRoot
- this will be used as a root of the traversal. Should be a Node that is still handled by the current TraversalEngine,
but it's content is not.