org.apache.pivot.wtk.skin
Class WindowSkin.WindowFocusTraversalPolicy
java.lang.Object
org.apache.pivot.wtk.skin.WindowSkin.WindowFocusTraversalPolicy
- All Implemented Interfaces:
- FocusTraversalPolicy
- Enclosing class:
- WindowSkin
public static class WindowSkin.WindowFocusTraversalPolicy
- extends Object
- implements FocusTraversalPolicy
Focus traversal policy that always returns the window's content. This
ensures that focus does not traverse out of the window.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowSkin.WindowFocusTraversalPolicy
public WindowSkin.WindowFocusTraversalPolicy()
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.