bibliothek.gui.dock.event
Class DockableFocusEvent

java.lang.Object
  extended by bibliothek.gui.dock.event.DockableFocusEvent

public class DockableFocusEvent
extends java.lang.Object

An event describing the focus transfer from one Dockable to another.

Author:
Benjamin Sigg

Constructor Summary
DockableFocusEvent(DockController controller, Dockable oldFocus, Dockable newFocus)
          Creates a new event.
 
Method Summary
 DockController getController()
          Gets the controller on which the focus change occurred.
 Dockable getNewFocusOwner()
          Gets the Dockable which has the focus after the change.
 Dockable getOldFocusOwner()
          Gets the Dockable which had the focus before the change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockableFocusEvent

public DockableFocusEvent(DockController controller,
                          Dockable oldFocus,
                          Dockable newFocus)
Creates a new event.

Parameters:
controller - the controller on which the change occurred
oldFocus - the Dockable that was focused earlier, can be null
newFocus - the Dockable that is focused now, can be null
Method Detail

getController

public DockController getController()
Gets the controller on which the focus change occurred.

Returns:
the source

getOldFocusOwner

public Dockable getOldFocusOwner()
Gets the Dockable which had the focus before the change.

Returns:
the old focus owner, can be null

getNewFocusOwner

public Dockable getNewFocusOwner()
Gets the Dockable which has the focus after the change.

Returns:
the new focus owner, can be null