public interface SimplifiedFocusTraversalPolicy
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.Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getAfter(java.awt.Container container,
java.awt.Component component)
Gets the
Component which should be focused next. |
java.awt.Component |
getBefore(java.awt.Container container,
java.awt.Component component)
Gets the
Component which should be focused when stepping through
the circle backwards. |
java.awt.Component |
getDefault(java.awt.Container container)
Gets the
Component which should be focused per default. |
java.awt.Component |
getFirst(java.awt.Container container)
Gets the
Component which should be focused when entering the circle. |
java.awt.Component |
getLast(java.awt.Container container)
Gets the
Component which should be focused when entering the
circle backwards. |
java.awt.Component getAfter(java.awt.Container container, java.awt.Component component)
Component
which should be focused next.container
- the root or provider of this policycomponent
- the currently focused componentnull
java.awt.Component getBefore(java.awt.Container container, java.awt.Component component)
Component
which should be focused when stepping through
the circle backwards.container
- the root or provider of this policycomponent
- the currently focused componentnull
java.awt.Component getFirst(java.awt.Container container)
Component
which should be focused when entering the circle.container
- the root or provider of this policynull
java.awt.Component getLast(java.awt.Container container)
Component
which should be focused when entering the
circle backwards.container
- the root or provider of this policynull
java.awt.Component getDefault(java.awt.Container container)
Component
which should be focused per default.container
- the root or provider of this policynull