public static class SplitDockPerspective.Leaf extends SplitDockPerspective.Entry
Dockable
.Constructor and Description |
---|
Leaf(PerspectiveDockable dockable,
Set<Path> placeholders,
PlaceholderMap placeholderMap,
long nodeId)
Creates a new leaf
|
Modifier and Type | Method and Description |
---|---|
SplitDockPerspective.Leaf |
asLeaf()
Returns
this as leaf or null . |
PerspectiveDockable |
getDockable()
Gets the element which is represented by this leaf.
|
void |
remove()
Sets the dockable of this entry to
null and inserts the placeholder of the element. |
void |
setDockable(PerspectiveDockable dockable)
Exchanges the element that is represented by this perspective.
|
asNode, delete, getNodeId, getParent, getPerspective, getPlaceholderMap, getPlaceholders, isAnchestor, replace, setParent, setPlaceholderMap
public Leaf(PerspectiveDockable dockable, Set<Path> placeholders, PlaceholderMap placeholderMap, long nodeId)
dockable
- the element that is represented by this leafplaceholders
- placeholders associated with this leafplaceholderMap
- placeholder information of a child DockStation
nodeId
- the unique identifier of this node, can be -1public SplitDockPerspective.Leaf asLeaf()
SplitDockPerspective.Entry
this
as leaf or null
.asLeaf
in class SplitDockPerspective.Entry
this
or null
public PerspectiveDockable getDockable()
null
public void setDockable(PerspectiveDockable dockable)
dockable
- the new element, can be null
public void remove()
null
and inserts the placeholder of the element. If there
are no placeholders, then SplitDockPerspective.Entry.delete()
is called.SplitDockPerspective
.