Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.ui.util
Class DebugFocusManager  view DebugFocusManager download DebugFocusManager.java

java.lang.Object
  extended byjava.awt.KeyboardFocusManager
      extended byjava.awt.DefaultKeyboardFocusManager
          extended byjavax.swing.FocusManager
              extended byjavax.swing.DefaultFocusManager
                  extended byjpicedt.ui.util.DebugFocusManager
All Implemented Interfaces:
java.awt.KeyEventDispatcher, java.awt.KeyEventPostProcessor

public class DebugFocusManager
extends javax.swing.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 1.3.2

Nested Class Summary
 
Nested classes inherited from class javax.swing.FocusManager
 
Nested classes inherited from class java.awt.DefaultKeyboardFocusManager
 
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.DefaultKeyboardFocusManager
 
Fields inherited from class java.awt.KeyboardFocusManager
BACKWARD_TRAVERSAL_KEYS, DOWN_CYCLE_TRAVERSAL_KEYS, FORWARD_TRAVERSAL_KEYS, UP_CYCLE_TRAVERSAL_KEYS
 
Constructor Summary
DebugFocusManager()
           
 
Method Summary
 void focusNextComponent(java.awt.Component c)
          Cause the focus manager to set the focus on the next focusable component
 void focusPreviousComponent(java.awt.Component c)
          Cause the focus manager to set the focus on the previous focusable component
 void processKeyEvent(java.awt.Component c, java.awt.event.KeyEvent ke)
          Called by a JComponent when a key event occus.
 
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, 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

DebugFocusManager

public DebugFocusManager()
Method Detail

focusNextComponent

public void focusNextComponent(java.awt.Component c)
Cause the focus manager to set the focus on the next focusable component

Overriden so as to display information about the component.

Since:
jPicEdt 1.3.2

focusPreviousComponent

public void focusPreviousComponent(java.awt.Component c)
Cause the focus manager to set the focus on the previous focusable component

Overriden so as to display information about the component.

Since:
jPicEdt 1.3.2

processKeyEvent

public void processKeyEvent(java.awt.Component c,
                            java.awt.event.KeyEvent ke)
Called by a JComponent when a key event occus.

Overriden so as to display information about the component.

Since:
jPicEdt 1.3.2