public abstract static class SplitDockPerspective.Entry
extends java.lang.Object
Constructor and Description |
---|
Entry(java.util.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 . |
java.util.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(java.util.Set<Path> placeholders, PlaceholderMap placeholderMap, long id)
placeholders
- the placeholders associated with this node or leafplaceholderMap
- placeholder information of a child DockStation
id
- 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 this
public SplitDockPerspective getPerspective()
null
public 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 null
public SplitDockPerspective.Node asNode()
this
as node or null
.this
or null
public java.util.Set<Path> getPlaceholders()
public PlaceholderMap getPlaceholderMap()
DockStation
.null
public void setPlaceholderMap(PlaceholderMap placeholderMap)
placeholderMap
- all the placeholders, can be null