bibliothek.gui.dock.station.split
Class SplitDockTree.Key

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

public abstract class SplitDockTree.Key
extends java.lang.Object

A key that represents either a node or a leaf. Clients should not subclass this class.

Author:
Benjamin Sigg

Field Summary
private  SplitDockTree.Key parent
          the parent of this node or leaf
 
Constructor Summary
SplitDockTree.Key()
           
 
Method Summary
protected  SplitDockTree.Leaf asLeaf()
          Gets this key as a leaf.
protected  SplitDockTree.Node asNode()
          Gets this key as a node.
 SplitDockTree.Key getParent()
          Gets the parent of this node or leaf.
 SplitDockTree getTree()
          Gets the tree which is the owner of this node or leaf.
private  void setParent(SplitDockTree.Key parent)
          Sets the parent of this node or leaf.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

private SplitDockTree.Key parent
the parent of this node or leaf

Constructor Detail

SplitDockTree.Key

public SplitDockTree.Key()
Method Detail

getTree

public SplitDockTree getTree()
Gets the tree which is the owner of this node or leaf.

Returns:
the owner

getParent

public SplitDockTree.Key getParent()
Gets the parent of this node or leaf.

Returns:
the parent, can be null

setParent

private void setParent(SplitDockTree.Key parent)
Sets the parent of this node or leaf.

Parameters:
parent - the parent

asLeaf

protected SplitDockTree.Leaf asLeaf()
Gets this key as a leaf.

Returns:
this or null

asNode

protected SplitDockTree.Node asNode()
Gets this key as a node.

Returns:
this or null