public class CToolbarGroupPerspective extends Object
ToolbarGroupDockPerspective
, offers features that are
usefull in the Common project only.DockStation
s. The CToolbarGroupPerspective
tries to keep its abstract representation of columns valid, if however two CToolbarGroupPerspective
s point
to the same ToolbarGroupDockPerspective
one perspective can modify the underlying data structure without
the other perspectice noticing the changes immediatelly.Modifier and Type | Class and Description |
---|---|
class |
CToolbarGroupPerspective.Column
Represents a single column of toolbars in a group of toolbars.
|
Constructor and Description |
---|
CToolbarGroupPerspective(ToolbarGroupDockPerspective delegate)
Creates a new perspective wrapping around
delegate . |
Modifier and Type | Method and Description |
---|---|
CToolbarGroupPerspective.Column |
column(int index)
Gets or creates the
CToolbarGroupPerspective.Column at index . |
boolean |
equals(Object obj) |
int |
getColumnCount()
Gets the total number of columns.
|
ToolbarGroupDockPerspective |
getDelegate()
Allows access to the internal representation of this perspective.
|
CToolbarPerspective |
getToolbar(int index)
Gets the toolbar at location
index . |
int |
getToolbarCount()
Gets the total number of toolbars in this group.
|
CToolbarGroupPerspective.Column |
insert(int index)
Creates a new, empty column.
|
CToolbarPerspective |
toolbar(int column,
int index)
Gets or creates a toolbar in column
column at location index . |
public CToolbarGroupPerspective(ToolbarGroupDockPerspective delegate)
delegate
.delegate
- the internal representation, not null
public ToolbarGroupDockPerspective getDelegate()
null
public int getToolbarCount()
ToolbarStrategy
.public CToolbarPerspective getToolbar(int index)
index
.index
- the location of the toolbarnull
if the child at index
has the wrong
type. A result of null
is only to be expected if the client modified the
ToolbarStrategy
.public int getColumnCount()
public CToolbarGroupPerspective.Column column(int index)
CToolbarGroupPerspective.Column
at index
. Note that a CToolbarGroupPerspective.Column
requires
at least one child, a new CToolbarGroupPerspective.Column
will not appear until one child has been added.index
- the index of an existing column, -1
or getColumnCount()
CToolbarGroupPerspective.Column
object every time
it is calledinsert(int)
,
CToolbarGroupPerspective.Column
public CToolbarGroupPerspective.Column insert(int index)
CToolbarGroupPerspective.Column
the
column will insert itself at index
. Creating a list of empty columns, and adding
children afterwards, will actually change the order of the columns to the order in which
the children were added.index
- the location where to insert the new columnCToolbarGroupPerspective.Column
public CToolbarPerspective toolbar(int column, int index)
column
at location index
.column
- the column in which to search or add the toolbarindex
- the location of the toolbarnull
if a child of this station has the wrong type