|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.split.SplitDockPerspective.Entry
public abstract static class SplitDockPerspective.Entry
An entry in a tree, either a node or a leaf.
| Constructor Summary | |
|---|---|
SplitDockPerspective.Entry(Set<Path> placeholders,
PlaceholderMap placeholderMap,
long id)
Create a new entry |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SplitDockPerspective.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 -1| Method Detail |
|---|
public boolean isAnchestor(SplitDockPerspective.Entry anchestor)
anchestor is an anchestor of this entry.
anchestor - the item to search
true 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 null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||