org.apache.pivot.wtk.skin
Class ContainerSkin.IndexFocusTraversalPolicy
java.lang.Object
org.apache.pivot.wtk.skin.ContainerSkin.IndexFocusTraversalPolicy
- All Implemented Interfaces:
- FocusTraversalPolicy
- Enclosing class:
- ContainerSkin
public static class ContainerSkin.IndexFocusTraversalPolicy
- extends Object
- implements FocusTraversalPolicy
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 |
ContainerSkin.IndexFocusTraversalPolicy
public ContainerSkin.IndexFocusTraversalPolicy()
ContainerSkin.IndexFocusTraversalPolicy
public ContainerSkin.IndexFocusTraversalPolicy(boolean wrap)
getNextComponent
public Component getNextComponent(Container container,
Component component,
FocusTraversalDirection direction)
- Description copied from interface:
FocusTraversalPolicy
- Returns the next focus destination according to this traversal policy.
- Specified by:
getNextComponent
in interface FocusTraversalPolicy
- Parameters:
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.
- Returns:
- The component to focus, or null if there are no more components
in the given direction or next component cannot be determined.