public class PlaceholderList.Item extends PlaceholderMetaMap
PlaceholderList
Constructor and Description |
---|
PlaceholderList.Item(P dockable)
Creates a new item.
|
PlaceholderList.Item(P dockable,
Set<Path> placeholderSet,
PlaceholderMap placeholderMap)
Creates a new item.
|
PlaceholderList.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 PlaceholderList.Item(P dockable)
dockable
- the value of this item, not null
public PlaceholderList.Item(P dockable, Set<Path> placeholderSet, PlaceholderMap placeholderMap)
dockable
- the value of this item, not null
placeholderSet
- the placeholders of this item, can be null
placeholderMap
- the childrens placeholder info, can be null
public void setStrategy(PlaceholderStrategy strategy)
strategy
to the current PlaceholderMap
.strategy
- the new strategy, can be null
protected void setOwner(bibliothek.gui.dock.station.support.PlaceholderList.Entry owner)
owner
- the new owner, can be null
public 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 null
public 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 placeholder
public P getDockable()
null
if this
is a placeholderisPlaceholder()
public void setDockable(P dockable)
dockable
- the new value, can be null
public void setPlaceholderMap(PlaceholderMap placeholders)
Dockable
that is a DockStation
,
sets the placeholder information of that DockStation
.placeholders
- the placeholders, may be null
public PlaceholderMap getPlaceholderMap()
DockStation
.null