public abstract class SplitDockTree.Key extends Object
Constructor and Description |
---|
SplitDockTree.Key(Path[] placeholders,
PlaceholderMap placeholderMap,
long id)
Creates a new key
|
Modifier and Type | Method and Description |
---|---|
protected bibliothek.gui.dock.station.split.SplitDockTree.Leaf |
asLeaf()
Gets this key as a leaf.
|
protected bibliothek.gui.dock.station.split.SplitDockTree.Node |
asNode()
Gets this key as a node.
|
long |
getNodeId()
Gets the unique id of this node.
|
SplitDockTree.Key |
getParent()
Gets the parent of this node or leaf.
|
SplitDockTree<D> |
getTree()
Gets the tree which is the owner of this node or leaf.
|
void |
setNodeId(long id)
Sets the unique identifier of this node
|
protected abstract void |
toString(StringBuilder builder,
int depth)
Converts this key and all its children into a
String . |
public SplitDockTree.Key(Path[] placeholders, PlaceholderMap placeholderMap, long id)
placeholders
- the placeholders that are associated with this nodeplaceholderMap
- placeholder information about a child DockStation
id
- the unique id of this nodeprotected abstract void toString(StringBuilder builder, int depth)
String
.builder
- the builder to which the content of this key is to be addeddepth
- the depth of this key (number of parents)public SplitDockTree<D> getTree()
public SplitDockTree.Key getParent()
null
public void setNodeId(long id)
id
- the id or -1public long getNodeId()
protected bibliothek.gui.dock.station.split.SplitDockTree.Leaf asLeaf()
null
protected bibliothek.gui.dock.station.split.SplitDockTree.Node asNode()
null