public class BaseTabFocusTraversalPolicy extends Object implements SimplifiedFocusTraversalPolicy
BaseTabComponent
to go through its child Component
which shows the buttons (if there are any).Constructor and Description |
---|
BaseTabFocusTraversalPolicy(ButtonPanel buttons) |
Modifier and Type | Method and Description |
---|---|
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. |
public BaseTabFocusTraversalPolicy(ButtonPanel buttons)
public Component getAfter(Container container, Component component)
SimplifiedFocusTraversalPolicy
Component
which should be focused next.getAfter
in interface SimplifiedFocusTraversalPolicy
container
- the root or provider of this policycomponent
- the currently focused componentnull
public Component getBefore(Container container, Component component)
SimplifiedFocusTraversalPolicy
Component
which should be focused when stepping through
the circle backwards.getBefore
in interface SimplifiedFocusTraversalPolicy
container
- the root or provider of this policycomponent
- the currently focused componentnull
public Component getFirst(Container container)
SimplifiedFocusTraversalPolicy
Component
which should be focused when entering the circle.getFirst
in interface SimplifiedFocusTraversalPolicy
container
- the root or provider of this policynull
public Component getLast(Container container)
SimplifiedFocusTraversalPolicy
Component
which should be focused when entering the
circle backwards.getLast
in interface SimplifiedFocusTraversalPolicy
container
- the root or provider of this policynull
public Component getDefault(Container container)
SimplifiedFocusTraversalPolicy
Component
which should be focused per default.getDefault
in interface SimplifiedFocusTraversalPolicy
container
- the root or provider of this policynull