java.awt
Class DefaultKeyboardFocusManager

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager 
      extended by java.awt.DefaultKeyboardFocusManager
All Implemented Interfaces:
KeyEventDispatcher sample code for java.awt.KeyEventDispatcher definition code for java.awt.KeyEventDispatcher , KeyEventPostProcessor sample code for java.awt.KeyEventPostProcessor definition code for java.awt.KeyEventPostProcessor
Direct Known Subclasses:
FocusManager sample code for javax.swing.FocusManager definition code for javax.swing.FocusManager

public class DefaultKeyboardFocusManager
extends KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager

The default KeyboardFocusManager for AWT applications. Focus traversal is done in response to a Component's focus traversal keys, and using a Container's FocusTraversalPolicy.

Please see How to Use the Focus Subsystem, a section in The Java Tutorial, and the Focus Specification for more information.

Since:
1.4
See Also:
FocusTraversalPolicy sample code for java.awt.FocusTraversalPolicy definition code for java.awt.FocusTraversalPolicy , Component.setFocusTraversalKeys(int, java.util.Set) sample code for java.awt.Component.setFocusTraversalKeys(int, java.util.Set) definition code for java.awt.Component.setFocusTraversalKeys(int, java.util.Set) , Component.getFocusTraversalKeys(int) sample code for java.awt.Component.getFocusTraversalKeys(int) definition code for java.awt.Component.getFocusTraversalKeys(int)

Field Summary
 
Fields inherited from class java.awt.KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
BACKWARD_TRAVERSAL_KEYS sample code for java.awt.KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS definition code for java.awt.KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS , DOWN_CYCLE_TRAVERSAL_KEYS sample code for java.awt.KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS definition code for java.awt.KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS , FORWARD_TRAVERSAL_KEYS sample code for java.awt.KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS definition code for java.awt.KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS , UP_CYCLE_TRAVERSAL_KEYS sample code for java.awt.KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS definition code for java.awt.KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS
 
Constructor Summary
DefaultKeyboardFocusManager sample code for java.awt.DefaultKeyboardFocusManager.DefaultKeyboardFocusManager() definition code for java.awt.DefaultKeyboardFocusManager.DefaultKeyboardFocusManager() ()
           
 
Method Summary
protected  void dequeueKeyEvents sample code for java.awt.DefaultKeyboardFocusManager.dequeueKeyEvents(long, java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.dequeueKeyEvents(long, java.awt.Component) (long after, Component sample code for java.awt.Component definition code for java.awt.Component  untilFocused)
          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.
protected  void discardKeyEvents sample code for java.awt.DefaultKeyboardFocusManager.discardKeyEvents(java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.discardKeyEvents(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  comp)
          Discards all KeyEvents which were enqueued because of one or more calls to enqueueKeyEvents with the specified Component, or one of its descendants.
 boolean dispatchEvent sample code for java.awt.DefaultKeyboardFocusManager.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.DefaultKeyboardFocusManager.dispatchEvent(java.awt.AWTEvent) (AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent  e)
          This method is called by the AWT event dispatcher requesting that the current KeyboardFocusManager dispatch the specified event on its behalf.
 boolean dispatchKeyEvent sample code for java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent) (KeyEvent sample code for java.awt.event.KeyEvent definition code for java.awt.event.KeyEvent  e)
          Called by dispatchEvent if no other KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or if no other KeyEventDispatchers are registered.
 void downFocusCycle sample code for java.awt.DefaultKeyboardFocusManager.downFocusCycle(java.awt.Container) definition code for java.awt.DefaultKeyboardFocusManager.downFocusCycle(java.awt.Container) (Container sample code for java.awt.Container definition code for java.awt.Container  aContainer)
          Moves the focus down one focus traversal cycle.
protected  void enqueueKeyEvents sample code for java.awt.DefaultKeyboardFocusManager.enqueueKeyEvents(long, java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.enqueueKeyEvents(long, java.awt.Component) (long after, Component sample code for java.awt.Component definition code for java.awt.Component  untilFocused)
          Delays dispatching of KeyEvents until the specified Component becomes the focus owner.
 void focusNextComponent sample code for java.awt.DefaultKeyboardFocusManager.focusNextComponent(java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.focusNextComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  aComponent)
          Focuses the Component after aComponent, typically based on a FocusTraversalPolicy.
 void focusPreviousComponent sample code for java.awt.DefaultKeyboardFocusManager.focusPreviousComponent(java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.focusPreviousComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  aComponent)
          Focuses the Component before aComponent, typically based on a FocusTraversalPolicy.
 boolean postProcessKeyEvent sample code for java.awt.DefaultKeyboardFocusManager.postProcessKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.DefaultKeyboardFocusManager.postProcessKeyEvent(java.awt.event.KeyEvent) (KeyEvent sample code for java.awt.event.KeyEvent definition code for java.awt.event.KeyEvent  e)
          This method will be called by dispatchKeyEvent.
 void processKeyEvent sample code for java.awt.DefaultKeyboardFocusManager.processKeyEvent(java.awt.Component, java.awt.event.KeyEvent) definition code for java.awt.DefaultKeyboardFocusManager.processKeyEvent(java.awt.Component, java.awt.event.KeyEvent) (Component sample code for java.awt.Component definition code for java.awt.Component  focusedComponent, KeyEvent sample code for java.awt.event.KeyEvent definition code for java.awt.event.KeyEvent  e)
          This method initiates a focus traversal operation if and only if the KeyEvent represents a focus traversal key for the specified focusedComponent.
 void upFocusCycle sample code for java.awt.DefaultKeyboardFocusManager.upFocusCycle(java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.upFocusCycle(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  aComponent)
          Moves the focus up one focus traversal cycle.
 
Methods inherited from class java.awt.KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
addKeyEventDispatcher sample code for java.awt.KeyboardFocusManager.addKeyEventDispatcher(java.awt.KeyEventDispatcher) definition code for java.awt.KeyboardFocusManager.addKeyEventDispatcher(java.awt.KeyEventDispatcher) , addKeyEventPostProcessor sample code for java.awt.KeyboardFocusManager.addKeyEventPostProcessor(java.awt.KeyEventPostProcessor) definition code for java.awt.KeyboardFocusManager.addKeyEventPostProcessor(java.awt.KeyEventPostProcessor) , addPropertyChangeListener sample code for java.awt.KeyboardFocusManager.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.KeyboardFocusManager.addPropertyChangeListener(java.beans.PropertyChangeListener) , addPropertyChangeListener sample code for java.awt.KeyboardFocusManager.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.KeyboardFocusManager.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , addVetoableChangeListener sample code for java.awt.KeyboardFocusManager.addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) definition code for java.awt.KeyboardFocusManager.addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) , addVetoableChangeListener sample code for java.awt.KeyboardFocusManager.addVetoableChangeListener(java.beans.VetoableChangeListener) definition code for java.awt.KeyboardFocusManager.addVetoableChangeListener(java.beans.VetoableChangeListener) , clearGlobalFocusOwner sample code for java.awt.KeyboardFocusManager.clearGlobalFocusOwner() definition code for java.awt.KeyboardFocusManager.clearGlobalFocusOwner() , downFocusCycle sample code for java.awt.KeyboardFocusManager.downFocusCycle() definition code for java.awt.KeyboardFocusManager.downFocusCycle() , firePropertyChange sample code for java.awt.KeyboardFocusManager.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.KeyboardFocusManager.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) , fireVetoableChange sample code for java.awt.KeyboardFocusManager.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.KeyboardFocusManager.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) , focusNextComponent sample code for java.awt.KeyboardFocusManager.focusNextComponent() definition code for java.awt.KeyboardFocusManager.focusNextComponent() , focusPreviousComponent sample code for java.awt.KeyboardFocusManager.focusPreviousComponent() definition code for java.awt.KeyboardFocusManager.focusPreviousComponent() , getActiveWindow sample code for java.awt.KeyboardFocusManager.getActiveWindow() definition code for java.awt.KeyboardFocusManager.getActiveWindow() , getCurrentFocusCycleRoot sample code for java.awt.KeyboardFocusManager.getCurrentFocusCycleRoot() definition code for java.awt.KeyboardFocusManager.getCurrentFocusCycleRoot() , getCurrentKeyboardFocusManager sample code for java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager() definition code for java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager() , getDefaultFocusTraversalKeys sample code for java.awt.KeyboardFocusManager.getDefaultFocusTraversalKeys(int) definition code for java.awt.KeyboardFocusManager.getDefaultFocusTraversalKeys(int) , getDefaultFocusTraversalPolicy sample code for java.awt.KeyboardFocusManager.getDefaultFocusTraversalPolicy() definition code for java.awt.KeyboardFocusManager.getDefaultFocusTraversalPolicy() , getFocusedWindow sample code for java.awt.KeyboardFocusManager.getFocusedWindow() definition code for java.awt.KeyboardFocusManager.getFocusedWindow() , getFocusOwner sample code for java.awt.KeyboardFocusManager.getFocusOwner() definition code for java.awt.KeyboardFocusManager.getFocusOwner() , getGlobalActiveWindow sample code for java.awt.KeyboardFocusManager.getGlobalActiveWindow() definition code for java.awt.KeyboardFocusManager.getGlobalActiveWindow() , getGlobalCurrentFocusCycleRoot sample code for java.awt.KeyboardFocusManager.getGlobalCurrentFocusCycleRoot() definition code for java.awt.KeyboardFocusManager.getGlobalCurrentFocusCycleRoot() , getGlobalFocusedWindow sample code for java.awt.KeyboardFocusManager.getGlobalFocusedWindow() definition code for java.awt.KeyboardFocusManager.getGlobalFocusedWindow() , getGlobalFocusOwner sample code for java.awt.KeyboardFocusManager.getGlobalFocusOwner() definition code for java.awt.KeyboardFocusManager.getGlobalFocusOwner() , getGlobalPermanentFocusOwner sample code for java.awt.KeyboardFocusManager.getGlobalPermanentFocusOwner() definition code for java.awt.KeyboardFocusManager.getGlobalPermanentFocusOwner() , getKeyEventDispatchers sample code for java.awt.KeyboardFocusManager.getKeyEventDispatchers() definition code for java.awt.KeyboardFocusManager.getKeyEventDispatchers() , getKeyEventPostProcessors sample code for java.awt.KeyboardFocusManager.getKeyEventPostProcessors() definition code for java.awt.KeyboardFocusManager.getKeyEventPostProcessors() , getPermanentFocusOwner sample code for java.awt.KeyboardFocusManager.getPermanentFocusOwner() definition code for java.awt.KeyboardFocusManager.getPermanentFocusOwner() , getPropertyChangeListeners sample code for java.awt.KeyboardFocusManager.getPropertyChangeListeners() definition code for java.awt.KeyboardFocusManager.getPropertyChangeListeners() , getPropertyChangeListeners sample code for java.awt.KeyboardFocusManager.getPropertyChangeListeners(java.lang.String) definition code for java.awt.KeyboardFocusManager.getPropertyChangeListeners(java.lang.String) , getVetoableChangeListeners sample code for java.awt.KeyboardFocusManager.getVetoableChangeListeners() definition code for java.awt.KeyboardFocusManager.getVetoableChangeListeners() , getVetoableChangeListeners sample code for java.awt.KeyboardFocusManager.getVetoableChangeListeners(java.lang.String) definition code for java.awt.KeyboardFocusManager.getVetoableChangeListeners(java.lang.String) , redispatchEvent sample code for java.awt.KeyboardFocusManager.redispatchEvent(java.awt.Component, java.awt.AWTEvent) definition code for java.awt.KeyboardFocusManager.redispatchEvent(java.awt.Component, java.awt.AWTEvent) , removeKeyEventDispatcher sample code for java.awt.KeyboardFocusManager.removeKeyEventDispatcher(java.awt.KeyEventDispatcher) definition code for java.awt.KeyboardFocusManager.removeKeyEventDispatcher(java.awt.KeyEventDispatcher) , removeKeyEventPostProcessor sample code for java.awt.KeyboardFocusManager.removeKeyEventPostProcessor(java.awt.KeyEventPostProcessor) definition code for java.awt.KeyboardFocusManager.removeKeyEventPostProcessor(java.awt.KeyEventPostProcessor) , removePropertyChangeListener sample code for java.awt.KeyboardFocusManager.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.KeyboardFocusManager.removePropertyChangeListener(java.beans.PropertyChangeListener) , removePropertyChangeListener sample code for java.awt.KeyboardFocusManager.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.KeyboardFocusManager.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , removeVetoableChangeListener sample code for java.awt.KeyboardFocusManager.removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) definition code for java.awt.KeyboardFocusManager.removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) , removeVetoableChangeListener sample code for java.awt.KeyboardFocusManager.removeVetoableChangeListener(java.beans.VetoableChangeListener) definition code for java.awt.KeyboardFocusManager.removeVetoableChangeListener(java.beans.VetoableChangeListener) , setCurrentKeyboardFocusManager sample code for java.awt.KeyboardFocusManager.setCurrentKeyboardFocusManager(java.awt.KeyboardFocusManager) definition code for java.awt.KeyboardFocusManager.setCurrentKeyboardFocusManager(java.awt.KeyboardFocusManager) , setDefaultFocusTraversalKeys sample code for java.awt.KeyboardFocusManager.setDefaultFocusTraversalKeys(int, java.util.Set) definition code for java.awt.KeyboardFocusManager.setDefaultFocusTraversalKeys(int, java.util.Set) , setDefaultFocusTraversalPolicy sample code for java.awt.KeyboardFocusManager.setDefaultFocusTraversalPolicy(java.awt.FocusTraversalPolicy) definition code for java.awt.KeyboardFocusManager.setDefaultFocusTraversalPolicy(java.awt.FocusTraversalPolicy) , setGlobalActiveWindow sample code for java.awt.KeyboardFocusManager.setGlobalActiveWindow(java.awt.Window) definition code for java.awt.KeyboardFocusManager.setGlobalActiveWindow(java.awt.Window) , setGlobalCurrentFocusCycleRoot sample code for java.awt.KeyboardFocusManager.setGlobalCurrentFocusCycleRoot(java.awt.Container) definition code for java.awt.KeyboardFocusManager.setGlobalCurrentFocusCycleRoot(java.awt.Container) , setGlobalFocusedWindow sample code for java.awt.KeyboardFocusManager.setGlobalFocusedWindow(java.awt.Window) definition code for java.awt.KeyboardFocusManager.setGlobalFocusedWindow(java.awt.Window) , setGlobalFocusOwner sample code for java.awt.KeyboardFocusManager.setGlobalFocusOwner(java.awt.Component) definition code for java.awt.KeyboardFocusManager.setGlobalFocusOwner(java.awt.Component) , setGlobalPermanentFocusOwner sample code for java.awt.KeyboardFocusManager.setGlobalPermanentFocusOwner(java.awt.Component) definition code for java.awt.KeyboardFocusManager.setGlobalPermanentFocusOwner(java.awt.Component) , upFocusCycle sample code for java.awt.KeyboardFocusManager.upFocusCycle() definition code for java.awt.KeyboardFocusManager.upFocusCycle()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

DefaultKeyboardFocusManager sample code for java.awt.DefaultKeyboardFocusManager() definition code for java.awt.DefaultKeyboardFocusManager()

public DefaultKeyboardFocusManager()
Method Detail

dispatchEvent sample code for java.awt.DefaultKeyboardFocusManager.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.DefaultKeyboardFocusManager.dispatchEvent(java.awt.AWTEvent)

public boolean dispatchEvent(AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent  e)
This method is called by the AWT event dispatcher requesting that the current KeyboardFocusManager dispatch the specified event on its behalf. DefaultKeyboardFocusManagers dispatch all FocusEvents, all WindowEvents related to focus, and all KeyEvents. These events are dispatched based on the KeyboardFocusManager's notion of the focus owner and the focused and active Windows, sometimes overriding the source of the specified AWTEvent. If this method returns false, then the AWT event dispatcher will attempt to dispatch the event itself.

Specified by:
dispatchEvent sample code for java.awt.KeyboardFocusManager.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.KeyboardFocusManager.dispatchEvent(java.awt.AWTEvent) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
e - the AWTEvent to be dispatched
Returns:
true if this method dispatched the event; false otherwise
See Also:
KeyboardFocusManager.redispatchEvent(java.awt.Component, java.awt.AWTEvent) sample code for java.awt.KeyboardFocusManager.redispatchEvent(java.awt.Component, java.awt.AWTEvent) definition code for java.awt.KeyboardFocusManager.redispatchEvent(java.awt.Component, java.awt.AWTEvent) , KeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent) sample code for java.awt.KeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.KeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent)

dispatchKeyEvent sample code for java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent)

public boolean dispatchKeyEvent(KeyEvent sample code for java.awt.event.KeyEvent definition code for java.awt.event.KeyEvent  e)
Called by dispatchEvent if no other KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or if no other KeyEventDispatchers are registered. If the event has not been consumed, its target is enabled, and the focus owner is not null, this method dispatches the event to its target. This method will also subsequently dispatch the event to all registered KeyEventPostProcessors. After all this operations are finished, the event is passed to peers for processing.

In all cases, this method returns true, since DefaultKeyboardFocusManager is designed so that neither dispatchEvent, nor the AWT event dispatcher, should take further action on the event in any situation.

Specified by:
dispatchKeyEvent sample code for java.awt.KeyEventDispatcher.dispatchKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.KeyEventDispatcher.dispatchKeyEvent(java.awt.event.KeyEvent) in interface KeyEventDispatcher sample code for java.awt.KeyEventDispatcher definition code for java.awt.KeyEventDispatcher
Specified by:
dispatchKeyEvent sample code for java.awt.KeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.KeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
e - the KeyEvent to be dispatched
Returns:
true
See Also:
Component.dispatchEvent(java.awt.AWTEvent) sample code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.Component.dispatchEvent(java.awt.AWTEvent)

postProcessKeyEvent sample code for java.awt.DefaultKeyboardFocusManager.postProcessKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.DefaultKeyboardFocusManager.postProcessKeyEvent(java.awt.event.KeyEvent)

public boolean postProcessKeyEvent(KeyEvent sample code for java.awt.event.KeyEvent definition code for java.awt.event.KeyEvent  e)
This method will be called by dispatchKeyEvent. It will handle any unconsumed KeyEvents that map to an AWT MenuShortcut by consuming the event and activating the shortcut.

Specified by:
postProcessKeyEvent sample code for java.awt.KeyEventPostProcessor.postProcessKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.KeyEventPostProcessor.postProcessKeyEvent(java.awt.event.KeyEvent) in interface KeyEventPostProcessor sample code for java.awt.KeyEventPostProcessor definition code for java.awt.KeyEventPostProcessor
Specified by:
postProcessKeyEvent sample code for java.awt.KeyboardFocusManager.postProcessKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.KeyboardFocusManager.postProcessKeyEvent(java.awt.event.KeyEvent) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
e - the KeyEvent to post-process
Returns:
true
See Also:
dispatchKeyEvent(java.awt.event.KeyEvent) sample code for java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(java.awt.event.KeyEvent) , MenuShortcut sample code for java.awt.MenuShortcut definition code for java.awt.MenuShortcut

processKeyEvent sample code for java.awt.DefaultKeyboardFocusManager.processKeyEvent(java.awt.Component, java.awt.event.KeyEvent) definition code for java.awt.DefaultKeyboardFocusManager.processKeyEvent(java.awt.Component, java.awt.event.KeyEvent)

public void processKeyEvent(Component sample code for java.awt.Component definition code for java.awt.Component  focusedComponent,
                            KeyEvent sample code for java.awt.event.KeyEvent definition code for java.awt.event.KeyEvent  e)
This method initiates a focus traversal operation if and only if the KeyEvent represents a focus traversal key for the specified focusedComponent. It is expected that focusedComponent is the current focus owner, although this need not be the case. If it is not, focus traversal will nevertheless proceed as if focusedComponent were the focus owner.

Specified by:
processKeyEvent sample code for java.awt.KeyboardFocusManager.processKeyEvent(java.awt.Component, java.awt.event.KeyEvent) definition code for java.awt.KeyboardFocusManager.processKeyEvent(java.awt.Component, java.awt.event.KeyEvent) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
focusedComponent - the Component that is the basis for a focus traversal operation if the specified event represents a focus traversal key for the Component
e - the event that may represent a focus traversal key

enqueueKeyEvents sample code for java.awt.DefaultKeyboardFocusManager.enqueueKeyEvents(long, java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.enqueueKeyEvents(long, java.awt.Component)

protected void enqueueKeyEvents(long after,
                                Component sample code for java.awt.Component definition code for java.awt.Component  untilFocused)
Delays dispatching of KeyEvents until the specified Component becomes the focus owner. KeyEvents with timestamps later than the specified timestamp will be enqueued until the specified Component receives a FOCUS_GAINED event, or the AWT cancels the delay request by invoking dequeueKeyEvents or discardKeyEvents.

Specified by:
enqueueKeyEvents sample code for java.awt.KeyboardFocusManager.enqueueKeyEvents(long, java.awt.Component) definition code for java.awt.KeyboardFocusManager.enqueueKeyEvents(long, java.awt.Component) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
after - timestamp of current event, or the current, system time if the current event has no timestamp, or the AWT cannot determine which event is currently being handled
untilFocused - Component which will receive a FOCUS_GAINED event before any pending KeyEvents
See Also:
dequeueKeyEvents(long, java.awt.Component) sample code for java.awt.DefaultKeyboardFocusManager.dequeueKeyEvents(long, java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.dequeueKeyEvents(long, java.awt.Component) , discardKeyEvents(java.awt.Component) sample code for java.awt.DefaultKeyboardFocusManager.discardKeyEvents(java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.discardKeyEvents(java.awt.Component)

dequeueKeyEvents sample code for java.awt.DefaultKeyboardFocusManager.dequeueKeyEvents(long, java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.dequeueKeyEvents(long, java.awt.Component)

protected void dequeueKeyEvents(long after,
                                Component sample code for java.awt.Component definition code for java.awt.Component  untilFocused)
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. If the given timestamp is less than zero, the outstanding enqueue request for the given Component with the oldest timestamp (if any) should be cancelled.

Specified by:
dequeueKeyEvents sample code for java.awt.KeyboardFocusManager.dequeueKeyEvents(long, java.awt.Component) definition code for java.awt.KeyboardFocusManager.dequeueKeyEvents(long, java.awt.Component) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
after - the timestamp specified in the call to enqueueKeyEvents, or any value < 0
untilFocused - the Component specified in the call to enqueueKeyEvents
See Also:
enqueueKeyEvents(long, java.awt.Component) sample code for java.awt.DefaultKeyboardFocusManager.enqueueKeyEvents(long, java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.enqueueKeyEvents(long, java.awt.Component) , discardKeyEvents(java.awt.Component) sample code for java.awt.DefaultKeyboardFocusManager.discardKeyEvents(java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.discardKeyEvents(java.awt.Component)

discardKeyEvents sample code for java.awt.DefaultKeyboardFocusManager.discardKeyEvents(java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.discardKeyEvents(java.awt.Component)

protected void discardKeyEvents(Component sample code for java.awt.Component definition code for java.awt.Component  comp)
Discards all KeyEvents which were enqueued because of one or more calls to enqueueKeyEvents with the specified Component, or one of its descendants.

Specified by:
discardKeyEvents sample code for java.awt.KeyboardFocusManager.discardKeyEvents(java.awt.Component) definition code for java.awt.KeyboardFocusManager.discardKeyEvents(java.awt.Component) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
comp - the Component specified in one or more calls to enqueueKeyEvents, or a parent of such a Component
See Also:
enqueueKeyEvents(long, java.awt.Component) sample code for java.awt.DefaultKeyboardFocusManager.enqueueKeyEvents(long, java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.enqueueKeyEvents(long, java.awt.Component) , dequeueKeyEvents(long, java.awt.Component) sample code for java.awt.DefaultKeyboardFocusManager.dequeueKeyEvents(long, java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.dequeueKeyEvents(long, java.awt.Component)

focusPreviousComponent sample code for java.awt.DefaultKeyboardFocusManager.focusPreviousComponent(java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.focusPreviousComponent(java.awt.Component)

public void focusPreviousComponent(Component sample code for java.awt.Component definition code for java.awt.Component  aComponent)
Focuses the Component before aComponent, typically based on a FocusTraversalPolicy.

Specified by:
focusPreviousComponent sample code for java.awt.KeyboardFocusManager.focusPreviousComponent(java.awt.Component) definition code for java.awt.KeyboardFocusManager.focusPreviousComponent(java.awt.Component) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
aComponent - the Component that is the basis for the focus traversal operation
See Also:
FocusTraversalPolicy sample code for java.awt.FocusTraversalPolicy definition code for java.awt.FocusTraversalPolicy , Component.transferFocusBackward() sample code for java.awt.Component.transferFocusBackward() definition code for java.awt.Component.transferFocusBackward()

focusNextComponent sample code for java.awt.DefaultKeyboardFocusManager.focusNextComponent(java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.focusNextComponent(java.awt.Component)

public void focusNextComponent(Component sample code for java.awt.Component definition code for java.awt.Component  aComponent)
Focuses the Component after aComponent, typically based on a FocusTraversalPolicy.

Specified by:
focusNextComponent sample code for java.awt.KeyboardFocusManager.focusNextComponent(java.awt.Component) definition code for java.awt.KeyboardFocusManager.focusNextComponent(java.awt.Component) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
aComponent - the Component that is the basis for the focus traversal operation
See Also:
FocusTraversalPolicy sample code for java.awt.FocusTraversalPolicy definition code for java.awt.FocusTraversalPolicy , Component.transferFocus() sample code for java.awt.Component.transferFocus() definition code for java.awt.Component.transferFocus()

upFocusCycle sample code for java.awt.DefaultKeyboardFocusManager.upFocusCycle(java.awt.Component) definition code for java.awt.DefaultKeyboardFocusManager.upFocusCycle(java.awt.Component)

public void upFocusCycle(Component sample code for java.awt.Component definition code for java.awt.Component  aComponent)
Moves the focus up one focus traversal cycle. Typically, the focus owner is set to aComponent's focus cycle root, and the current focus cycle root is set to the new focus owner's focus cycle root. If, however, aComponent's focus cycle root is a Window, then the focus owner is set to the focus cycle root's default Component to focus, and the current focus cycle root is unchanged.

Specified by:
upFocusCycle sample code for java.awt.KeyboardFocusManager.upFocusCycle(java.awt.Component) definition code for java.awt.KeyboardFocusManager.upFocusCycle(java.awt.Component) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
aComponent - the Component that is the basis for the focus traversal operation
See Also:
Component.transferFocusUpCycle() sample code for java.awt.Component.transferFocusUpCycle() definition code for java.awt.Component.transferFocusUpCycle()

downFocusCycle sample code for java.awt.DefaultKeyboardFocusManager.downFocusCycle(java.awt.Container) definition code for java.awt.DefaultKeyboardFocusManager.downFocusCycle(java.awt.Container)

public void downFocusCycle(Container sample code for java.awt.Container definition code for java.awt.Container  aContainer)
Moves the focus down one focus traversal cycle. If aContainer is a focus cycle root, then the focus owner is set to aContainer's default Component to focus, and the current focus cycle root is set to aContainer. If aContainer is not a focus cycle root, then no focus traversal operation occurs.

Specified by:
downFocusCycle sample code for java.awt.KeyboardFocusManager.downFocusCycle(java.awt.Container) definition code for java.awt.KeyboardFocusManager.downFocusCycle(java.awt.Container) in class KeyboardFocusManager sample code for java.awt.KeyboardFocusManager definition code for java.awt.KeyboardFocusManager
Parameters:
aContainer - the Container that is the basis for the focus traversal operation
See Also:
Container.transferFocusDownCycle() sample code for java.awt.Container.transferFocusDownCycle() definition code for java.awt.Container.transferFocusDownCycle()