jpicedt.ui.util
Class DebugFocusManager
java.lang.Object
java.awt.KeyboardFocusManager
java.awt.DefaultKeyboardFocusManager
javax.swing.FocusManager
javax.swing.DefaultFocusManager
jpicedt.ui.util.DebugFocusManager
- All Implemented Interfaces:
- KeyEventDispatcher, KeyEventPostProcessor
public class DebugFocusManager
- extends DefaultFocusManager
A subclass of Swing's DefaultFocusManager that aims at helping us debug FocusEvent related bugs
To set this class as Swing's FocusManager, just say :
FocusManager.setCurrentManager(an_instance_of_DebugFocusManager);
- Since:
- jPicEdt
- Author:
- Sylvain Reynal
Method Summary |
void |
focusNextComponent(Component c)
Cause the focus manager to set the focus on the next focusable component
Overriden so as to display information about the component. |
void |
focusPreviousComponent(Component c)
Cause the focus manager to set the focus on the previous focusable component
Overriden so as to display information about the component. |
void |
processKeyEvent(Component c,
KeyEvent ke)
Called by a JComponent when a key event occus. |
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 |
DebugFocusManager
public DebugFocusManager()
focusNextComponent
public void focusNextComponent(Component c)
- Cause the focus manager to set the focus on the next focusable component
Overriden so as to display information about the component.
author: Sylvain Reynal
- Overrides:
focusNextComponent
in class DefaultKeyboardFocusManager
- Since:
- jPicEdt
focusPreviousComponent
public void focusPreviousComponent(Component c)
- Cause the focus manager to set the focus on the previous focusable component
Overriden so as to display information about the component.
author: Sylvain Reynal
- Overrides:
focusPreviousComponent
in class DefaultKeyboardFocusManager
- Since:
- jPicEdt
processKeyEvent
public void processKeyEvent(Component c,
KeyEvent ke)
- Called by a JComponent when a key event occus.
Overriden so as to display information about the component.
author: Sylvain Reynal
- Overrides:
processKeyEvent
in class DefaultKeyboardFocusManager
- Parameters:
c
- the focused componentke
- the key event- Since:
- jPicEdt
Submit a bug : syd@jpicedt.org