bibliothek.gui.dock.focus
Interface SimplifiedFocusTraversalPolicy

All Known Implementing Classes:
CombinedStackDockFocusTraversalPolicy, DisplayerFocusTraversalPolicy

public interface SimplifiedFocusTraversalPolicy

An interface which mimics the behavior of FocusTraversalPolicy but implementing classes are not required to respect any other focus cycle roots, policy providers or visibility, focusability, displayability nor the enabled state. This SimplifiedFocusTraversalPolicy will be put into a DockFocusTraversalPolicy which will handle all these issues.

Author:
Benjamin Sigg

Method Summary
 Component getAfter(Container container, Component component)
          Gets the Component which should be focused next.
 Component getBefore(Container container, Component component)
          Gets the Component which should be focused when stepping through the circle backwards.
 Component getDefault(Container container)
          Gets the Component which should be focused per default.
 Component getFirst(Container container)
          Gets the Component which should be focused when entering the circle.
 Component getLast(Container container)
          Gets the Component which should be focused when entering the circle backwards.
 

Method Detail

getAfter

Component getAfter(Container container,
                   Component component)
Gets the Component which should be focused next.

Parameters:
container - the root or provider of this policy
component - the currently focused component
Returns:
the next component or null

getBefore

Component getBefore(Container container,
                    Component component)
Gets the Component which should be focused when stepping through the circle backwards.

Parameters:
container - the root or provider of this policy
component - the currently focused component
Returns:
the previous component or null

getFirst

Component getFirst(Container container)
Gets the Component which should be focused when entering the circle.

Parameters:
container - the root or provider of this policy
Returns:
the next component or null

getLast

Component getLast(Container container)
Gets the Component which should be focused when entering the circle backwards.

Parameters:
container - the root or provider of this policy
Returns:
the next component or null

getDefault

Component getDefault(Container container)
Gets the Component which should be focused per default.

Parameters:
container - the root or provider of this policy
Returns:
the default component or null