|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.FocusManager
Swing Focus Manager
Field Summary | |
static String |
FOCUS_MANAGER_CLASS_PROPERTY
This property name is used to get the FocusManager implementation that should be used for a given UI |
Constructor Summary | |
FocusManager()
|
Method Summary | |
static void |
disableSwingFocusManager()
Disable Swing's focus manager for the calling thread's thread group. |
abstract void |
focusNextComponent(Component aComponent)
Cause the focus manager to set the focus on the next focusable component You can call this method to cause the focus manager to focus the next component |
abstract void |
focusPreviousComponent(Component aComponent)
Cause the focus manager to set the focus on the previous focusable component You can call this methid to cause the focus manager to focus the previous component |
static FocusManager |
getCurrentManager()
Return the FocusManager for the calling thread There is one FocusManager per thread group |
static boolean |
isFocusManagerEnabled()
Return whether Swing's focus manager is enabled |
abstract void |
processKeyEvent(Component focusedComponent,
KeyEvent anEvent)
This method is called by JComponents when a key event occurs. |
static void |
setCurrentManager(FocusManager aFocusManager)
Set the FocusManager that should be used for the calling thread. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final String FOCUS_MANAGER_CLASS_PROPERTY
Constructor Detail |
public FocusManager()
Method Detail |
public static FocusManager getCurrentManager()
public static void setCurrentManager(FocusManager aFocusManager)
public static void disableSwingFocusManager()
public static boolean isFocusManagerEnabled()
public abstract void processKeyEvent(Component focusedComponent, KeyEvent anEvent)
anEvent
has been processed.
focusedComponent
is the component that currently has
the focus.
Note: FocusManager will receive both KEY_PRESSED and KEY_RELEASED
key events. If one event is consumed, the other one should be consumed
too.public abstract void focusNextComponent(Component aComponent)
public abstract void focusPreviousComponent(Component aComponent)
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |