java.awt
public class ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy implements Serializable
Since: 1.4
Constructor Summary | |
---|---|
ContainerOrderFocusTraversalPolicy()
Creates the ContainerOrderFocusTraversalPolicy object. |
Method Summary | |
---|---|
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.
root must be a focus cycle root of 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. |
ContainerOrderFocusTraversalPolicy
object.Parameters: current the Component to check
Returns: true if current is acceptable, false otherwise
Parameters: root a focus cycle root of current current a (possibly indirect) child of root, or root itself
Returns: the next Component in the focus traversal order for root, or null if no acceptable Component exists.
Throws: IllegalArgumentException If root is not a focus cycle root of current, or if either root or current is null.
current
. root
must be a focus cycle root of
current.
Parameters: root a focus cycle root of current current a (possibly indirect) child of root, or root itself
Returns: the previous Component in the focus traversal order for root, or null if no acceptable Component exists.
Throws: IllegalArgumentException If root is not a focus cycle root of current, or if either root or current is null.
Parameters: root a focus cycle root
Returns: the default Component in the focus traversal order for root, or null if no acceptable Component exists.
Throws: IllegalArgumentException If root is null.
Parameters: root a focus cycle root
Returns: the first Component in the focus traversal order for root, or null if no acceptable Component exists.
Throws: IllegalArgumentException If root is null.
Returns: true if the focus will be transferred down-cycle implicitly
Parameters: root a focus cycle root
Returns: the last Component in the focus traversal order for root, or null if no acceptable Component exists.
Throws: IllegalArgumentException If root is null.
Parameters: value the setting for implicit down cycling