bibliothek.gui.dock.event
Class DockableSelectionEvent

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

public class DockableSelectionEvent
extends Object

An event that tells which Dockable was selected on wich DockStation

Author:
Benjamin Sigg

Constructor Summary
DockableSelectionEvent(DockController controller, DockStation station, Dockable oldSelected, Dockable newSelected)
          Creates a new event.
 
Method Summary
 DockController getController()
          Gets the controller in whose realm the selection change occurred.
 Dockable getNewSelected()
          Gets the element that is selected after the change.
 Dockable getOldSelected()
          Gets the element that was selected before the change.
 DockStation getStation()
          Gets the station whose selected Dockable changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockableSelectionEvent

public DockableSelectionEvent(DockController controller,
                              DockStation station,
                              Dockable oldSelected,
                              Dockable newSelected)
Creates a new event.

Parameters:
controller - the controller in whose realm the change occurred
station - the station on which the change occurred
oldSelected - the Dockable that was selected before the change
newSelected - the Dockable that is selected after the change
Method Detail

getController

public DockController getController()
Gets the controller in whose realm the selection change occurred.

Returns:
the controller

getStation

public DockStation getStation()
Gets the station whose selected Dockable changed.

Returns:
the parent of the old and new selected Dockable

getOldSelected

public Dockable getOldSelected()
Gets the element that was selected before the change.

Returns:
the old selected element, can be null

getNewSelected

public Dockable getNewSelected()
Gets the element that is selected after the change.

Returns:
the newly selected element, can be null