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(CDockablePerspective item)
Adds
item at the end of this toolbar. |
void |
add(int index,
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.
|
CDockablePerspective |
getItem(int index)
Gets the item at location
index. |
int |
getItemCount()
Gets the number of children of this toolbar.
|
void |
remove(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 nullpublic ToolbarDockPerspective getDelegate()
nullpublic int getItemCount()
public CDockablePerspective getItem(int index)
index.index - the location of the itemnull if the item has the wrong type, the item
usually is of type SingleCDockablePerspectivepublic 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(CDockablePerspective item)
item at the end of this toolbar.item - the item to add, not nullpublic void add(int index,
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(CDockablePerspective item)
item from this toolbaritem - the item to removeCopyright © 2018. All rights reserved.