bibliothek.gui.dock.common.perspective
Class SingleCDockablePerspective.Intern

java.lang.Object
  extended by bibliothek.gui.dock.common.perspective.SingleCDockablePerspective.Intern
All Implemented Interfaces:
CommonElementPerspective, PerspectiveDockable, PerspectiveElement, PlaceholderListItem<PerspectiveDockable>
Enclosing class:
SingleCDockablePerspective

protected class SingleCDockablePerspective.Intern
extends java.lang.Object
implements PerspectiveDockable, CommonElementPerspective

The type of object that is created by the default implementation of SingleCDockablePerspective.create()

Author:
Benjamin Sigg

Constructor Summary
protected SingleCDockablePerspective.Intern()
           
 
Method Summary
 PerspectiveDockable asDockable()
          Returns the representation of this as PerspectiveDockable.
 PerspectiveStation asStation()
          Returns the representation of this as PerspectiveStation
 CElementPerspective getElement()
          Gets the element that is represented by this PerspectiveElement.
 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

SingleCDockablePerspective.Intern

protected SingleCDockablePerspective.Intern()
Method Detail

getElement

public CElementPerspective getElement()
Description copied from interface: CommonElementPerspective
Gets the element that is represented by this PerspectiveElement.

Specified by:
getElement in interface CommonElementPerspective
Returns:
the represented element, not 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

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

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

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

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

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