bibliothek.gui.dock.control
Class DefaultMouseFocusObserver

java.lang.Object
  extended by bibliothek.gui.dock.control.focus.AbstractMouseFocusObserver
      extended by bibliothek.gui.dock.control.DefaultMouseFocusObserver
All Implemented Interfaces:
MouseFocusObserver, DockRelocatorListener
Direct Known Subclasses:
SecureMouseFocusObserver

@Todo(compatibility=COMPATIBLE,
      priority=MAJOR,
      target=VERSION_1_1_1,
      description="Some kind of strategy to decide which child Component of a Dockable should be focused")
public class DefaultMouseFocusObserver
extends AbstractMouseFocusObserver

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  java.awt.event.AWTEventListener createListener()
          Creates a listener which will receive mouse-events.
 void kill()
          Stops this FocusController.
 
Methods inherited from class bibliothek.gui.dock.control.focus.AbstractMouseFocusObserver
cancel, check, check, check, check, check, drag, drop, getController, getDockable, handleVeto, init, interact
 
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: AbstractMouseFocusObserver
Stops this FocusController. This controller will remove all its listeners and become ready for the garbage collector.

Specified by:
kill in interface MouseFocusObserver
Overrides:
kill in class AbstractMouseFocusObserver

createListener

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

Returns:
the listener