public class RootPlaceholderStrategy extends Object implements PlaceholderStrategy
PlaceholderStrategy that wraps around another strategy or around no
strategy at all.PLACEHOLDER_STRATEGY| Constructor and Description |
|---|
RootPlaceholderStrategy(DockStation station)
Creates a new strategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PlaceholderStrategyListener listener)
Adds a listener to this strategy.
|
Path |
getPlaceholderFor(Dockable dockable)
Gets the placeholder which represents
dockable. |
PlaceholderStrategy |
getStrategy()
Gets the strategy that is the current delegate.
|
void |
install(DockStation station)
Informs this strategy that it will from no one be used by
station. |
boolean |
isValidPlaceholder(Path placeholder)
Tells whether
placeholder is associated with any Dockable. |
void |
removeListener(PlaceholderStrategyListener listener)
Removes a listener from this strategy.
|
void |
setStrategy(PlaceholderStrategy strategy)
Sets the delegate of this strategy.
|
void |
uninstall(DockStation station)
Informs this strategy that it will no longer be used for
station. |
public RootPlaceholderStrategy(DockStation station)
station - the station for which this strategy is usedpublic void setStrategy(PlaceholderStrategy strategy)
strategy - the new delegate, can be nullpublic PlaceholderStrategy getStrategy()
nullpublic void addListener(PlaceholderStrategyListener listener)
PlaceholderStrategyaddListener in interface PlaceholderStrategylistener - the new listener, not nullpublic void removeListener(PlaceholderStrategyListener listener)
PlaceholderStrategyremoveListener in interface PlaceholderStrategylistener - the listener to removepublic Path getPlaceholderFor(Dockable dockable)
PlaceholderStrategydockable.getPlaceholderFor in interface PlaceholderStrategydockable - some child of stationnullpublic void install(DockStation station)
PlaceholderStrategystation.install in interface PlaceholderStrategystation - the station which uses this strategypublic boolean isValidPlaceholder(Path placeholder)
PlaceholderStrategyplaceholder is associated with any Dockable.isValidPlaceholder in interface PlaceholderStrategyplaceholder - the placeholder in questiontrue if placeholder is still in usepublic void uninstall(DockStation station)
PlaceholderStrategystation.uninstall in interface PlaceholderStrategystation - the station that is removedCopyright © 2017 Docking Frames. All rights reserved.