public class PlaceholderList.Item extends PlaceholderMetaMap
PlaceholderList| Constructor and Description |
|---|
Item(P dockable)
Creates a new item.
|
Item(P dockable,
Set<Path> placeholderSet,
PlaceholderMap placeholderMap)
Creates a new item.
|
Item(Set<Path> placeholders)
Creates a new item.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Path placeholder)
Adds
placeholder to the set of placeholders of this entry. |
P |
getDockable()
Returns the value of this dockable item.
|
PlaceholderMap |
getPlaceholderMap()
Gets the placeholder information of a child
DockStation. |
Set<Path> |
getPlaceholderSet()
Returns the value of this placeholder.
|
boolean |
hasPlaceholder(Path placeholder)
Tells whether
placeholder is known to this item or not. |
boolean |
hasPlaceholders()
Tells whether this entry contains at least one placeholder
|
boolean |
isPlaceholder()
Tells whether this item is a pure placeholder or not.
|
void |
remove(Path placeholder)
Removes
placeholder from this entry. |
void |
removeAll(Set<Path> placeholders)
Removes all placeholders that are in
placeholders. |
void |
setDockable(P dockable)
Sets the value of this item.
|
protected void |
setOwner(bibliothek.gui.dock.station.support.PlaceholderList.Entry owner)
Sets the owner of this list.
|
void |
setPlaceholderMap(PlaceholderMap placeholders)
Assuming this item represents a
Dockable that is a DockStation,
sets the placeholder information of that DockStation. |
void |
setPlaceholderSet(Set<Path> placeholderSet)
Sets the set of placeholders that are associated with this entry.
|
void |
setStrategy(PlaceholderStrategy strategy)
Forwards
strategy to the current PlaceholderMap. |
String |
toString() |
public Item(P dockable)
dockable - the value of this item, not nullpublic Item(P dockable, Set<Path> placeholderSet, PlaceholderMap placeholderMap)
dockable - the value of this item, not nullplaceholderSet - the placeholders of this item, can be nullplaceholderMap - the children's placeholder info, can be nullpublic void setStrategy(PlaceholderStrategy strategy)
strategy to the current PlaceholderMap.strategy - the new strategy, can be nullprotected void setOwner(bibliothek.gui.dock.station.support.PlaceholderList.Entry owner)
owner - the new owner, can be nullpublic boolean isPlaceholder()
true if this item is only a placeholder, false
if this item is a Dockable.public Set<Path> getPlaceholderSet()
null if this
has no a placeholdersisPlaceholder()public void setPlaceholderSet(Set<Path> placeholderSet)
placeholderSet - the placeholders, can be nullpublic void removeAll(Set<Path> placeholders)
placeholders.placeholders - the paths to removepublic void remove(Path placeholder)
placeholder from this entry.placeholder - the placeholder to removepublic void add(Path placeholder)
placeholder to the set of placeholders of this entry.placeholder - the new placeholderpublic boolean hasPlaceholders()
true if there is at least one placeholder stored in this entrypublic boolean hasPlaceholder(Path placeholder)
placeholder is known to this item or not.placeholder - some placeholder to searchtrue if this item stores placeholderpublic P getDockable()
null if this
is a placeholderisPlaceholder()public void setDockable(P dockable)
dockable - the new value, can be nullpublic void setPlaceholderMap(PlaceholderMap placeholders)
Dockable that is a DockStation,
sets the placeholder information of that DockStation.placeholders - the placeholders, may be nullpublic PlaceholderMap getPlaceholderMap()
DockStation.nullCopyright © 2017 Docking Frames. All rights reserved.