- java.lang.Object
-
- java.awt.KeyboardFocusManager
-
- java.awt.DefaultKeyboardFocusManager
-
- javax.swing.FocusManager
-
- javax.swing.DefaultFocusManager
-
- 实现的所有接口
-
KeyEventDispatcher
,KeyEventPostProcessor
public class DefaultFocusManagerextends FocusManager
这个类已经被1.4焦点API淘汰了。 虽然客户端代码仍然可以使用此类,但强烈建议开发人员使用java.awt.KeyboardFocusManager
和java.awt.DefaultKeyboardFocusManager
。请参阅How to Use the Focus Subsystem ,在Java教程一节,并Focus Specification获取更多信息。
- 从以下版本开始:
- 1.2
-
-
字段汇总
-
声明的属性在类 javax.swing.FocusManager
FOCUS_MANAGER_CLASS_PROPERTY
-
-
构造方法摘要
构造方法 构造器 描述 DefaultFocusManager()
构造一个DefaultFocusManager
。
-
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 boolean
compareTabOrder(Component a, Component b)
按组件遍历循环顺序比较组件。Component
getComponentAfter(Container aContainer, Component aComponent)
返回之后的组件。Component
getComponentBefore(Container aContainer, Component aComponent)
之前返回组件。Component
getFirstComponent(Container aContainer)
返回第一个组件。Component
getLastComponent(Container aContainer)
返回最后一个组件。-
声明方法的类 javax.swing.FocusManager
disableSwingFocusManager, getCurrentManager, isFocusManagerEnabled, setCurrentManager
-
声明方法的类 java.awt.DefaultKeyboardFocusManager
dequeueKeyEvents, discardKeyEvents, dispatchEvent, dispatchKeyEvent, downFocusCycle, enqueueKeyEvents, focusNextComponent, focusPreviousComponent, postProcessKeyEvent, processKeyEvent, upFocusCycle
-
声明方法的类 java.awt.KeyboardFocusManager
addKeyEventDispatcher, addKeyEventPostProcessor, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clearFocusOwner, 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
-
-
-
-
方法详细信息
-
getComponentAfter
public Component getComponentAfter(Container aContainer, Component aComponent)
返回之后的组件。- 参数
-
aContainer
- 一个容器 -
aComponent
- 一个组件 - 结果
- 之后的组件
-
getComponentBefore
public Component getComponentBefore(Container aContainer, Component aComponent)
之前返回组件。- 参数
-
aContainer
- 一个容器 -
aComponent
- 一个组件 - 结果
- 之前的组件
-
getFirstComponent
public Component getFirstComponent(Container aContainer)
返回第一个组件。- 参数
-
aContainer
- 一个容器 - 结果
- 第一个组成部分
-
getLastComponent
public Component getLastComponent(Container aContainer)
返回最后一个组件。- 参数
-
aContainer
- 一个容器 - 结果
- 最后一个组成部分
-
-