| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.KeyboardFocusManager
java.awt.DefaultKeyboardFocusManager
javax.swing.FocusManager
javax.swing.DefaultFocusManager
com.isti.util.gui.IstiFocusManager
Class IstiFocusManager implements the ISTI swing focus manager. This class extends the DefaultFocusManager so that it adds support for adding traversal key codes/chars and adds support for listening to focus traversal changes.
| Field Summary | 
| Fields inherited from class javax.swing.DefaultFocusManager | 
|  | 
| Fields inherited from class javax.swing.FocusManager | 
| FOCUS_MANAGER_CLASS_PROPERTY | 
| Fields inherited from class java.awt.KeyboardFocusManager | 
| BACKWARD_TRAVERSAL_KEYS, DOWN_CYCLE_TRAVERSAL_KEYS, FORWARD_TRAVERSAL_KEYS, UP_CYCLE_TRAVERSAL_KEYS | 
| Constructor Summary | |
| IstiFocusManager() | |
| Method Summary | |
|  void | addTabKeyChar(char keyChar)Adds the tab key code to the set. | 
|  void | addTabKeyCode(int keyCode)Adds the tab key code to the set. | 
|  void | addTabKeyXEnabledCompArray(java.awt.Component[] compArr)Adds an array of components to the list of components for which tab keycodes are translated. | 
|  void | addTabKeyXEnabledComponent(java.awt.Component compObj)Adds a component to the list of components for which tab keycodes are translated. | 
|  java.awt.event.FocusListener | getTraversalFocusListener()Returns the traversal focus listener. | 
|  void | processKeyEvent(java.awt.Component focusedComponent,
                java.awt.event.KeyEvent anEvent)This method is called by JComponents when a key event occurs. | 
|  void | setTraversalFocusListener(java.awt.event.FocusListener fl)Sets the traversal focus listener. | 
| Methods inherited from class javax.swing.DefaultFocusManager | 
| compareTabOrder, getComponentAfter, getComponentBefore, getFirstComponent, getLastComponent | 
| Methods inherited from class javax.swing.FocusManager | 
| disableSwingFocusManager, getCurrentManager, isFocusManagerEnabled, setCurrentManager | 
| Methods inherited from class java.awt.DefaultKeyboardFocusManager | 
| dequeueKeyEvents, discardKeyEvents, dispatchEvent, dispatchKeyEvent, downFocusCycle, enqueueKeyEvents, focusNextComponent, focusPreviousComponent, postProcessKeyEvent, upFocusCycle | 
| Methods inherited from class 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 | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public IstiFocusManager()
| Method Detail | 
public java.awt.event.FocusListener getTraversalFocusListener()
public void setTraversalFocusListener(java.awt.event.FocusListener fl)
fl - focus listener or null for none.public void addTabKeyChar(char keyChar)
keyChar - key character.public void addTabKeyCode(int keyCode)
keyCode - key code.public void addTabKeyXEnabledComponent(java.awt.Component compObj)
compObj - the component to be entered.public void addTabKeyXEnabledCompArray(java.awt.Component[] compArr)
compArr - the array of components to be entered.
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 both KEY_PRESSED and KEY_RELEASED
 key events. If one event is consumed, the other one should be consumed
 too.
focusedComponent - focused componentanEvent - key event.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||