public interface PerspectiveStation extends PerspectiveElement
DockStation in a Perspective.| Modifier and Type | Method and Description |
|---|---|
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
|
asDockable, asStation, getFactoryIDint getDockableCount()
PerspectiveDockable getDockable(int index)
index - the index of a childnullDockableProperty getDockableProperty(PerspectiveDockable child, PerspectiveDockable target)
child - a child of this station, this child's 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 removetrue if dockable was removed, false otherwisevoid 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 oldDockableIllegalArgumentException - if oldDockable is not a child of this station or if
newDockable cannot be added as child to this stationCopyright © 2017 Docking Frames. All rights reserved.