Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt
Class FocusTraversalPolicy  view FocusTraversalPolicy download FocusTraversalPolicy.java

java.lang.Object
  extended byjava.awt.FocusTraversalPolicy
Direct Known Subclasses:
ContainerOrderFocusTraversalPolicy

public abstract class FocusTraversalPolicy
extends java.lang.Object

Since:
1.4

Constructor Summary
FocusTraversalPolicy()
          Creates a FocusTraversalPolicy object.
 
Method Summary
abstract  Component getComponentAfter(Container root, Component current)
          Returns the Component that should receive the focus after a Component.
abstract  Component getComponentBefore(Container root, Component current)
          Returns the Component that should receive the focus before a Component.
abstract  Component getDefaultComponent(Container root)
          Returns the default Component to focus.
abstract  Component getFirstComponent(Container root)
          Returns the first Component in the traversal cycle.
 Component getInitialComponent(Window window)
          Returns the Component that should receive the focus when a Window is made visible for the first time.
abstract  Component getLastComponent(Container root)
          Returns the last Component in the traversal cycle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusTraversalPolicy

public FocusTraversalPolicy()
Creates a FocusTraversalPolicy object.

Method Detail

getComponentAfter

public abstract Component getComponentAfter(Container root,
                                            Component current)
Returns the Component that should receive the focus after a Component.


getComponentBefore

public abstract Component getComponentBefore(Container root,
                                             Component current)
Returns the Component that should receive the focus before a Component.


getFirstComponent

public abstract Component getFirstComponent(Container root)
Returns the first Component in the traversal cycle.


getLastComponent

public abstract Component getLastComponent(Container root)
Returns the last Component in the traversal cycle.


getDefaultComponent

public abstract Component getDefaultComponent(Container root)
Returns the default Component to focus.


getInitialComponent

public Component getInitialComponent(Window window)
Returns the Component that should receive the focus when a Window is made visible for the first time.