public class CStackPerspective extends StackDockPerspective implements ShrinkablePerspectiveStation
Constructor and Description |
---|
CStackPerspective()
Creates a new station.
|
CStackPerspective(CDockablePerspective[] children,
CDockablePerspective selection)
Creates a new station.
|
CStackPerspective(PerspectiveDockable[] children,
PerspectiveDockable selection)
Creates a new station.
|
Modifier and Type | Method and Description |
---|---|
void |
add(CDockablePerspective dockable)
Adds
dockable at the end of the list of dockables. |
void |
insert(int index,
CDockablePerspective dockable)
Inserts
dockable at location index . |
void |
remove(CDockablePerspective dockable)
Removes the element
dockable from this station. |
PerspectiveDockable |
shrink()
Checks the number of children this perspective has.
|
add, addPlaceholder, addPlaceholder, asDockable, asStation, canRead, getDockable, getDockableCount, getDockableProperty, getFactoryID, getItemCount, getParent, getPlaceholder, getPlaceholders, getSelection, indexOf, indexOf, insert, insertPlaceholder, insertPlaceholder, read, remove, remove, replace, setParent, setPlaceholders, setSelection, toMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDockable, getDockableCount, getDockableProperty, getPlaceholders, remove, replace, setPlaceholders
asDockable, asStation, getFactoryID
public CStackPerspective()
public CStackPerspective(PerspectiveDockable[] children, PerspectiveDockable selection)
children
- the children of this perspectiveselection
- the selected child, can be null
public CStackPerspective(CDockablePerspective[] children, CDockablePerspective selection)
children
- the children of this stationselection
- the selected child, can be null
public PerspectiveDockable shrink()
ShrinkablePerspectiveStation
shrink
in interface ShrinkablePerspectiveStation
this
, which is either this
, the only
child of this
, or null
public void insert(int index, CDockablePerspective dockable)
dockable
at location index
.index
- the location where to insert dockable
dockable
- the element to insert, not null
public void add(CDockablePerspective dockable)
dockable
at the end of the list of dockables.dockable
- the element to add at the endpublic void remove(CDockablePerspective dockable)
dockable
from this station.dockable
- the element to remove