org.apache.pivot.wtk.skin
Class WindowSkin.WindowFocusTraversalPolicy

java.lang.Object
  extended by 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.


Constructor Summary
WindowSkin.WindowFocusTraversalPolicy()
           
 
Method Summary
 Component getNextComponent(Container container, Component component, FocusTraversalDirection direction)
          Returns the next focus destination according to this traversal policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowSkin.WindowFocusTraversalPolicy

public WindowSkin.WindowFocusTraversalPolicy()
Method Detail

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.