API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. SortingFocusTraversalPolicy View Source
Author(s)
David Mendenhall
Since
1.4
Version
1.10, 08/04/06
Serial
Hierarchy
 Object
      FocusTraversalPolicy
          InternalFrameFocusTraversalPolicy
              SortingFocusTraversalPolicy
Implements
Subclasses
Description
public class SortingFocusTraversalPolicy
  A FocusTraversalPolicy that determines traversal order by sorting the Components of a focus traversal cycle based on a given Comparator.
See also:    Comparator
Constructors
protected SortingFocusTraversalPolicy ()
  Constructs a SortingFocusTraversalPolicy without a Comparator.
public SortingFocusTraversalPolicy (Comparator<Object> comparator)
Constructs a SortingFocusTraversalPolicy with the specified Comparator.
Methods
Hide/Show inherited methods
protected boolean accept (Component aComponent)
  Determines whether a Component is an acceptable choice as the new focus owner.
protected Comparator<Object> getComparator ()
  Returns the Comparator which will be used to sort the Components in a focus traversal cycle.
public Component getComponentAfter (Container aContainer, Component aComponent) [Specified in FocusTraversalPolicy]
  Returns the Component that should receive the focus after aComponent.
public Component getComponentBefore (Container aContainer, Component aComponent) [Specified in FocusTraversalPolicy]
  Returns the Component that should receive the focus before aComponent.
public Component getDefaultComponent (Container aContainer) [Specified in FocusTraversalPolicy]
  Returns the default Component to focus.
public Component getFirstComponent (Container aContainer) [Specified in FocusTraversalPolicy]
  Returns the first Component in the traversal cycle.
public boolean getImplicitDownCycleTraversal ()
  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) [Specified in FocusTraversalPolicy]
  Returns the last Component in the traversal cycle.
pack-private Container getTopmostProvider (Container focusCycleRoot, Component aComponent)
protected void setComparator (Comparator<Object> comparator)
  Sets the Comparator which will be used to sort the Components in a focus traversal cycle.
public void setImplicitDownCycleTraversal (boolean implicitDownCycleTraversal)
  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