public interface PlaceholderStrategy
Dockable
s can leave a placeholder
on a DockStation
.Modifier and Type | Field and Description |
---|---|
static PropertyKey<PlaceholderStrategy> |
PLACEHOLDER_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 . |
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 |
uninstall(DockStation station)
Informs this strategy that it will no longer be used for
station . |
static final PropertyKey<PlaceholderStrategy> PLACEHOLDER_STRATEGY
void install(DockStation station)
station
.station
- the station which uses this strategyvoid uninstall(DockStation station)
station
.station
- the station that is removedvoid addListener(PlaceholderStrategyListener listener)
listener
- the new listener, not null
void removeListener(PlaceholderStrategyListener listener)
listener
- the listener to removePath getPlaceholderFor(Dockable dockable)
dockable
.dockable
- some child of station
null