bibliothek.gui.dock.station.split
Class SplitDockStationLayout.Entry

java.lang.Object
  extended by bibliothek.gui.dock.station.split.SplitDockStationLayout.Entry
Direct Known Subclasses:
SplitDockStationLayout.Leaf, SplitDockStationLayout.Node
Enclosing class:
SplitDockStationLayout

public abstract static class SplitDockStationLayout.Entry
extends Object

An entry in a tree, either a node or a leaf.

Author:
Benjamin Sigg

Constructor Summary
SplitDockStationLayout.Entry(long id)
          Create a new entry
 
Method Summary
 SplitDockStationLayout.Leaf asLeaf()
          Returns this as leaf or null.
 SplitDockStationLayout.Node asNode()
          Returns this as node or null.
 SplitDockPathProperty createPathProperty()
          Creates a new path property which describes the location of this element.
 long getNodeId()
          Gets the unique id of this node.
 SplitDockStationLayout.Node getParent()
          Gets the parent of this entry, is null for the root entry.
protected  void setParent(SplitDockStationLayout.Node parent)
          Sets the parent of this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitDockStationLayout.Entry

public SplitDockStationLayout.Entry(long id)
Create a new entry

Parameters:
id - the unique id of this node or -1
Method Detail

setParent

protected void setParent(SplitDockStationLayout.Node parent)
Sets the parent of this entry.

Parameters:
parent - the parent

getParent

public SplitDockStationLayout.Node getParent()
Gets the parent of this entry, is null for the root entry.

Returns:
the parent.

getNodeId

public long getNodeId()
Gets the unique id of this node.

Returns:
the unique id or -1

asLeaf

public SplitDockStationLayout.Leaf asLeaf()
Returns this as leaf or null.

Returns:
this or null

asNode

public SplitDockStationLayout.Node asNode()
Returns this as node or null.

Returns:
this or null

createPathProperty

public SplitDockPathProperty createPathProperty()
Creates a new path property which describes the location of this element.

Returns:
the new path property