Ontimize 5.2072EN

com.ontimize.gui
Class FixedFocusManager

java.lang.Object
  extended byjava.awt.KeyboardFocusManager
      extended byjava.awt.DefaultKeyboardFocusManager
          extended byjavax.swing.FocusManager
              extended bycom.ontimize.gui.FixedFocusManager
All Implemented Interfaces:
java.awt.KeyEventDispatcher, java.awt.KeyEventPostProcessor

public class FixedFocusManager
extends javax.swing.FocusManager

Default swing focus manager implementation.


Field Summary
static boolean DEBUG
           
static boolean DEBUG2
           
 
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
FixedFocusManager()
           
 
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)
           
 
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
 

Field Detail

DEBUG

public static boolean DEBUG

DEBUG2

public static boolean DEBUG2
Constructor Detail

FixedFocusManager

public FixedFocusManager()
Method Detail

processKeyEvent

public void processKeyEvent(java.awt.Component focusedComponent,
                            java.awt.event.KeyEvent anEvent)

focusNextComponent

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


focusPreviousComponent

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


getFirstComponent

public java.awt.Component getFirstComponent(java.awt.Container aContainer)
Return the first component that should receive the focus


getLastComponent

public java.awt.Component getLastComponent(java.awt.Container aContainer)
Return the last component that should receive the focus


getComponentBefore

public java.awt.Component getComponentBefore(java.awt.Container aContainer,
                                             java.awt.Component aComponent)
Return the component that should receive the focus before aComponent


getComponentAfter

public java.awt.Component getComponentAfter(java.awt.Container aContainer,
                                            java.awt.Component aComponent)
Return the component the should receive the focus after aComponent


compareTabOrder

public boolean compareTabOrder(java.awt.Component a,
                               java.awt.Component b)
Return true if 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.


Ontimize