API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. LayoutFocusTraversalPolicy View Source
Author(s)
David Mendenhall
Since
1.4
Version
1.12, 08/04/06
Serial
Hierarchy
 Object
      FocusTraversalPolicy
          InternalFrameFocusTraversalPolicy
              SortingFocusTraversalPolicy
                  LayoutFocusTraversalPolicy
Implements
 Serializable
Subclasses
Description
public class LayoutFocusTraversalPolicy
  A SortingFocusTraversalPolicy which sorts Components based on their size, position, and orientation.
See also:    ComponentOrientation
Constructors
public LayoutFocusTraversalPolicy ()
Constructs a LayoutFocusTraversalPolicy.
pack-private LayoutFocusTraversalPolicy (Comparator c)
Constructs a LayoutFocusTraversalPolicy with the passed in Comparator.
Methods
Hide/Show inherited methods
protected boolean accept (Component aComponent) [Overrides SortingFocusTraversalPolicy]
  Determines whether the specified Component is an acceptable choice as the new focus owner.
protected Comparator<Object> getComparator () [Inherited From SortingFocusTraversalPolicy]
  Returns the Comparator which will be used to sort the Components in a focus traversal cycle.
public Component getComponentAfter (Container aContainer, Component aComponent) [Overrides SortingFocusTraversalPolicy] [Specified in FocusTraversalPolicy]
  Returns the Component that should receive the focus after aComponent.
public Component getComponentBefore (Container aContainer, Component aComponent) [Overrides SortingFocusTraversalPolicy] [Specified in FocusTraversalPolicy]
  Returns the Component that should receive the focus before aComponent.
public Component getDefaultComponent (Container aContainer) [Inherited From SortingFocusTraversalPolicy] [Specified in FocusTraversalPolicy]
  Returns the default Component to focus.
public Component getFirstComponent (Container aContainer) [Overrides SortingFocusTraversalPolicy] [Specified in FocusTraversalPolicy]
  Returns the first Component in the traversal cycle.
public boolean getImplicitDownCycleTraversal () [Inherited From SortingFocusTraversalPolicy]
  Returns whether this SortingFocusTraversalPolicy transfers focus down- cycle implicitly.
public Component getInitialComponent (JInternalFrame frame) [Inherited From InternalFrameFocusTraversalPolicy]
  Returns the Component that should receive the focus when a JInternalFrame is selected for the first time.
public Component getInitialComponent (Window window) [Inherited From FocusTraversalPolicy]
  Returns the Component that should receive the focus when a Window is made visible for the first time.
public Component getLastComponent (Container aContainer) [Overrides SortingFocusTraversalPolicy] [Specified in FocusTraversalPolicy]
  Returns the last Component in the traversal cycle.
pack-private Container getTopmostProvider (Container focusCycleRoot, Component aComponent) [Inherited From SortingFocusTraversalPolicy]
protected void setComparator (Comparator<Object> comparator) [Inherited From SortingFocusTraversalPolicy]
  Sets the Comparator which will be used to sort the Components in a focus traversal cycle.
public void setImplicitDownCycleTraversal (boolean implicitDownCycleTraversal) [Inherited From SortingFocusTraversalPolicy]
  Sets whether this SortingFocusTraversalPolicy transfers focus down-cycle implicitly.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar