- All Implemented Interfaces:
- Enclosing class:
public static class ContainerSkin.IndexFocusTraversalPolicy
Focus traversal policy that determines traversal order based on the order
of components in the container's component sequence.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Component getNextComponent(Container container,
Returns the next focus destination according to this traversal policy.
- Specified by:
getNextComponent in interface
container - The container to which the traversal policy applies.
component - The component from which focus is being transferred. If null,
implementations should return the first component for a forward
traversal and the last component for a backward traversal.
direction - The direction in which to transfer focus.
- The component to focus, or null if there are no more components
in the given direction or next component cannot be determined.