bibliothek.gui.dock.event
Class DockHierarchyEvent

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

public class DockHierarchyEvent
extends java.lang.Object

Contains information about the path of a Dockable.

Author:
Benjamin Sigg

Constructor Summary
DockHierarchyEvent(Dockable dockable)
          Creates a new event and sets up all properties.
DockHierarchyEvent(Dockable dockable, DockController controller)
          Creates a new event and sets up all properties.
 
Method Summary
 DockController getController()
          Gets the controller which was in use the moment this event was created.
 Dockable getDockable()
          Gets the Dockable whose path has been changed.
 DockStation[] getPath()
          Gets the new path of the source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockHierarchyEvent

public DockHierarchyEvent(Dockable dockable)
Creates a new event and sets up all properties.

Parameters:
dockable - the Dockable whose path has changed

DockHierarchyEvent

public DockHierarchyEvent(Dockable dockable,
                          DockController controller)
Creates a new event and sets up all properties.

Parameters:
dockable - the Dockable whose path has changed
controller - the DockController of dockable
Method Detail

getDockable

public Dockable getDockable()
Gets the Dockable whose path has been changed.

Returns:
the source of the event

getPath

public DockStation[] getPath()
Gets the new path of the source.

Returns:
the parents

getController

public DockController getController()
Gets the controller which was in use the moment this event was created.

Returns:
the controller