bibliothek.gui.dock.control
Class DefaultMouseFocusObserver

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

public class DefaultMouseFocusObserver
extends MouseFocusObserver

A focus controller which adds an AWTEventListener to the Toolkit to receive events which may change the focus.

Author:
Benjamin Sigg

Constructor Summary
DefaultMouseFocusObserver(DockController controller, ControllerSetupCollection setup)
          Creates a new focus controller
 
Method Summary
protected  AWTEventListener createListener()
          Creates a listener which will receive mouse-events.
 void kill()
          Stops this FocusController.
 
Methods inherited from class bibliothek.gui.dock.control.MouseFocusObserver
addVetoListener, cancel, check, 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

DefaultMouseFocusObserver

public DefaultMouseFocusObserver(DockController controller,
                                 ControllerSetupCollection setup)
Creates a new focus controller

Parameters:
controller - the owner of this controller
setup - an observer that informs this object when controller is set up.
Method Detail

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

createListener

protected AWTEventListener createListener()
Creates a listener which will receive mouse-events.

Returns:
the listener