Copyright 2012-02-25 Werner Randelshofer

ch.randelshofer.pdf.plaf
Class PDFKeyboardFocusManager

java.lang.Object
  extended by java.awt.KeyboardFocusManager
      extended by java.awt.DefaultKeyboardFocusManager
          extended by ch.randelshofer.pdf.plaf.PDFKeyboardFocusManager
All Implemented Interfaces:
java.awt.KeyEventDispatcher, java.awt.KeyEventPostProcessor

public class PDFKeyboardFocusManager
extends java.awt.DefaultKeyboardFocusManager

PDFKeyboardFocusManager.

Version:
1.1 2007-08-13 Added setter for lastTraversingComponent.
1.0 8. August 2007 Created.
Author:
Werner Randelshofer

Field Summary
 
Fields inherited from class java.awt.KeyboardFocusManager
BACKWARD_TRAVERSAL_KEYS, DOWN_CYCLE_TRAVERSAL_KEYS, FORWARD_TRAVERSAL_KEYS, UP_CYCLE_TRAVERSAL_KEYS
 
Constructor Summary
PDFKeyboardFocusManager()
          Creates a new instance.
 
Method Summary
 void focusNextComponent(java.awt.Component aComponent)
          Focuses the Component after aComponent, typically based on a FocusTraversalPolicy.
 void focusPreviousComponent(java.awt.Component aComponent)
          Focuses the Component before aComponent, typically based on a FocusTraversalPolicy.
 java.awt.Component getLastKeyboardTraversingComponent()
          Returns the most recent component, for which focusPreviousComponent or focusNextComponent was invoked.
protected  void initDefaults()
          Initializes the keyboard focus manager with default values.
 void setLastKeyboardTraversingComponent(java.awt.Component newValue)
          Sets the most recent component, for which focusPreviousComponent or focusNextComponent was invoked.
 
Methods inherited from class java.awt.DefaultKeyboardFocusManager
dequeueKeyEvents, discardKeyEvents, dispatchEvent, dispatchKeyEvent, downFocusCycle, enqueueKeyEvents, postProcessKeyEvent, processKeyEvent, 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

PDFKeyboardFocusManager

public PDFKeyboardFocusManager()
Creates a new instance.

Method Detail

initDefaults

protected void initDefaults()
Initializes the keyboard focus manager with default values.


focusPreviousComponent

public void focusPreviousComponent(java.awt.Component aComponent)
Focuses the Component before aComponent, typically based on a FocusTraversalPolicy.

Overrides:
focusPreviousComponent in class java.awt.DefaultKeyboardFocusManager
Parameters:
aComponent - the Component that is the basis for the focus traversal operation
See Also:
FocusTraversalPolicy, Component.transferFocusBackward()

focusNextComponent

public void focusNextComponent(java.awt.Component aComponent)
Focuses the Component after aComponent, typically based on a FocusTraversalPolicy.

Overrides:
focusNextComponent in class java.awt.DefaultKeyboardFocusManager
Parameters:
aComponent - the Component that is the basis for the focus traversal operation
See Also:
FocusTraversalPolicy, Component.transferFocus()

getLastKeyboardTraversingComponent

public java.awt.Component getLastKeyboardTraversingComponent()
Returns the most recent component, for which focusPreviousComponent or focusNextComponent was invoked.


setLastKeyboardTraversingComponent

public void setLastKeyboardTraversingComponent(java.awt.Component newValue)
Sets the most recent component, for which focusPreviousComponent or focusNextComponent was invoked.


Copyright 2012-02-25 Werner Randelshofer