©
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object java.awt.KeyboardFocusManager java.awt.DefaultKeyboardFocusManager javax.swing.FocusManager
public abstract class FocusManager
从 1.4 focus API 开始,此类已被废弃。虽然客户机代码可能仍然使用此类,但强烈建议开发人员使用 java.awt.KeyboardFocusManager
和 java.awt.DefaultKeyboardFocusManager
替代。
有关更多信息,请参阅 The Java Tutorial 中的 How to Use the Focus Subsystem 一节和 Focus Specification。
字段摘要 | |
---|---|
static String |
FOCUS_MANAGER_CLASS_PROPERTY
该字段已被废弃,不鼓励使用它,因为它的规范与 1.4 focus API 不兼容。 |
从类 java.awt.KeyboardFocusManager 继承的字段 |
---|
BACKWARD_TRAVERSAL_KEYS, DOWN_CYCLE_TRAVERSAL_KEYS, FORWARD_TRAVERSAL_KEYS, UP_CYCLE_TRAVERSAL_KEYS |
构造方法摘要 | |
---|---|
FocusManager()
|
方法摘要 | |
---|---|
static void |
disableSwingFocusManager()
已过时。 从 1.4 开始,由 KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy) 取代
|
static FocusManager |
getCurrentManager()
返回调用线程上下文的当前 KeyboardFocusManager 实例。 |
static boolean |
isFocusManagerEnabled()
已过时。 从 1.4 开始,由 KeyboardFocusManager.getDefaultFocusTraversalPolicy() 取代
|
static void |
setCurrentManager(FocusManager aFocusManager)
设置调用线程上下文的当前 KeyboardFocusManager 实例。 |
从类 java.awt.DefaultKeyboardFocusManager 继承的方法 |
---|
dequeueKeyEvents, discardKeyEvents, dispatchEvent, dispatchKeyEvent, downFocusCycle, enqueueKeyEvents, focusNextComponent, focusPreviousComponent, postProcessKeyEvent, processKeyEvent, upFocusCycle |
从类 java.awt.KeyboardFocusManager 继承的方法 |
---|
addKeyEventDispatcher, addKeyEventPostProcessor, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clearGlobalFocusOwner, downFocusCycle, firePropertyChange, fireVetoableChange, focusNextComponent, focusPreviousComponent, getActiveWindow, getCurrentFocusCycleRoot, getCurrentKeyboardFocusManager, getDefaultFocusTraversalKeys, getDefaultFocusTraversalPolicy, getFocusedWindow, getFocusOwner, getGlobalActiveWindow, getGlobalCurrentFocusCycleRoot, getGlobalFocusedWindow, getGlobalFocusOwner, getGlobalPermanentFocusOwner, getKeyEventDispatchers, getKeyEventPostProcessors, getPermanentFocusOwner, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, redispatchEvent, removeKeyEventDispatcher, removeKeyEventPostProcessor, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setCurrentKeyboardFocusManager, setDefaultFocusTraversalKeys, setDefaultFocusTraversalPolicy, setGlobalActiveWindow, setGlobalCurrentFocusCycleRoot, setGlobalFocusedWindow, setGlobalFocusOwner, setGlobalPermanentFocusOwner, upFocusCycle |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static final String FOCUS_MANAGER_CLASS_PROPERTY
KeyboardFocusManager.getCurrentKeyboardFocusManager()
来查询当前的 FocusManager。有关更多信息,请参阅 Focus Specification。
KeyboardFocusManager.getCurrentKeyboardFocusManager()
,
Focus Specification,
常量字段值构造方法详细信息 |
---|
public FocusManager()
方法详细信息 |
---|
public static FocusManager getCurrentManager()
KeyboardFocusManager
实例。
KeyboardFocusManager
setCurrentManager(javax.swing.FocusManager)
public static void setCurrentManager(FocusManager aFocusManager) throws SecurityException
KeyboardFocusManager
实例。如果指定了 null
,则使用 DefaultKeyboardFocusManager
的新实例替换当前的 KeyboardFocusManager
。
如果安装了 SecurityManager
,则必须授予调用线程 AWTPermission
"replaceKeyboardFocusManager" 权限才能替换当前的 KeyboardFocusManager
。如果未授予该权限,则此方法将抛出 SecurityException
,而当前的 KeyboardFocusManager
不会改变。
aFocusManager
- 此线程上下文的新 KeyboardFocusManager
SecurityException
- 如果调用线程没有替换当前 KeyboardFocusManager
的权限getCurrentManager()
,
DefaultKeyboardFocusManager
@Deprecated public static void disableSwingFocusManager()
KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy)
取代
KeyboardFocusManager
的默认 FocusTraversalPolicy
更改为 DefaultFocusTraversalPolicy
。
DefaultFocusTraversalPolicy
,
KeyboardFocusManager.setDefaultFocusTraversalPolicy(java.awt.FocusTraversalPolicy)
@Deprecated public static boolean isFocusManagerEnabled()
KeyboardFocusManager.getDefaultFocusTraversalPolicy()
取代
disableSwingFocusManager()
。
disableSwingFocusManager()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。