public class CPlaceholderStrategy extends Object implements PlaceholderStrategy
PLACEHOLDER_STRATEGY| Constructor and Description |
|---|
CPlaceholderStrategy(CControl control)
Creates a new strategy
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PlaceholderStrategyListener listener) |
protected void |
fireInvalidated(Path placeholder) |
static Path |
getMultipleDockablePlaceholder(String id)
Gets the placeholder that is used for the
MultipleCDockable with
unique identifier id. |
Path |
getPlaceholderFor(Dockable dockable) |
static Path |
getSingleDockablePlaceholder(String id)
Gets the placeholder that is used for the
SingleCDockable with
unique identifier id. |
void |
install(DockStation station) |
boolean |
isValidPlaceholder(Path placeholder) |
void |
removeListener(PlaceholderStrategyListener listener) |
void |
uninstall(DockStation station) |
public CPlaceholderStrategy(CControl control)
control - the control in whose realm this strategy operatespublic static Path getSingleDockablePlaceholder(String id)
SingleCDockable with
unique identifier id.id - the unique identifer of a SingleCDockablepublic static Path getMultipleDockablePlaceholder(String id)
MultipleCDockable with
unique identifier id.id - the unique identifer of a MultipleCDockablepublic void addListener(PlaceholderStrategyListener listener)
addListener in interface PlaceholderStrategypublic void removeListener(PlaceholderStrategyListener listener)
removeListener in interface PlaceholderStrategyprotected void fireInvalidated(Path placeholder)
public Path getPlaceholderFor(Dockable dockable)
getPlaceholderFor in interface PlaceholderStrategypublic boolean isValidPlaceholder(Path placeholder)
isValidPlaceholder in interface PlaceholderStrategypublic void install(DockStation station)
install in interface PlaceholderStrategypublic void uninstall(DockStation station)
uninstall in interface PlaceholderStrategyCopyright © 2018. All rights reserved.