void
|
addKeyEventDispatcher(KeyEventDispatcher dispatcher)
Adds a KeyEventDispatcher to this KeyboardFocusManager's dispatcher
chain.
|
void
|
addKeyEventPostProcessor(KeyEventPostProcessor processor)
Adds a KeyEventPostProcessor to this KeyboardFocusManager's post-
processor chain.
|
void
|
addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list for a specific
property.
|
void
|
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.
|
void
|
addVetoableChangeListener(String propertyName, VetoableChangeListener listener)
Adds a VetoableChangeListener to the listener list for a specific
property.
|
void
|
addVetoableChangeListener(VetoableChangeListener listener)
Adds a VetoableChangeListener to the listener list.
|
void
|
clearGlobalFocusOwner()
Clears the global focus owner at both the Java and native levels.
|
abstract
void
|
dequeueKeyEvents(long after, Component untilFocused)
Called by the AWT to notify the KeyboardFocusManager that it should
cancel delayed dispatching of KeyEvents.
|
abstract
void
|
discardKeyEvents(Component comp)
Called by the AWT to notify the KeyboardFocusManager that it should
cancel delayed dispatching of KeyEvents.
|
abstract
boolean
|
dispatchEvent(AWTEvent e)
This method is called by the AWT event dispatcher requesting that the
current KeyboardFocusManager dispatch the specified event on its behalf.
|
abstract
boolean
|
dispatchKeyEvent(KeyEvent e)
Typically this method will be called by dispatchEvent if no
other KeyEventDispatcher in the dispatcher chain dispatched the
KeyEvent, or if no other KeyEventDispatchers are registered.
|
final
void
|
downFocusCycle()
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.
|
abstract
void
|
downFocusCycle(Container aContainer)
Moves the focus down one focus traversal cycle.
|
abstract
void
|
enqueueKeyEvents(long after, Component untilFocused)
Called by the AWT to notify the KeyboardFocusManager that it should
delay dispatching of KeyEvents until the specified Component becomes
the focus owner.
|
void
|
firePropertyChange(String propertyName, Object oldValue, Object newValue)
Fires a PropertyChangeEvent in response to a change in a bound property.
|
void
|
fireVetoableChange(String propertyName, Object oldValue, Object newValue)
Fires a PropertyChangeEvent in response to a change in a vetoable
property.
|
final
void
|
focusNextComponent()
Focuses the Component after the current focus owner.
|
abstract
void
|
focusNextComponent(Component aComponent)
Focuses the Component after aComponent, typically based on a
FocusTraversalPolicy.
|
final
void
|
focusPreviousComponent()
Focuses the Component before the current focus owner.
|
abstract
void
|
focusPreviousComponent(Component aComponent)
Focuses the Component before aComponent, typically based on a
FocusTraversalPolicy.
|
Window
|
getActiveWindow()
Returns the active Window, if the active Window is in the same context
as the calling thread.
|
Container
|
getCurrentFocusCycleRoot()
Returns the current focus cycle root, if the current focus cycle root is
in the same context as the calling thread.
|
static
KeyboardFocusManager
|
getCurrentKeyboardFocusManager()
Returns the current KeyboardFocusManager instance for the calling
thread's context.
|
Set<AWTKeyStroke>
|
getDefaultFocusTraversalKeys(int id)
Returns a Set of default focus traversal keys for a given traversal
operation.
|
synchronized
FocusTraversalPolicy
|
getDefaultFocusTraversalPolicy()
Returns the default FocusTraversalPolicy.
|
Component
|
getFocusOwner()
Returns the focus owner, if the focus owner is in the same context as
the calling thread.
|
Window
|
getFocusedWindow()
Returns the focused Window, if the focused Window is in the same context
as the calling thread.
|
Window
|
getGlobalActiveWindow()
Returns the active Window, even if the calling thread is in a different
context than the active Window.
|
Container
|
getGlobalCurrentFocusCycleRoot()
Returns the current focus cycle root, even if the calling thread is in a
different context than the current focus cycle root.
|
Component
|
getGlobalFocusOwner()
Returns the focus owner, even if the calling thread is in a different
context than the focus owner.
|
Window
|
getGlobalFocusedWindow()
Returns the focused Window, even if the calling thread is in a different
context than the focused Window.
|
Component
|
getGlobalPermanentFocusOwner()
Returns the permanent focus owner, even if the calling thread is in a
different context than the permanent focus owner.
|
synchronized
List<KeyEventDispatcher>
|
getKeyEventDispatchers()
Returns this KeyboardFocusManager's KeyEventDispatcher chain as a List.
|
List<KeyEventPostProcessor>
|
getKeyEventPostProcessors()
Returns this KeyboardFocusManager's KeyEventPostProcessor chain as a
List.
|
Component
|
getPermanentFocusOwner()
Returns the permanent focus owner, if the permanent focus owner is in
the same context as the calling thread.
|
synchronized
PropertyChangeListener[]
|
getPropertyChangeListeners()
Returns an array of all the property change listeners
registered on this keyboard focus manager.
|
synchronized
PropertyChangeListener[]
|
getPropertyChangeListeners(String propertyName)
Returns an array of all the PropertyChangeListener s
associated with the named property.
|
synchronized
VetoableChangeListener[]
|
getVetoableChangeListeners()
Returns an array of all the vetoable change listeners
registered on this keyboard focus manager.
|
synchronized
VetoableChangeListener[]
|
getVetoableChangeListeners(String propertyName)
Returns an array of all the VetoableChangeListener s
associated with the named property.
|
abstract
boolean
|
postProcessKeyEvent(KeyEvent e)
This method will be called by dispatchKeyEvent .
|
abstract
void
|
processKeyEvent(Component focusedComponent, KeyEvent e)
This method initiates a focus traversal operation if and only if the
KeyEvent represents a focus traversal key for the specified
focusedComponent.
|
final
void
|
redispatchEvent(Component target, AWTEvent e)
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.
|
void
|
removeKeyEventDispatcher(KeyEventDispatcher dispatcher)
Removes a KeyEventDispatcher which was previously added to this
KeyboardFocusManager's dispatcher chain.
|
void
|
removeKeyEventPostProcessor(KeyEventPostProcessor processor)
Removes a previously added KeyEventPostProcessor from this
KeyboardFocusManager's post-processor chain.
|
void
|
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list.
|
void
|
removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list for a specific
property.
|
void
|
removeVetoableChangeListener(VetoableChangeListener listener)
Removes a VetoableChangeListener from the listener list.
|
void
|
removeVetoableChangeListener(String propertyName, VetoableChangeListener listener)
Removes a VetoableChangeListener from the listener list for a specific
property.
|
static
void
|
setCurrentKeyboardFocusManager(KeyboardFocusManager newManager)
Sets the current KeyboardFocusManager instance for the calling thread's
context.
|
void
|
setDefaultFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)
Sets the default focus traversal keys for a given traversal operation.
|
void
|
setDefaultFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy)
Sets the default FocusTraversalPolicy.
|
void
|
setGlobalActiveWindow(Window activeWindow)
Sets the active Window.
|
void
|
setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)
Sets the current focus cycle root.
|
void
|
setGlobalFocusOwner(Component focusOwner)
Sets the focus owner.
|
void
|
setGlobalFocusedWindow(Window focusedWindow)
Sets the focused Window.
|
void
|
setGlobalPermanentFocusOwner(Component permanentFocusOwner)
Sets the permanent focus owner.
|
final
void
|
upFocusCycle()
Moves the focus up one focus traversal cycle from the current focus
owner.
|
abstract
void
|
upFocusCycle(Component aComponent)
Moves the focus up one focus traversal cycle.
|