public abstract class ListDockableStationPerspective extends Object implements PerspectiveStation, PerspectiveDockable
PerspectiveStation whose children are organized in a list.| Constructor and Description |
|---|
ListDockableStationPerspective()
Creates a new, empty perspective
|
ListDockableStationPerspective(PerspectiveDockable[] children)
Creates a new perspective, adds
children to this station. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFactoryIDpublic ListDockableStationPerspective()
public ListDockableStationPerspective(PerspectiveDockable[] children)
children to this station.children - the children to addpublic PerspectiveStation asStation()
asStation in interface PerspectiveElementpublic PerspectiveDockable asDockable()
asDockable in interface PerspectiveElementasDockable in interface PlaceholderListItem<PerspectiveDockable>public int getDockableCount()
getDockableCount in interface PerspectiveStationpublic PerspectiveDockable getDockable(int index)
getDockable in interface PerspectiveStationpublic int indexOf(PerspectiveDockable dockable)
dockable on this station.dockable - the item to search-1 if not foundpublic void add(PerspectiveDockable dockable)
dockable at the end of the list of children.dockable - the item to add, not nullpublic void add(int index,
PerspectiveDockable dockable)
dockable at location index in the list of children.index - the location of the new childdockable - the new child, not null@FrameworkOnly public PerspectivePlaceholderList<PerspectiveDockable> getDockables()
protected void setDockables(PerspectivePlaceholderList<PerspectiveDockable> dockables)
dockables - the list of the childrenpublic DockableProperty getDockableProperty(PerspectiveDockable child, PerspectiveDockable target)
getDockableProperty in interface PerspectiveStationprotected abstract DockableProperty getDockableProperty(int index, Path placeholder, PerspectiveDockable child, PerspectiveDockable target)
getDockableProperty(PerspectiveDockable, PerspectiveDockable), returns a new
DockableProperty which matches the location described by index and placeholder.index - the index of the item in the list of dockables, can be -1placeholder - the name of the item, can be nullchild - the child whose location is requestedtarget - the item whose location is requested, this may be childchildpublic PlaceholderMap getPlaceholders()
getPlaceholders in interface PerspectiveStationpublic void setPlaceholders(PlaceholderMap placeholders)
setPlaceholders in interface PerspectiveStationpublic PerspectiveDockable remove(int index)
PerspectiveDockable which is stored at location index.index - the index of the item to removepublic boolean remove(PerspectiveDockable dockable)
remove in interface PerspectiveStationpublic void replace(PerspectiveDockable oldDockable, PerspectiveDockable newDockable)
replace in interface PerspectiveStationpublic Path getPlaceholder()
getPlaceholder in interface PerspectiveDockablepublic PerspectiveStation getParent()
getParent in interface PerspectiveDockablepublic void setParent(PerspectiveStation parent)
setParent in interface PerspectiveDockableCopyright © 2018. All rights reserved.