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
Constructor Summary |
BFocusManager(BTabListener tabListener)
Creates a new focus manager that is going to handle cycling through windows
on the given desktop pane. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
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