| |
|
| java.lang.Object java.awt.KeyboardFocusManager java.awt.DefaultKeyboardFocusManager javax.swing.FocusManager
All known Subclasses: javax.swing.DefaultFocusManager,
FocusManager | abstract public class FocusManager extends DefaultKeyboardFocusManager (Code) | | This class has been obsoleted by the 1.4 focus APIs. While client code may
still use this class, developers are strongly encouraged to use
java.awt.KeyboardFocusManager and
java.awt.DefaultKeyboardFocusManager instead.
Please see
How to Use the Focus Subsystem,
a section in The Java Tutorial, and the
Focus Specification
for more information.
See Also: Focus Specification version: 1.35, 05/05/07 author: Arnaud Weber author: David Mendenhall |
Field Summary | |
final public static String | FOCUS_MANAGER_CLASS_PROPERTY This field is obsolete, and its use is discouraged since its
specification is incompatible with the 1.4 focus APIs. |
Method Summary | |
public static void | disableSwingFocusManager() Changes the current KeyboardFocusManager 's default
FocusTraversalPolicy to
DefaultFocusTraversalPolicy . | public static FocusManager | getCurrentManager() Returns the current KeyboardFocusManager instance
for the calling thread's context. | public static boolean | isFocusManagerEnabled() Returns whether the application has invoked
disableSwingFocusManager() . | public static void | setCurrentManager(FocusManager aFocusManager) Sets the current KeyboardFocusManager instance
for the calling thread's context. |
FOCUS_MANAGER_CLASS_PROPERTY | final public static String FOCUS_MANAGER_CLASS_PROPERTY(Code) | | This field is obsolete, and its use is discouraged since its
specification is incompatible with the 1.4 focus APIs.
The current FocusManager is no longer a property of the UI.
Client code must query for the current FocusManager using
KeyboardFocusManager.getCurrentKeyboardFocusManager() .
See the Focus Specification for more information.
See Also: java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager See Also: Focus Specification |
setCurrentManager | public static void setCurrentManager(FocusManager aFocusManager) throws SecurityException(Code) | | Sets the current KeyboardFocusManager instance
for the calling thread's context. If null is
specified, then the current KeyboardFocusManager
is replaced with a new instance of
DefaultKeyboardFocusManager .
If a SecurityManager is installed,
the calling thread must be granted the AWTPermission
"replaceKeyboardFocusManager" in order to replace the
the current KeyboardFocusManager .
If this permission is not granted,
this method will throw a SecurityException ,
and the current KeyboardFocusManager will be unchanged.
Parameters: aFocusManager - the new KeyboardFocusManager for this thread's context See Also: FocusManager.getCurrentManager See Also: java.awt.DefaultKeyboardFocusManager throws: SecurityException - if the calling thread does not have permissionto replace the current KeyboardFocusManager |
Methods inherited from java.awt.KeyboardFocusManager | public void addKeyEventDispatcher(KeyEventDispatcher dispatcher)(Code)(Java Doc) public void addKeyEventPostProcessor(KeyEventPostProcessor processor)(Code)(Java Doc) public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) public void addVetoableChangeListener(String propertyName, VetoableChangeListener listener)(Code)(Java Doc) public void clearGlobalFocusOwner()(Code)(Java Doc) abstract protected void dequeueKeyEvents(long after, Component untilFocused)(Code)(Java Doc) abstract protected void discardKeyEvents(Component comp)(Code)(Java Doc) abstract public boolean dispatchEvent(AWTEvent e)(Code)(Java Doc) abstract public boolean dispatchKeyEvent(KeyEvent e)(Code)(Java Doc) abstract public void downFocusCycle(Container aContainer)(Code)(Java Doc) final public void downFocusCycle()(Code)(Java Doc) abstract protected void enqueueKeyEvents(long after, Component untilFocused)(Code)(Java Doc) protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException(Code)(Java Doc) abstract public void focusNextComponent(Component aComponent)(Code)(Java Doc) final public void focusNextComponent()(Code)(Java Doc) abstract public void focusPreviousComponent(Component aComponent)(Code)(Java Doc) final public void focusPreviousComponent()(Code)(Java Doc) public Window getActiveWindow()(Code)(Java Doc) public Container getCurrentFocusCycleRoot()(Code)(Java Doc) public static KeyboardFocusManager getCurrentKeyboardFocusManager()(Code)(Java Doc) public Set<AWTKeyStroke> getDefaultFocusTraversalKeys(int id)(Code)(Java Doc) public synchronized FocusTraversalPolicy getDefaultFocusTraversalPolicy()(Code)(Java Doc) public Component getFocusOwner()(Code)(Java Doc) public Window getFocusedWindow()(Code)(Java Doc) protected Window getGlobalActiveWindow() throws SecurityException(Code)(Java Doc) protected Container getGlobalCurrentFocusCycleRoot() throws SecurityException(Code)(Java Doc) protected Component getGlobalFocusOwner() throws SecurityException(Code)(Java Doc) protected Window getGlobalFocusedWindow() throws SecurityException(Code)(Java Doc) protected Component getGlobalPermanentFocusOwner() throws SecurityException(Code)(Java Doc) protected synchronized java.util.List<KeyEventDispatcher> getKeyEventDispatchers()(Code)(Java Doc) protected java.util.List<KeyEventPostProcessor> getKeyEventPostProcessors()(Code)(Java Doc) public Component getPermanentFocusOwner()(Code)(Java Doc) public synchronized PropertyChangeListener[] getPropertyChangeListeners()(Code)(Java Doc) public synchronized PropertyChangeListener[] getPropertyChangeListeners(String propertyName)(Code)(Java Doc) public synchronized VetoableChangeListener[] getVetoableChangeListeners()(Code)(Java Doc) public synchronized VetoableChangeListener[] getVetoableChangeListeners(String propertyName)(Code)(Java Doc) abstract public boolean postProcessKeyEvent(KeyEvent e)(Code)(Java Doc) abstract public void processKeyEvent(Component focusedComponent, KeyEvent e)(Code)(Java Doc) final public void redispatchEvent(Component target, AWTEvent e)(Code)(Java Doc) public void removeKeyEventDispatcher(KeyEventDispatcher dispatcher)(Code)(Java Doc) public void removeKeyEventPostProcessor(KeyEventPostProcessor processor)(Code)(Java Doc) public void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public void removeVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) public void removeVetoableChangeListener(String propertyName, VetoableChangeListener listener)(Code)(Java Doc) public static void setCurrentKeyboardFocusManager(KeyboardFocusManager newManager) throws SecurityException(Code)(Java Doc) public void setDefaultFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)(Code)(Java Doc) public void setDefaultFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy)(Code)(Java Doc) protected void setGlobalActiveWindow(Window activeWindow)(Code)(Java Doc) public void setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)(Code)(Java Doc) protected void setGlobalFocusOwner(Component focusOwner)(Code)(Java Doc) protected void setGlobalFocusedWindow(Window focusedWindow)(Code)(Java Doc) protected void setGlobalPermanentFocusOwner(Component permanentFocusOwner)(Code)(Java Doc) abstract public void upFocusCycle(Component aComponent)(Code)(Java Doc) final public void upFocusCycle()(Code)(Java Doc)
|
|
|
|