@FrameworkOnly public class SplitPlaceholderSet extends Object
Dockables of a SplitDockStation
and makes sure that a placeholder is used by no more than one SplitNode.| Constructor and Description |
|---|
SplitPlaceholderSet(SplitDockAccess access)
Creates a new set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
removeDoublePlaceholders(SplitNode node,
PlaceholderMap map)
Removes any placeholder from
placeholderMap that is stored in another node
than node. |
void |
set(SplitNode node,
Dockable dockable,
SplitNode... protectedNodes)
Ensures that
node is associated with the placeholder for dockable. |
void |
set(SplitNode node,
Path placeholder,
SplitNode... protectedNodes)
Ensures that
node is associated with placeholder
but no other node has placeholder. |
public SplitPlaceholderSet(SplitDockAccess access)
access - Access to the owner of this set, not nullpublic void set(SplitNode node, Dockable dockable, SplitNode... protectedNodes)
node is associated with the placeholder for dockable.node - the owner of dockable, can be null to indicate
that no-one must use the placeholder of dockabledockable - the item whose placeholder is updatedprotectedNodes - nodes that will not be removed even if they are no longer usefulpublic void set(SplitNode node, Path placeholder, SplitNode... protectedNodes)
node is associated with placeholder
but no other node has placeholder.node - the node which must have placeholder, null to
indicate that no-one must use placeholderplaceholder - the placeholder to set or to moveprotectedNodes - nodes that will not be removed even if they are no longer usefulpublic void removeDoublePlaceholders(SplitNode node, PlaceholderMap map)
placeholderMap that is stored in another node
than node.node - the node which must not be searched, can be nullmap - the map from which placeholders will be removedCopyright © 2017 Docking Frames. All rights reserved.