| java.lang.Object java.awt.KeyboardFocusManager
All known Subclasses: java.awt.DefaultKeyboardFocusManager,
Method Summary | |
public void | addKeyEventDispatcher(KeyEventDispatcher dispatcher) | public void | addKeyEventPostProcessor(KeyEventPostProcessor processor) | public void | addPropertyChangeListener(String propertyName, PropertyChangeListener listener) | public void | addPropertyChangeListener(PropertyChangeListener listener) | public void | addVetoableChangeListener(VetoableChangeListener listener) | public void | addVetoableChangeListener(String propertyName, VetoableChangeListener listener) | static void | checkKeyStrokes(int[] traversalIDs, Map<Integer, Set<? extends AWTKeyStroke>> traversalKeys, Integer kId, Set<? extends AWTKeyStroke> keystrokes) | static void | checkTraversalKeyId(int id, int maxValue) | static void | checkTraversalKeysID(Map, ?> keysMap, Integer id) | public void | clearGlobalFocusOwner() | abstract protected void | dequeueKeyEvents(long a0, Component a1) | abstract protected void | discardKeyEvents(Component a0) | abstract public boolean | dispatchEvent(AWTEvent a0) | abstract public boolean | dispatchKeyEvent(KeyEvent a0) | final public void | downFocusCycle() | abstract public void | downFocusCycle(Container a0) | abstract protected void | enqueueKeyEvents(long a0, Component a1) | protected void | firePropertyChange(String propertyName, Object oldValue, Object newValue) | protected void | fireVetoableChange(String propertyName, Object oldValue, Object newValue) | final public void | focusNextComponent() | abstract public void | focusNextComponent(Component a0) | final public void | focusPreviousComponent() | abstract public void | focusPreviousComponent(Component a0) | public Window | getActiveWindow() | public Container | getCurrentFocusCycleRoot() | public static KeyboardFocusManager | getCurrentKeyboardFocusManager() | public Set<AWTKeyStroke> | getDefaultFocusTraversalKeys(int id) | public FocusTraversalPolicy | getDefaultFocusTraversalPolicy() | public Component | getFocusOwner() | public Window | getFocusedWindow() | protected Window | getGlobalActiveWindow() | protected Container | getGlobalCurrentFocusCycleRoot() | protected Component | getGlobalFocusOwner() | protected Window | getGlobalFocusedWindow() | protected Component | getGlobalPermanentFocusOwner() | protected List<KeyEventDispatcher> | getKeyEventDispatchers() | protected List<KeyEventPostProcessor> | getKeyEventPostProcessors() | Frame | getOwningFrame(Window w) | public Component | getPermanentFocusOwner() | public PropertyChangeListener[] | getPropertyChangeListeners() | public PropertyChangeListener[] | getPropertyChangeListeners(String propertyName) | public VetoableChangeListener[] | getVetoableChangeListeners(String propertyName) | public VetoableChangeListener[] | getVetoableChangeListeners() | abstract public boolean | postProcessKeyEvent(KeyEvent a0) | boolean | postWindowEvent(Window wnd, Window opposite, boolean focus) all focus related WindowEvents are posted to EventQueue
and internal(non-Java) focus state is immediately updated
(Java focus state is updated only right before actually
dispatching these events to components)
Activation events are also posted from here, so
KeyboardFocusManager(if replaced by user) doesn't have to care about
"synthesizing" them, as opposed to focus spec. | abstract public void | processKeyEvent(Component a0, KeyEvent a1) | final public void | redispatchEvent(Component target, AWTEvent e) | public void | removeKeyEventDispatcher(KeyEventDispatcher dispatcher) | public void | removeKeyEventPostProcessor(KeyEventPostProcessor processor) | public void | removePropertyChangeListener(String propertyName, PropertyChangeListener listener) | public void | removePropertyChangeListener(PropertyChangeListener listener) | public void | removeVetoableChangeListener(VetoableChangeListener listener) | public void | removeVetoableChangeListener(String propertyName, VetoableChangeListener listener) | boolean | requestFocus(Component c, boolean temporary, boolean crossWindow, boolean callCB) | boolean | requestFocus(Component c, Window wnd, boolean temporary, boolean crossWindow, boolean callCB) internal "requestFocus": posts all necessary Focus & focus-related Window
events to eventQueue and updates internal focus state. | boolean | requestFocusInWindow(Window wnd, boolean callCB) | public static void | setCurrentKeyboardFocusManager(KeyboardFocusManager newManager) | public void | setDefaultFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes) | public void | setDefaultFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy) | void | setFocus(Component c, Window wnd, boolean focus, Component opposite, boolean temporary, boolean callCB) | static void | setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes, Set<AWTKeyStroke>[] traversalKeys) | protected void | setGlobalActiveWindow(Window activeWindow) | public void | setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot) | protected void | setGlobalFocusOwner(Component focusOwner) | protected void | setGlobalFocusedWindow(Window focusedWindow) | protected void | setGlobalPermanentFocusOwner(Component permanentFocusOwner) | final public void | upFocusCycle() | abstract public void | upFocusCycle(Component a0) |
BACKWARD_TRAVERSAL_KEYS | final public static int BACKWARD_TRAVERSAL_KEYS(Code) | | |
DOWN_CYCLE_TRAVERSAL_KEYS | final public static int DOWN_CYCLE_TRAVERSAL_KEYS(Code) | | |
FORWARD_TRAVERSAL_KEYS | final public static int FORWARD_TRAVERSAL_KEYS(Code) | | |
UP_CYCLE_TRAVERSAL_KEYS | final public static int UP_CYCLE_TRAVERSAL_KEYS(Code) | | |
compTraversalIDs | final static int[] compTraversalIDs(Code) | | |
contTraversalIDs | final static int[] contTraversalIDs(Code) | | |
KeyboardFocusManager | public KeyboardFocusManager()(Code) | | |
checkTraversalKeyId | static void checkTraversalKeyId(int id, int maxValue)(Code) | | |
checkTraversalKeysID | static void checkTraversalKeysID(Map, ?> keysMap, Integer id)(Code) | | |
clearGlobalFocusOwner | public void clearGlobalFocusOwner()(Code) | | |
dequeueKeyEvents | abstract protected void dequeueKeyEvents(long a0, Component a1)(Code) | | |
discardKeyEvents | abstract protected void discardKeyEvents(Component a0)(Code) | | |
dispatchKeyEvent | abstract public boolean dispatchKeyEvent(KeyEvent a0)(Code) | | |
downFocusCycle | final public void downFocusCycle()(Code) | | |
enqueueKeyEvents | abstract protected void enqueueKeyEvents(long a0, Component a1)(Code) | | |
focusNextComponent | final public void focusNextComponent()(Code) | | |
focusNextComponent | abstract public void focusNextComponent(Component a0)(Code) | | |
focusPreviousComponent | final public void focusPreviousComponent()(Code) | | |
focusPreviousComponent | abstract public void focusPreviousComponent(Component a0)(Code) | | |
postProcessKeyEvent | abstract public boolean postProcessKeyEvent(KeyEvent a0)(Code) | | |
postWindowEvent | boolean postWindowEvent(Window wnd, Window opposite, boolean focus)(Code) | | all focus related WindowEvents are posted to EventQueue
and internal(non-Java) focus state is immediately updated
(Java focus state is updated only right before actually
dispatching these events to components)
Activation events are also posted from here, so
KeyboardFocusManager(if replaced by user) doesn't have to care about
"synthesizing" them, as opposed to focus spec.
- true if focused Window changed |
requestFocus | boolean requestFocus(Component c, boolean temporary, boolean crossWindow, boolean callCB)(Code) | | |
requestFocus | boolean requestFocus(Component c, Window wnd, boolean temporary, boolean crossWindow, boolean callCB)(Code) | | internal "requestFocus": posts all necessary Focus & focus-related Window
events to eventQueue and updates internal focus state. When called from
Component's request focus callCB is set to true, when called directly
from native event dispatching code - to false.
|
requestFocusInWindow | boolean requestFocusInWindow(Window wnd, boolean callCB)(Code) | | set focus to the appropriate child Component of the given Window
as if it is the focused Window
|
setDefaultFocusTraversalKeys | public void setDefaultFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code) | | |
setFocus | void setFocus(Component c, Window wnd, boolean focus, Component opposite, boolean temporary, boolean callCB)(Code) | | all focus related events are posted to EventQueue and internal(non-Java)
focus state is updated to be able to post some events correctly As
opposed to focus spec user-defined KeyboardFocusManager doesn't
have to take care about proper event ordering: events are posted in
proper order
|
setGlobalActiveWindow | protected void setGlobalActiveWindow(Window activeWindow)(Code) | | |
setGlobalCurrentFocusCycleRoot | public void setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)(Code) | | |
setGlobalFocusOwner | protected void setGlobalFocusOwner(Component focusOwner)(Code) | | |
setGlobalFocusedWindow | protected void setGlobalFocusedWindow(Window focusedWindow)(Code) | | |
setGlobalPermanentFocusOwner | protected void setGlobalPermanentFocusOwner(Component permanentFocusOwner)(Code) | | |
upFocusCycle | final public void upFocusCycle()(Code) | | |
|
|