|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.intern.CPlaceholderStrategy
public class CPlaceholderStrategy
This strategy assigns a unique identifier to all CDockable
s that
are registered at a CControl
.
Field Summary |
---|
Fields inherited from interface bibliothek.gui.dock.station.support.PlaceholderStrategy |
---|
PLACEHOLDER_STRATEGY |
Constructor Summary | |
---|---|
CPlaceholderStrategy(CControl control)
Creates a new strategy |
Method Summary | |
---|---|
void |
addListener(PlaceholderStrategyListener listener)
Adds a listener to this strategy. |
protected void |
fireInvalidated(Path placeholder)
|
static Path |
getMultipleDockablePlaceholder(java.lang.String id)
Gets the placeholder that is used for the MultipleCDockable with
unique identifier id . |
Path |
getPlaceholderFor(Dockable dockable)
Gets the placeholder which represents dockable . |
static Path |
getSingleDockablePlaceholder(java.lang.String id)
Gets the placeholder that is used for the SingleCDockable with
unique identifier id . |
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CPlaceholderStrategy(CControl control)
control
- the control in whose realm this strategy operatesMethod Detail |
---|
public static Path getSingleDockablePlaceholder(java.lang.String id)
SingleCDockable
with
unique identifier id
.
id
- the unique identifer of a SingleCDockable
public static Path getMultipleDockablePlaceholder(java.lang.String id)
MultipleCDockable
with
unique identifier id
.
id
- the unique identifer of a MultipleCDockable
public void addListener(PlaceholderStrategyListener listener)
PlaceholderStrategy
addListener
in interface PlaceholderStrategy
listener
- the new listener, not null
public void removeListener(PlaceholderStrategyListener listener)
PlaceholderStrategy
removeListener
in interface PlaceholderStrategy
listener
- the listener to removeprotected void fireInvalidated(Path placeholder)
public Path getPlaceholderFor(Dockable dockable)
PlaceholderStrategy
dockable
.
getPlaceholderFor
in interface PlaceholderStrategy
dockable
- some child of station
null
public boolean isValidPlaceholder(Path placeholder)
PlaceholderStrategy
placeholder
is associated with any Dockable
.
isValidPlaceholder
in interface PlaceholderStrategy
placeholder
- the placeholder in question
true
if placeholder
is still in usepublic void install(DockStation station)
PlaceholderStrategy
station
.
install
in interface PlaceholderStrategy
station
- the station which uses this strategypublic void uninstall(DockStation station)
PlaceholderStrategy
station
.
uninstall
in interface PlaceholderStrategy
station
- the station that is removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |