public abstract static class SplitDockPerspective.Entry extends Object
| Constructor and Description |
|---|
Entry(Set<Path> placeholders,
PlaceholderMap placeholderMap,
long id)
Create a new entry
|
| Modifier and Type | Method and Description |
|---|---|
SplitDockPerspective.Leaf |
asLeaf()
Returns
this as leaf or null. |
SplitDockPerspective.Node |
asNode()
Returns
this as node or null. |
void |
delete()
Removes
this and all children from this SplitDockPerspective and
collapses the tree. |
long |
getNodeId()
Gets the unique id of this node.
|
SplitDockPerspective.Entry |
getParent()
Gets the parent of this entry, is
null for the
root entry. |
SplitDockPerspective |
getPerspective()
Gets the owner of this node or leaf.
|
PlaceholderMap |
getPlaceholderMap()
Gets the placeholder information of a potential child
DockStation. |
Set<Path> |
getPlaceholders()
Gets all the placeholders that are associated with this entry.
|
boolean |
isAnchestor(SplitDockPerspective.Entry anchestor)
Tells whether
anchestor is an anchestor of this entry. |
void |
replace(SplitDockPerspective.Entry next)
Replaces
this with next. |
protected void |
setParent(SplitDockPerspective.Entry parent)
Sets the parent of this entry.
|
void |
setPlaceholderMap(PlaceholderMap placeholderMap)
Sets all the placeholders that are associated with this entry.
|
public Entry(Set<Path> placeholders, PlaceholderMap placeholderMap, long id)
placeholders - the placeholders associated with this node or leafplaceholderMap - placeholder information of a child DockStationid - the unique id of this node or -1public boolean isAnchestor(SplitDockPerspective.Entry anchestor)
anchestor is an anchestor of this entry.anchestor - the item to searchtrue if anchestor is this or a
parent of thispublic SplitDockPerspective getPerspective()
nullpublic void delete()
this and all children from this SplitDockPerspective and
collapses the tree.public void replace(SplitDockPerspective.Entry next)
this with next.next - the element which replaces thisprotected void setParent(SplitDockPerspective.Entry parent)
parent - the parentpublic SplitDockPerspective.Entry getParent()
null for the
root entry.public long getNodeId()
public SplitDockPerspective.Leaf asLeaf()
this as leaf or null.this or nullpublic SplitDockPerspective.Node asNode()
this as node or null.this or nullpublic Set<Path> getPlaceholders()
public PlaceholderMap getPlaceholderMap()
DockStation.nullpublic void setPlaceholderMap(PlaceholderMap placeholderMap)
placeholderMap - all the placeholders, can be nullCopyright © 2017 Docking Frames. All rights reserved.