public class IstiFocusManager
extends javax.swing.DefaultFocusManager
| Constructor and Description |
|---|
IstiFocusManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
compareTabOrder, getComponentAfter, getComponentBefore, getFirstComponent, getLastComponentdisableSwingFocusManager, getCurrentManager, isFocusManagerEnabled, setCurrentManagerdequeueKeyEvents, discardKeyEvents, dispatchEvent, dispatchKeyEvent, downFocusCycle, enqueueKeyEvents, focusNextComponent, focusPreviousComponent, postProcessKeyEvent, upFocusCycleaddKeyEventDispatcher, 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, upFocusCyclepublic 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.processKeyEvent in class java.awt.DefaultKeyboardFocusManagerfocusedComponent - focused componentanEvent - key event.