Synergy Home Page

au.edu.swin.synergy.plugin.mod13.bwt
Class BFocusManager

java.lang.Object
  |
  +--javax.swing.FocusManager
        |
        +--javax.swing.DefaultFocusManager
              |
              +--au.edu.swin.synergy.plugin.mod13.bwt.BFocusManager

public class BFocusManager
extends DefaultFocusManager
implements KeyListener

The focus manager is going to handle the cycling through of windows using control tab (and shift) as well as the default use of cycling through components with normal tab.

Author:
Tristan Austin

Fields inherited from class javax.swing.FocusManager
FOCUS_MANAGER_CLASS_PROPERTY
 
Constructor Summary
BFocusManager(BTabListener tabListener)
          Creates a new focus manager that is going to handle cycling through windows on the given desktop pane.
 
Method Summary
 void keyPressed(KeyEvent keyEvent)
          Redirects the key to the process key method
 void keyReleased(KeyEvent keyEvent)
          Redirects the key to the process key method
 void keyTyped(KeyEvent keyEvent)
          Redirects the key to the process key method
 void processKeyEvent(Component component, KeyEvent keyEvent)
          This is the method that is called when the user presses any key on the swing interface.
 
Methods inherited from class javax.swing.DefaultFocusManager
compareTabOrder, focusNextComponent, focusPreviousComponent, getComponentAfter, getComponentBefore, getFirstComponent, getLastComponent
 
Methods inherited from class javax.swing.FocusManager
disableSwingFocusManager, getCurrentManager, isFocusManagerEnabled, setCurrentManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BFocusManager

public BFocusManager(BTabListener tabListener)
Creates a new focus manager that is going to handle cycling through windows on the given desktop pane.
Parameters:
desktopPane - The desktop pane to cycle the internal windows of
Method Detail

processKeyEvent

public void processKeyEvent(Component component,
                            KeyEvent keyEvent)
This is the method that is called when the user presses any key on the swing interface. We can filter out the control tab keys and redirect them to the window agent.
Overrides:
processKeyEvent in class DefaultFocusManager

keyPressed

public void keyPressed(KeyEvent keyEvent)
Redirects the key to the process key method
Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent keyEvent)
Redirects the key to the process key method
Specified by:
keyReleased in interface KeyListener

keyTyped

public void keyTyped(KeyEvent keyEvent)
Redirects the key to the process key method
Specified by:
keyTyped in interface KeyListener

Synergy Home Page