public class ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy implements Serializable
| Constructor and Description |
|---|
ContainerOrderFocusTraversalPolicy()
Creates the
ContainerOrderFocusTraversalPolicy object. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(Component current)
Check whether the given Component is an acceptable target for the
keyboard input focus.
|
Component |
getComponentAfter(Container root,
Component current)
Returns the Component that should receive the focus after current.
|
Component |
getComponentBefore(Container root,
Component current)
Returns the Component that should receive the focus before
current. |
Component |
getDefaultComponent(Container root)
Returns the default Component of root that should receive the focus.
|
Component |
getFirstComponent(Container root)
Returns the first Component of root that should receive the focus.
|
boolean |
getImplicitDownCycleTraversal()
Check whether or not implicit down cycling is enabled.
|
Component |
getLastComponent(Container root)
Returns the last Component of root that should receive the focus.
|
void |
setImplicitDownCycleTraversal(boolean value)
Set whether or not implicit down cycling is enabled.
|
getInitialComponentpublic ContainerOrderFocusTraversalPolicy()
ContainerOrderFocusTraversalPolicy object.public Component getComponentAfter(Container root, Component current)
getComponentAfter in class FocusTraversalPolicyroot - a focus cycle root of currentcurrent - a (possibly indirect) child of root, or root itselfIllegalArgumentException - If root is not a focus cycle
root of current, or if either root or current is null.public Component getComponentBefore(Container root, Component current)
current. root must be a focus cycle root of
current.getComponentBefore in class FocusTraversalPolicyroot - a focus cycle root of currentcurrent - a (possibly indirect) child of root, or root itselfIllegalArgumentException - If root is not a focus cycle root of
current, or if either root or current is null.public Component getFirstComponent(Container root)
getFirstComponent in class FocusTraversalPolicyroot - a focus cycle rootIllegalArgumentException - If root is null.public Component getLastComponent(Container root)
getLastComponent in class FocusTraversalPolicyroot - a focus cycle rootIllegalArgumentException - If root is null.public Component getDefaultComponent(Container root)
getDefaultComponent in class FocusTraversalPolicyroot - a focus cycle rootIllegalArgumentException - If root is null.public void setImplicitDownCycleTraversal(boolean value)
value - the setting for implicit down cyclingpublic boolean getImplicitDownCycleTraversal()