public class CToolbarPerspective extends Object
ToolbarDockPerspective
, represents a single toolbar.Constructor and Description |
---|
CToolbarPerspective(ToolbarDockPerspective delegate)
Creates a new perspective wrapping around
delegate . |
Modifier and Type | Method and Description |
---|---|
void |
add(bibliothek.gui.dock.common.perspective.CDockablePerspective item)
Adds
item at the end of this toolbar. |
void |
add(int index,
bibliothek.gui.dock.common.perspective.CDockablePerspective item)
Inserts
item at location index in this toolbar. |
void |
add(int index,
String id)
Creates and adds a new
SingleCDockablePerspective at location index
in this toolbar. |
void |
add(String id)
Creates and adds a new
SingleCDockablePerspective at the end of this toolbar. |
ToolbarDockPerspective |
getDelegate()
Allows access to the internal representation of this perspective.
|
bibliothek.gui.dock.common.perspective.CDockablePerspective |
getItem(int index)
Gets the item at location
index . |
int |
getItemCount()
Gets the number of children of this toolbar.
|
void |
remove(bibliothek.gui.dock.common.perspective.CDockablePerspective item)
Removes
item from this toolbar |
void |
remove(int index)
Removes the
index 'th child of this toolbar. |
public CToolbarPerspective(ToolbarDockPerspective delegate)
delegate
.delegate
- the internal representation, not null
public ToolbarDockPerspective getDelegate()
null
public int getItemCount()
public bibliothek.gui.dock.common.perspective.CDockablePerspective getItem(int index)
index
.index
- the location of the itemnull
if the item has the wrong type, the item
usually is of type SingleCDockablePerspective
public void add(String id)
SingleCDockablePerspective
at the end of this toolbar.id
- the unique identifier of the itempublic void add(int index, String id)
SingleCDockablePerspective
at location index
in this toolbar.index
- the location of the new itemid
- the unique identifier of the itempublic void add(bibliothek.gui.dock.common.perspective.CDockablePerspective item)
item
at the end of this toolbar.item
- the item to add, not null
public void add(int index, bibliothek.gui.dock.common.perspective.CDockablePerspective item)
item
at location index
in this toolbar.index
- the location of the new itemitem
- the new itempublic void remove(int index)
index
'th child of this toolbar.index
- the location of the item to removepublic void remove(bibliothek.gui.dock.common.perspective.CDockablePerspective item)
item
from this toolbaritem
- the item to remove