Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.FocusManager | +--com.sun.java.swing.DefaultFocusManager
Fields inherited from class com.sun.java.swing.FocusManager | |
FOCUS_MANAGER_CLASS_PROPERTY |
Method Summary | |
boolean | compareTabOrder(java.awt.Component a,
java.awt.Component b)
Return true if a should be before b in the
"tab" order. |
void | focusNextComponent(java.awt.Component aComponent)
Cause the focus manager to set the focus on the next focusable component |
void | focusPreviousComponent(java.awt.Component aComponent)
Cause the focus manager to set the focus on the previous focusable component |
java.awt.Component | getComponentAfter(java.awt.Container aContainer,
java.awt.Component aComponent)
Return the component the should receive the focus after aComponent |
java.awt.Component | getComponentBefore(java.awt.Container aContainer,
java.awt.Component aComponent)
Return the component that should receive the focus before aComponent |
java.awt.Component | getFirstComponent(java.awt.Container aContainer)
Return the first component that should receive the focus |
java.awt.Component | getLastComponent(java.awt.Container aContainer)
Return the last component that should receive the focus |
void | processKeyEvent(java.awt.Component focusedComponent,
java.awt.event.KeyEvent anEvent)
This method is called by JComponents when a key event occurs. |
Methods inherited from class com.sun.java.swing.FocusManager | |
disableSwingFocusManager, focusNextComponent, focusPreviousComponent, getCurrentManager, isFocusManagerEnabled, processKeyEvent, setCurrentManager |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Method Detail |
public void processKeyEvent(java.awt.Component focusedComponent, java.awt.event.KeyEvent anEvent)
anEvent
has been processed.
focusedComponent
is the component that currently has
the focus.
Note: FocusManager will receive KEY_PRESSED, KEY_RELEASED and KEY_TYPED
key events. If one event is consumed, all other events type should be consumed.public void focusNextComponent(java.awt.Component aComponent)
public void focusPreviousComponent(java.awt.Component aComponent)
public java.awt.Component getFirstComponent(java.awt.Container aContainer)
public java.awt.Component getLastComponent(java.awt.Container aContainer)
public java.awt.Component getComponentBefore(java.awt.Container aContainer, java.awt.Component aComponent)
public java.awt.Component getComponentAfter(java.awt.Container aContainer, java.awt.Component aComponent)
public boolean compareTabOrder(java.awt.Component a, java.awt.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.Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |