bibliothek.gui.dock.dockable
Class DefaultDockablePerspective

java.lang.Object
  extended by bibliothek.gui.dock.dockable.DefaultDockablePerspective
All Implemented Interfaces:
PerspectiveDockable, PerspectiveElement, PlaceholderListItem<PerspectiveDockable>
Direct Known Subclasses:
FrontendDockablePerspective

public class DefaultDockablePerspective
extends java.lang.Object
implements PerspectiveDockable

Implementation of a PerspectiveElement that represents a DefaultDockable.

Author:
Benjamin Sigg

Constructor Summary
DefaultDockablePerspective()
           
 
Method Summary
 PerspectiveDockable asDockable()
          Returns the representation of this as PerspectiveDockable.
 PerspectiveStation asStation()
          Returns the representation of this as PerspectiveStation
 java.lang.String getFactoryID()
          Gets the identifier of the DockFactory that will be able to understand the layout information this element generates.
 PerspectiveStation getParent()
          Gets the parent DockStation of this Dockable.
 Path getPlaceholder()
          Gets the placeholder which is associated with this Dockable.
 void setParent(PerspectiveStation parent)
          Sets the parent DockStation of this Dockable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDockablePerspective

public DefaultDockablePerspective()
Method Detail

setParent

public void setParent(PerspectiveStation parent)
Description copied from interface: PerspectiveDockable
Sets the parent DockStation of this Dockable.

Specified by:
setParent in interface PerspectiveDockable
Parameters:
parent - the new parent, can be null

getParent

public PerspectiveStation getParent()
Description copied from interface: PerspectiveDockable
Gets the parent DockStation of this Dockable.

Specified by:
getParent in interface PerspectiveDockable
Returns:
the parent, may be null

getPlaceholder

public Path getPlaceholder()
Description copied from interface: PerspectiveDockable
Gets the placeholder which is associated with this Dockable.

Specified by:
getPlaceholder in interface PerspectiveDockable
Returns:
the placeholder, can be null

asDockable

public PerspectiveDockable asDockable()
Description copied from interface: PerspectiveElement
Returns the representation of this as PerspectiveDockable.

Specified by:
asDockable in interface PerspectiveElement
Specified by:
asDockable in interface PlaceholderListItem<PerspectiveDockable>
Returns:
either this, a representation of this or null

asStation

public PerspectiveStation asStation()
Description copied from interface: PerspectiveElement
Returns the representation of this as PerspectiveStation

Specified by:
asStation in interface PerspectiveElement
Returns:
either this, a representation of this or null

getFactoryID

public java.lang.String getFactoryID()
Description copied from interface: PerspectiveElement
Gets the identifier of the DockFactory that will be able to understand the layout information this element generates.

Specified by:
getFactoryID in interface PerspectiveElement
Returns:
the factories identifier