|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.FocusManager | +--javax.swing.DefaultFocusManager
Default swing focus manager implementation.
Fields inherited from class javax.swing.FocusManager |
FOCUS_MANAGER_CLASS_PROPERTY |
Constructor Summary | |
DefaultFocusManager()
|
Method Summary | |
boolean |
compareTabOrder(Component a,
Component b)
Return true if a should be before b in the
"tab" order. |
void |
focusNextComponent(Component aComponent)
Cause the focus manager to set the focus on the next focusable component |
void |
focusPreviousComponent(Component aComponent)
Cause the focus manager to set the focus on the previous focusable component |
Component |
getComponentAfter(Container aContainer,
Component aComponent)
Return the component the should receive the focus after aComponent |
Component |
getComponentBefore(Container aContainer,
Component aComponent)
Return the component that should receive the focus before aComponent |
Component |
getFirstComponent(Container aContainer)
Return the first component that should receive the focus |
Component |
getLastComponent(Container aContainer)
Return the last component that should receive the focus |
void |
processKeyEvent(Component focusedComponent,
KeyEvent anEvent)
This method is called by JComponents when a key event occurs. |
Methods inherited from class javax.swing.FocusManager |
disableSwingFocusManager, getCurrentManager, isFocusManagerEnabled, setCurrentManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultFocusManager()
Method Detail |
public void processKeyEvent(Component focusedComponent, KeyEvent anEvent)
FocusManager
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.processKeyEvent
in class FocusManager
public void focusNextComponent(Component aComponent)
focusNextComponent
in class FocusManager
public void focusPreviousComponent(Component aComponent)
focusPreviousComponent
in class FocusManager
public Component getFirstComponent(Container aContainer)
public Component getLastComponent(Container aContainer)
public Component getComponentBefore(Container aContainer, Component aComponent)
public Component getComponentAfter(Container aContainer, Component aComponent)
public boolean compareTabOrder(Component a, Component b)
a
should be before b
in the
"tab" order. Override this method if you want to change the automatic
"tab" order.
The default implementation will order tab to give a left to right, top
down order. Override this method if another order is required.
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.