|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PerspectiveStation
An abstract representation of a DockStation in a Perspective.
| Method Summary | |
|---|---|
PerspectiveDockable |
getDockable(int index)
Gets the index'th child of this station. |
int |
getDockableCount()
Gets the number of children this station has. |
DockableProperty |
getDockableProperty(PerspectiveDockable child,
PerspectiveDockable target)
Gets precise information about the location of a child of this station. |
PlaceholderMap |
getPlaceholders()
Converts the contents of this station into a map of placeholders. |
boolean |
remove(PerspectiveDockable dockable)
Removes a child of this station, can leave behind a placeholder. |
void |
replace(PerspectiveDockable oldDockable,
PerspectiveDockable newDockable)
Replaces oldDockable by newDockable. |
void |
setPlaceholders(PlaceholderMap placeholders)
Informs this station of the content that it should show |
| Methods inherited from interface bibliothek.gui.dock.perspective.PerspectiveElement |
|---|
asDockable, asStation, getFactoryID |
| Method Detail |
|---|
int getDockableCount()
PerspectiveDockable getDockable(int index)
index - the index of a child
null
DockableProperty getDockableProperty(PerspectiveDockable child,
PerspectiveDockable target)
child - a child of this station, this childs location is askedtarget - an optional hint telling for which dockable the location information
will be used, can be null. This hint can be used to find a placeholder
that should be part of the result.
PlaceholderMap getPlaceholders()
void setPlaceholders(PlaceholderMap placeholders)
placeholders - a map that was earlier created by getPlaceholders()boolean remove(PerspectiveDockable dockable)
dockable - the element to remove
true if dockable was removed, false otherwise
void replace(PerspectiveDockable oldDockable,
PerspectiveDockable newDockable)
oldDockable by newDockable. This method should behave the same way
is if oldDockable was removed and newDockable added at the same location.
oldDockable - some child of this stationnewDockable - the replacement for oldDockable
IllegalArgumentException - if oldDockable is not a child of this station or if
newDockable cannot be added as child to this station
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||