bibliothek.gui.dock.station.stack
Class CombinedStackDockFocusTraversalPolicy

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.CombinedStackDockFocusTraversalPolicy
All Implemented Interfaces:
SimplifiedFocusTraversalPolicy

public class CombinedStackDockFocusTraversalPolicy
extends Object
implements SimplifiedFocusTraversalPolicy

Focus traversal policy for a CombinedStackDockComponent, this policy switches between current Dockable, its Tab and the optional info component.

Author:
Benjamin Sigg

Constructor Summary
CombinedStackDockFocusTraversalPolicy(CombinedStackDockContentPane pane)
          Creates a new traversal policy.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinedStackDockFocusTraversalPolicy

public CombinedStackDockFocusTraversalPolicy(CombinedStackDockContentPane pane)
Creates a new traversal policy.

Parameters:
pane - the owner of this policy, not null
Method Detail

getAfter

public Component getAfter(Container container,
                          Component component)
Description copied from interface: SimplifiedFocusTraversalPolicy
Gets the Component which should be focused next.

Specified by:
getAfter in interface SimplifiedFocusTraversalPolicy
Parameters:
container - the root or provider of this policy
component - the currently focused component
Returns:
the next component or null

getBefore

public Component getBefore(Container container,
                           Component component)
Description copied from interface: SimplifiedFocusTraversalPolicy
Gets the Component which should be focused when stepping through the circle backwards.

Specified by:
getBefore in interface SimplifiedFocusTraversalPolicy
Parameters:
container - the root or provider of this policy
component - the currently focused component
Returns:
the previous component or null

getDefault

public Component getDefault(Container container)
Description copied from interface: SimplifiedFocusTraversalPolicy
Gets the Component which should be focused per default.

Specified by:
getDefault in interface SimplifiedFocusTraversalPolicy
Parameters:
container - the root or provider of this policy
Returns:
the default component or null

getFirst

public Component getFirst(Container container)
Description copied from interface: SimplifiedFocusTraversalPolicy
Gets the Component which should be focused when entering the circle.

Specified by:
getFirst in interface SimplifiedFocusTraversalPolicy
Parameters:
container - the root or provider of this policy
Returns:
the next component or null

getLast

public Component getLast(Container container)
Description copied from interface: SimplifiedFocusTraversalPolicy
Gets the Component which should be focused when entering the circle backwards.

Specified by:
getLast in interface SimplifiedFocusTraversalPolicy
Parameters:
container - the root or provider of this policy
Returns:
the next component or null