Additional top-level class in compilation unit: SwingDefaultFocusTraversalPolicy.
ComponentOrientation for more information. All columns in a
row are fully traversed before proceeding to the next row.
java.awt.ComponentOrientation
| Modifier and Type | Field and Description |
|---|---|
| private static final SwingDefaultFocusTraversalPolicy |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | LayoutFocusTraversalPolicy(Comparator<? super Component> c)
Constructs a LayoutFocusTraversalPolicy with the passed in
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | Returns: true if aComponent is a valid choice
for a focus owner;
otherwise falsethe aComponent)Component whose fitness
as a focus owner is to be testedOverrides javax. Determines whether the specified |
| public Component | Returns: the Component that should receive the focus after aComponent, or null if no suitable Component can be founda focus cycle root of aComponent or a focus traversal policy provider aContainer, Component a (possibly indirect) child of aContainer, or
aContainer itself aComponent)Overrides javax. Returns the Component that should receive the focus after aComponent. |
| public Component | Returns: the Component that should receive the focus before aComponent, or null if no suitable Component can be founda focus cycle root of aComponent or a focus traversal policy provider aContainer, Component a (possibly indirect) child of aContainer, or
aContainer itself aComponent)Overrides javax. Returns the Component that should receive the focus before aComponent. |
| public Component | Returns: the first Component in the traversal cycle of aContainer, or null if no suitable Component can be founda focus cycle root of aComponent or a focus traversal policy provider whose
first Component is to be returned aContainer)Overrides javax. Returns the first Component in the traversal cycle. |
| public Component | Returns: the last Component in the traversal cycle of aContainer, or null if no suitable Component can be founda focus cycle root of aComponent or a focus traversal policy provider whose
last Component is to be returned aContainer)Overrides javax. Returns the last Component in the traversal cycle. |
| private void | |
| private void |
| fitnessTestPolicy | back to summary |
|---|---|
| private static final SwingDefaultFocusTraversalPolicy fitnessTestPolicy Hides javax. | |
| LayoutFocusTraversalPolicy | back to summary |
|---|---|
| public LayoutFocusTraversalPolicy() Constructs a LayoutFocusTraversalPolicy. | |
| LayoutFocusTraversalPolicy | back to summary |
|---|---|
| pack-priv LayoutFocusTraversalPolicy(Comparator<? super Component> c) Constructs a LayoutFocusTraversalPolicy with the passed in
| |
| accept | back to summary |
|---|---|
| protected boolean accept(Component aComponent) Overrides javax. Determines whether the specified
| |
| getComponentAfter | back to summary |
|---|---|
| public Component getComponentAfter(Container aContainer, Component aComponent) Overrides javax. Returns the Component that should receive the focus after aComponent. aContainer must be a focus cycle root of aComponent.
By default, LayoutFocusTraversalPolicy implicitly transfers focus down-
cycle. That is, during normal focus traversal, the Component
traversed after a focus cycle root will be the focus-cycle-root's
default Component to focus. This behavior can be disabled using the
If aContainer is focus traversal policy provider, the focus is always transferred down-cycle.
| |
| getComponentBefore | back to summary |
|---|---|
| public Component getComponentBefore(Container aContainer, Component aComponent) Overrides javax. Returns the Component that should receive the focus before aComponent. aContainer must be a focus cycle root of aComponent.
By default, LayoutFocusTraversalPolicy implicitly transfers focus down-
cycle. That is, during normal focus traversal, the Component
traversed after a focus cycle root will be the focus-cycle-root's
default Component to focus. This behavior can be disabled using the
If aContainer is focus traversal policy provider, the focus is always transferred down-cycle.
| |
| getFirstComponent | back to summary |
|---|---|
| public Component getFirstComponent(Container aContainer) Overrides javax. Returns the first Component in the traversal cycle. This method is used to determine the next Component to focus when traversal wraps in the forward direction.
| |
| getLastComponent | back to summary |
|---|---|
| public Component getLastComponent(Container aContainer) Overrides javax. Returns the last Component in the traversal cycle. This method is used to determine the next Component to focus when traversal wraps in the reverse direction.
| |
| readObject | back to summary |
|---|---|
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
| |
| writeObject | back to summary |
|---|---|
private void writeObject(ObjectOutputStream out) throws IOException
| |