API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. FocusManager View Source
Author(s)
Arnaud Weber
David Mendenhall
Since
Version
1.29, 11/17/05
Serial
Hierarchy
 Object
      KeyboardFocusManager
          DefaultKeyboardFocusManager
              FocusManager
Implements
Subclasses
Description
publicabstract abstract class FocusManager
  This class has been obsoleted by the 1.4 focus APIs.
See also:    Focus Specification
Constructors
public FocusManager ()
Methods
Hide/Show inherited methods
public void addKeyEventDispatcher (KeyEventDispatcher dispatcher) [Inherited From KeyboardFocusManager]
  Adds a KeyEventDispatcher to this KeyboardFocusManager's dispatcher chain.
public void addKeyEventPostProcessor (KeyEventPostProcessor processor) [Inherited From KeyboardFocusManager]
  Adds a KeyEventPostProcessor to this KeyboardFocusManager's post- processor chain.
public void addPropertyChangeListener (PropertyChangeListener listener) [Inherited From KeyboardFocusManager]
  Adds a PropertyChangeListener to the listener list.
public void addPropertyChangeListener (String propertyName, PropertyChangeListener listener) [Inherited From KeyboardFocusManager]
  Adds a PropertyChangeListener to the listener list for a specific property.
public void addVetoableChangeListener (String propertyName, VetoableChangeListener listener) [Inherited From KeyboardFocusManager]
  Adds a VetoableChangeListener to the listener list for a specific property.
public void addVetoableChangeListener (VetoableChangeListener listener) [Inherited From KeyboardFocusManager]
  Adds a VetoableChangeListener to the listener list.
public void clearGlobalFocusOwner () [Inherited From KeyboardFocusManager]
  Clears the global focus owner at both the Java and native levels.
protectedsynchronized void dequeueKeyEvents (long after, Component untilFocused) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  Releases for normal dispatching to the current focus owner all KeyEvents which were enqueued because of a call to enqueueKeyEvents with the same timestamp and Component.
@Deprecated
publicstatic void disableSwingFocusManager ()
  Changes the current KeyboardFocusManager's default FocusTraversalPolicy to DefaultFocusTraversalPolicy.
protectedsynchronized void discardKeyEvents (Component comp) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  Discards all KeyEvents which were enqueued because of one or more calls to enqueueKeyEvents with the specified Component, or one of its descendants.
public boolean dispatchEvent (AWTEvent e) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  This method is called by the AWT event dispatcher requesting that the current KeyboardFocusManager dispatch the specified event on its behalf.
public boolean dispatchKeyEvent (KeyEvent e) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  Called by dispatchEvent if no other KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or if no other KeyEventDispatchers are registered.
publicfinal void downFocusCycle () [Inherited From KeyboardFocusManager]
  Moves the focus down one focus traversal cycle from the current focus owner, if and only if the current focus owner is a Container that is a focus cycle root.
public void downFocusCycle (Container aContainer) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  Moves the focus down one focus traversal cycle.
protectedsynchronized void enqueueKeyEvents (long after, Component untilFocused) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  Delays dispatching of KeyEvents until the specified Component becomes the focus owner.
protected void firePropertyChange (String propertyName, Object oldValue, Object newValue) [Inherited From KeyboardFocusManager]
  Fires a PropertyChangeEvent in response to a change in a bound property.
protected void fireVetoableChange (String propertyName, Object oldValue, Object newValue) throws PropertyVetoException [Inherited From KeyboardFocusManager]
  Fires a PropertyChangeEvent in response to a change in a vetoable property.
publicfinal void focusNextComponent () [Inherited From KeyboardFocusManager]
Focuses the Component after the current focus owner.
public void focusNextComponent (Component aComponent) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  Focuses the Component after aComponent, typically based on a FocusTraversalPolicy.
publicfinal void focusPreviousComponent () [Inherited From KeyboardFocusManager]
Focuses the Component before the current focus owner.
public void focusPreviousComponent (Component aComponent) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  Focuses the Component before aComponent, typically based on a FocusTraversalPolicy.
public Window getActiveWindow () [Inherited From KeyboardFocusManager]
  Returns the active Window, if the active Window is in the same context as the calling thread.
public Container getCurrentFocusCycleRoot () [Inherited From KeyboardFocusManager]
  Returns the current focus cycle root, if the current focus cycle root is in the same context as the calling thread.
publicstatic KeyboardFocusManager getCurrentKeyboardFocusManager () [Inherited From KeyboardFocusManager]
  Returns the current KeyboardFocusManager instance for the calling thread's context.
publicstatic FocusManager getCurrentManager ()
  Returns the current KeyboardFocusManager instance for the calling thread's context.
public Set<AWTKeyStroke> getDefaultFocusTraversalKeys (int id) [Inherited From KeyboardFocusManager]
  Returns a Set of default focus traversal keys for a given traversal operation.
publicsynchronized FocusTraversalPolicy getDefaultFocusTraversalPolicy () [Inherited From KeyboardFocusManager]
  Returns the default FocusTraversalPolicy.
public Window getFocusedWindow () [Inherited From KeyboardFocusManager]
  Returns the focused Window, if the focused Window is in the same context as the calling thread.
public Component getFocusOwner () [Inherited From KeyboardFocusManager]
  Returns the focus owner, if the focus owner is in the same context as the calling thread.
protected Window getGlobalActiveWindow () throws SecurityException [Inherited From KeyboardFocusManager]
  Returns the active Window, even if the calling thread is in a different context than the active Window.
protected Container getGlobalCurrentFocusCycleRoot () throws SecurityException [Inherited From KeyboardFocusManager]
  Returns the current focus cycle root, even if the calling thread is in a different context than the current focus cycle root.
protected Window getGlobalFocusedWindow () throws SecurityException [Inherited From KeyboardFocusManager]
  Returns the focused Window, even if the calling thread is in a different context than the focused Window.
protected Component getGlobalFocusOwner () throws SecurityException [Inherited From KeyboardFocusManager]
  Returns the focus owner, even if the calling thread is in a different context than the focus owner.
protected Component getGlobalPermanentFocusOwner () throws SecurityException [Inherited From KeyboardFocusManager]
  Returns the permanent focus owner, even if the calling thread is in a different context than the permanent focus owner.
protectedsynchronized List<KeyEventDispatcher> getKeyEventDispatchers () [Inherited From KeyboardFocusManager]
  Returns this KeyboardFocusManager's KeyEventDispatcher chain as a List.
protected List<KeyEventPostProcessor> getKeyEventPostProcessors () [Inherited From KeyboardFocusManager]
  Returns this KeyboardFocusManager's KeyEventPostProcessor chain as a List.
public Component getPermanentFocusOwner () [Inherited From KeyboardFocusManager]
  Returns the permanent focus owner, if the permanent focus owner is in the same context as the calling thread.
publicsynchronized PropertyChangeListener getPropertyChangeListeners () [Inherited From KeyboardFocusManager]
  Returns an array of all the property change listeners registered on this keyboard focus manager.
publicsynchronized PropertyChangeListener getPropertyChangeListeners (String propertyName) [Inherited From KeyboardFocusManager]
  Returns an array of all the PropertyChangeListeners associated with the named property.
publicsynchronized VetoableChangeListener getVetoableChangeListeners () [Inherited From KeyboardFocusManager]
  Returns an array of all the vetoable change listeners registered on this keyboard focus manager.
publicsynchronized VetoableChangeListener getVetoableChangeListeners (String propertyName) [Inherited From KeyboardFocusManager]
  Returns an array of all the VetoableChangeListeners associated with the named property.
@Deprecated
publicstatic boolean isFocusManagerEnabled ()
  Returns whether the application has invoked disableSwingFocusManager().
public boolean postProcessKeyEvent (KeyEvent e) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  This method will be called by dispatchKeyEvent.
public void processKeyEvent (Component focusedComponent, KeyEvent e) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  This method initiates a focus traversal operation if and only if the KeyEvent represents a focus traversal key for the specified focusedComponent.
publicfinal void redispatchEvent (Component target, AWTEvent e) [Inherited From KeyboardFocusManager]
  Redispatches an AWTEvent in such a way that the AWT event dispatcher will not recursively request that the KeyboardFocusManager, or any installed KeyEventDispatchers, dispatch the event again.
public void removeKeyEventDispatcher (KeyEventDispatcher dispatcher) [Inherited From KeyboardFocusManager]
  Removes a KeyEventDispatcher which was previously added to this KeyboardFocusManager's dispatcher chain.
public void removeKeyEventPostProcessor (KeyEventPostProcessor processor) [Inherited From KeyboardFocusManager]
  Removes a previously added KeyEventPostProcessor from this KeyboardFocusManager's post-processor chain.
public void removePropertyChangeListener (PropertyChangeListener listener) [Inherited From KeyboardFocusManager]
  Removes a PropertyChangeListener from the listener list.
public void removePropertyChangeListener (String propertyName, PropertyChangeListener listener) [Inherited From KeyboardFocusManager]
  Removes a PropertyChangeListener from the listener list for a specific property.
public void removeVetoableChangeListener (String propertyName, VetoableChangeListener listener) [Inherited From KeyboardFocusManager]
  Removes a VetoableChangeListener from the listener list for a specific property.
public void removeVetoableChangeListener (VetoableChangeListener listener) [Inherited From KeyboardFocusManager]
  Removes a VetoableChangeListener from the listener list.
publicstatic void setCurrentKeyboardFocusManager (KeyboardFocusManager newManager) throws SecurityException [Inherited From KeyboardFocusManager]
  Sets the current KeyboardFocusManager instance for the calling thread's context.
publicstatic void setCurrentManager (FocusManager aFocusManager) throws SecurityException
  Sets the current KeyboardFocusManager instance for the calling thread's context.
public void setDefaultFocusTraversalKeys (int id, Set<AWTKeyStroke> keystrokes) [Inherited From KeyboardFocusManager]
  Sets the default focus traversal keys for a given traversal operation.
public void setDefaultFocusTraversalPolicy (FocusTraversalPolicy defaultPolicy) [Inherited From KeyboardFocusManager]
  Sets the default FocusTraversalPolicy.
protected void setGlobalActiveWindow (Window activeWindow) [Inherited From KeyboardFocusManager]
  Sets the active Window.
public void setGlobalCurrentFocusCycleRoot (Container newFocusCycleRoot) [Inherited From KeyboardFocusManager]
  Sets the current focus cycle root.
protected void setGlobalFocusedWindow (Window focusedWindow) [Inherited From KeyboardFocusManager]
  Sets the focused Window.
protected void setGlobalFocusOwner (Component focusOwner) [Inherited From KeyboardFocusManager]
  Sets the focus owner.
protected void setGlobalPermanentFocusOwner (Component permanentFocusOwner) [Inherited From KeyboardFocusManager]
  Sets the permanent focus owner.
publicfinal void upFocusCycle () [Inherited From KeyboardFocusManager]
  Moves the focus up one focus traversal cycle from the current focus owner.
public void upFocusCycle (Component aComponent) [Inherited From DefaultKeyboardFocusManager] [Specified in KeyboardFocusManager]
  Moves the focus up one focus traversal cycle.
Fields
Hide/Show inherited fields
publicfinalstatic int BACKWARD_TRAVERSAL_KEYS = "1" [Inherited From KeyboardFocusManager]
  The identifier for the Backward focus traversal keys.
publicfinalstatic int DOWN_CYCLE_TRAVERSAL_KEYS = "3" [Inherited From KeyboardFocusManager]
  The identifier for the Down Cycle focus traversal keys.
publicfinalstatic String FOCUS_MANAGER_CLASS_PROPERTY = "FocusManagerClassName"
  This field is obsolete, and its use is discouraged since its specification is incompatible with the 1.4 focus APIs.
publicfinalstatic int FORWARD_TRAVERSAL_KEYS = "0" [Inherited From KeyboardFocusManager]
  The identifier for the Forward focus traversal keys.
publicfinalstatic int UP_CYCLE_TRAVERSAL_KEYS = "2" [Inherited From KeyboardFocusManager]
  The identifier for the Up Cycle focus traversal keys.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar