public abstract class ListDockableStationPerspective
extends java.lang.Object
implements bibliothek.gui.dock.perspective.PerspectiveStation, bibliothek.gui.dock.perspective.PerspectiveDockable
PerspectiveStation
whose children are organized in a list.Constructor and Description |
---|
ListDockableStationPerspective()
Creates a new, empty perspective
|
ListDockableStationPerspective(bibliothek.gui.dock.perspective.PerspectiveDockable[] children)
Creates a new perspective, adds
children to this station. |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
Adds
dockable at location index in the list of children. |
void |
add(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
Adds
dockable at the end of the list of children. |
bibliothek.gui.dock.perspective.PerspectiveDockable |
asDockable() |
bibliothek.gui.dock.perspective.PerspectiveStation |
asStation() |
bibliothek.gui.dock.perspective.PerspectiveDockable |
getDockable(int index) |
int |
getDockableCount() |
protected abstract bibliothek.gui.dock.layout.DockableProperty |
getDockableProperty(int index,
bibliothek.util.Path placeholder,
bibliothek.gui.dock.perspective.PerspectiveDockable child,
bibliothek.gui.dock.perspective.PerspectiveDockable target)
Called by
getDockableProperty(PerspectiveDockable, PerspectiveDockable) , returns a new
DockableProperty which matches the location described by index and placeholder . |
bibliothek.gui.dock.layout.DockableProperty |
getDockableProperty(bibliothek.gui.dock.perspective.PerspectiveDockable child,
bibliothek.gui.dock.perspective.PerspectiveDockable target) |
bibliothek.gui.dock.station.support.PerspectivePlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable> |
getDockables()
Gets direct access to the list of dockables, should be used with care.
|
bibliothek.gui.dock.perspective.PerspectiveStation |
getParent() |
bibliothek.util.Path |
getPlaceholder() |
bibliothek.gui.dock.station.support.PlaceholderMap |
getPlaceholders() |
int |
indexOf(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
Gets the location of
dockable on this station. |
bibliothek.gui.dock.perspective.PerspectiveDockable |
remove(int index)
Removes the
PerspectiveDockable which is stored at location index . |
boolean |
remove(bibliothek.gui.dock.perspective.PerspectiveDockable dockable) |
void |
replace(bibliothek.gui.dock.perspective.PerspectiveDockable oldDockable,
bibliothek.gui.dock.perspective.PerspectiveDockable newDockable) |
protected void |
setDockables(bibliothek.gui.dock.station.support.PerspectivePlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable> dockables)
Sets the list which contains all the children.
|
void |
setParent(bibliothek.gui.dock.perspective.PerspectiveStation parent) |
void |
setPlaceholders(bibliothek.gui.dock.station.support.PlaceholderMap placeholders) |
public ListDockableStationPerspective()
public ListDockableStationPerspective(bibliothek.gui.dock.perspective.PerspectiveDockable[] children)
children
to this station.children
- the children to addpublic bibliothek.gui.dock.perspective.PerspectiveStation asStation()
asStation
in interface bibliothek.gui.dock.perspective.PerspectiveElement
public bibliothek.gui.dock.perspective.PerspectiveDockable asDockable()
asDockable
in interface bibliothek.gui.dock.perspective.PerspectiveElement
asDockable
in interface bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.dock.perspective.PerspectiveDockable>
public int getDockableCount()
getDockableCount
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public bibliothek.gui.dock.perspective.PerspectiveDockable getDockable(int index)
getDockable
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public int indexOf(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
dockable
on this station.dockable
- the item to search-1
if not foundpublic void add(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
dockable
at the end of the list of children.dockable
- the item to add, not null
public void add(int index, bibliothek.gui.dock.perspective.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 bibliothek.gui.dock.station.support.PerspectivePlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable> getDockables()
protected void setDockables(bibliothek.gui.dock.station.support.PerspectivePlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable> dockables)
dockables
- the list of the childrenpublic bibliothek.gui.dock.layout.DockableProperty getDockableProperty(bibliothek.gui.dock.perspective.PerspectiveDockable child, bibliothek.gui.dock.perspective.PerspectiveDockable target)
getDockableProperty
in interface bibliothek.gui.dock.perspective.PerspectiveStation
protected abstract bibliothek.gui.dock.layout.DockableProperty getDockableProperty(int index, bibliothek.util.Path placeholder, bibliothek.gui.dock.perspective.PerspectiveDockable child, bibliothek.gui.dock.perspective.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 -1
placeholder
- the name of the item, can be null
child
- the child whose location is requestedtarget
- the item whose location is requested, this may be child
child
public bibliothek.gui.dock.station.support.PlaceholderMap getPlaceholders()
getPlaceholders
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public void setPlaceholders(bibliothek.gui.dock.station.support.PlaceholderMap placeholders)
setPlaceholders
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public bibliothek.gui.dock.perspective.PerspectiveDockable remove(int index)
PerspectiveDockable
which is stored at location index
.index
- the index of the item to removepublic boolean remove(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
remove
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public void replace(bibliothek.gui.dock.perspective.PerspectiveDockable oldDockable, bibliothek.gui.dock.perspective.PerspectiveDockable newDockable)
replace
in interface bibliothek.gui.dock.perspective.PerspectiveStation
public bibliothek.util.Path getPlaceholder()
getPlaceholder
in interface bibliothek.gui.dock.perspective.PerspectiveDockable
public bibliothek.gui.dock.perspective.PerspectiveStation getParent()
getParent
in interface bibliothek.gui.dock.perspective.PerspectiveDockable
public void setParent(bibliothek.gui.dock.perspective.PerspectiveStation parent)
setParent
in interface bibliothek.gui.dock.perspective.PerspectiveDockable