bibliothek.gui.dock.security
Class SecureMouseFocusObserver

java.lang.Object
  extended by bibliothek.gui.dock.control.MouseFocusObserver
      extended by bibliothek.gui.dock.security.SecureMouseFocusObserver
All Implemented Interfaces:
DockRelocatorListener

public class SecureMouseFocusObserver
extends MouseFocusObserver

A FocusController which relies on GlassedPanes.

Author:
Benjamin Sigg

Constructor Summary
SecureMouseFocusObserver(DockController controller, ControllerSetupCollection setup)
          Creates a new FocusController for controller.
 
Method Summary
 void addGlassPane(GlassedPane pane)
          Registers a new GlassPane.
 void check(AWTEvent event)
          Lets check this controller whether the focus should change, or not.
 void kill()
          Stops this FocusController.
 void removeGlassPane(GlassedPane pane)
          Unregisters a previously added GlassPane.
 
Methods inherited from class bibliothek.gui.dock.control.MouseFocusObserver
addVetoListener, cancel, check, check, drag, drop, fireVetoDockable, fireVetoTitle, getController, getDockable, handleVeto, init, interact, removeVetoListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureMouseFocusObserver

public SecureMouseFocusObserver(DockController controller,
                                ControllerSetupCollection setup)
Creates a new FocusController for controller.

Parameters:
controller - the owner of this FocusController
setup - an observable informing this object when controller is set up.
Method Detail

check

public void check(AWTEvent event)
Description copied from class: MouseFocusObserver
Lets check this controller whether the focus should change, or not. Clients invoking this method should first check whether event is allowed to change the focus or not. This check can be done through the method MouseFocusObserver.interact(AWTEvent).

Overrides:
check in class MouseFocusObserver
Parameters:
event - The event to react on.
See Also:
MouseFocusObserver.interact(AWTEvent)

addGlassPane

public void addGlassPane(GlassedPane pane)
Registers a new GlassPane.

Parameters:
pane - the new pane

removeGlassPane

public void removeGlassPane(GlassedPane pane)
Unregisters a previously added GlassPane.

Parameters:
pane - the pane to remove

kill

public void kill()
Description copied from class: MouseFocusObserver
Stops this FocusController. This controller will remove all its listeners and become ready for the garbage collector.

Overrides:
kill in class MouseFocusObserver