API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. DefaultKeyboardFocusManager View Source
Author(s)
David Mendenhall
Since
1.4
Version
1.41, 03/15/07
Serial
Hierarchy
 Object
      KeyboardFocusManager
          DefaultKeyboardFocusManager
Implements
Subclasses
Description
public class DefaultKeyboardFocusManager
  The default KeyboardFocusManager for AWT applications.
Constructors
public DefaultKeyboardFocusManager ()
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.
pack-private void clearMarkers () [Overrides KeyboardFocusManager]
  Clears markers queue
pack-privatestatic void clearMostRecentFocusOwner (Component comp) [Inherited From KeyboardFocusManager]
protectedsynchronized void dequeueKeyEvents (long after, Component untilFocused) [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.
protectedsynchronized void discardKeyEvents (Component comp) [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) [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) [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) [Specified in KeyboardFocusManager]
  Moves the focus down one focus traversal cycle.
pack-private void dumpMarkers ()
Dumps the list of type-ahead queue markers to stderr
pack-private void dumpRequests () [Inherited From KeyboardFocusManager]
Dumps the list of focus requests to stderr
protectedsynchronized void enqueueKeyEvents (long after, Component untilFocused) [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) [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) [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.
pack-privatestaticsynchronized KeyboardFocusManager getCurrentKeyboardFocusManager (sun.awt.AppContext appcontext) [Inherited From KeyboardFocusManager]
pack-privatefinal SequencedEvent getCurrentSequencedEvent () [Inherited From KeyboardFocusManager]
pack-private Component getCurrentWaitingRequest (Component parent) [Inherited From KeyboardFocusManager]
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.
pack-privatestatic Component getHeavyweight (Component comp) [Inherited From KeyboardFocusManager]
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.
pack-privatestaticsynchronized Component getMostRecentFocusOwner (Window window) [Inherited From KeyboardFocusManager]
pack-private Window getNativeFocusedWindow () [Inherited From KeyboardFocusManager]
pack-private Component getNativeFocusOwner () [Inherited From KeyboardFocusManager]
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.
pack-privatestatic boolean hasFocusRequests () [Inherited From KeyboardFocusManager]
pack-privatestatic void heavyweightButtonDown (Component heavyweight, long time) [Inherited From KeyboardFocusManager]
pack-privatestatic void heavyweightButtonDown (Component heavyweight, long time, boolean acceptDuplicates) [Inherited From KeyboardFocusManager]
pack-privatestatic Set initFocusTraversalKeysSet (String value, Set targetSet) [Inherited From KeyboardFocusManager]
pack-privatestatic boolean isProxyActive (KeyEvent e) [Inherited From KeyboardFocusManager]
pack-privatestatic Window markClearGlobalFocusOwner () [Inherited From KeyboardFocusManager]
  Returns the Window which will be active after processing this request, or null if this is a duplicate request.
public boolean postProcessKeyEvent (KeyEvent e) [Specified in KeyboardFocusManager]
  This method will be called by dispatchKeyEvent.
pack-privatestatic void processCurrentLightweightRequests () [Inherited From KeyboardFocusManager]
public void processKeyEvent (Component focusedComponent, KeyEvent e) [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.
pack-privatestatic boolean processSynchronousLightweightTransfer (Component heavyweight, Component descendant, boolean temporary, boolean focusedWindowChangeAllowed, long time) [Inherited From KeyboardFocusManager]
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.
pack-privatestatic boolean removeFirstRequest () [Inherited From KeyboardFocusManager]
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.
pack-privatestatic void removeLastFocusRequest (Component heavyweight) [Inherited From KeyboardFocusManager]
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.
pack-privatestatic AWTEvent retargetFocusEvent (AWTEvent event) [Inherited From KeyboardFocusManager]
pack-privatestatic FocusEvent retargetFocusGained (FocusEvent fe) [Inherited From KeyboardFocusManager]
pack-privatestatic FocusEvent retargetFocusLost (FocusEvent fe) [Inherited From KeyboardFocusManager]
pack-privatestatic FocusEvent retargetUnexpectedFocusEvent (FocusEvent fe) [Inherited From KeyboardFocusManager]
pack-privatestatic boolean sendMessage (Component target, AWTEvent e)
  Sends a synthetic AWTEvent to a Component.
publicstatic void setCurrentKeyboardFocusManager (KeyboardFocusManager newManager) throws SecurityException [Inherited From KeyboardFocusManager]
  Sets the current KeyboardFocusManager instance for the calling thread's context.
pack-privatefinal void setCurrentSequencedEvent (SequencedEvent current) [Inherited From KeyboardFocusManager]
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.
pack-privatestatic void setMostRecentFocusOwner (Component component) [Inherited From KeyboardFocusManager]
pack-privatestaticsynchronized void setMostRecentFocusOwner (Window window, Component component) [Inherited From KeyboardFocusManager]
pack-private void setNativeFocusedWindow (Window win) [Inherited From KeyboardFocusManager]
pack-private void setNativeFocusOwner (Component comp) [Inherited From KeyboardFocusManager]
pack-privatestatic int shouldNativelyFocusHeavyweight (Component heavyweight, Component descendant, boolean temporary, boolean focusedWindowChangeAllowed, long time, sun.awt.CausedFocusEvent.Cause cause) [Inherited From KeyboardFocusManager]
  Indicates whether the native implementation should proceed with a pending, native focus request.
publicfinal void upFocusCycle () [Inherited From KeyboardFocusManager]
  Moves the focus up one focus traversal cycle from the current focus owner.
public void upFocusCycle (Component aComponent) [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.
pack-privatetransient SequencedEvent currentSequencedEvent [Inherited From KeyboardFocusManager]
pack-privatestaticvolatile boolean disableRestoreFocus [Inherited From KeyboardFocusManager]
publicfinalstatic int DOWN_CYCLE_TRAVERSAL_KEYS = "3" [Inherited From KeyboardFocusManager]
  The identifier for the Down Cycle focus traversal keys.
publicfinalstatic int FORWARD_TRAVERSAL_KEYS = "0" [Inherited From KeyboardFocusManager]
  The identifier for the Forward focus traversal keys.
pack-privatetransient KeyboardFocusManagerPeer peer [Inherited From KeyboardFocusManager]
pack-privatestatic Field proxyActive [Inherited From KeyboardFocusManager]
pack-privatefinalstatic int SNFH_FAILURE = "0" [Inherited From KeyboardFocusManager]
pack-privatefinalstatic int SNFH_SUCCESS_HANDLED = "1" [Inherited From KeyboardFocusManager]
pack-privatefinalstatic int SNFH_SUCCESS_PROCEED = "2" [Inherited From KeyboardFocusManager]
pack-privatefinalstatic int TRAVERSAL_KEY_LENGTH = "4" [Inherited From KeyboardFocusManager]
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