|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.toolbar.perspective.CToolbarGroupPerspective
public class CToolbarGroupPerspective
A wrapper around a ToolbarGroupDockPerspective
, offers features that are
usefull in the Common project only.
A group of toolbars is organized similar to a table: there are columns of toolbars, and each
column has its own size.
Important note: "columns" is an abstract idea, they do not exist as 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.
Nested Class Summary | |
---|---|
class |
CToolbarGroupPerspective.Column
Represents a single column of toolbars in a group of toolbars. |
Constructor Summary | |
---|---|
CToolbarGroupPerspective(ToolbarGroupDockPerspective delegate)
Creates a new perspective wrapping around delegate . |
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CToolbarGroupPerspective(ToolbarGroupDockPerspective delegate)
delegate
.
delegate
- the internal representation, not null
Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public ToolbarGroupDockPerspective getDelegate()
null
public int getToolbarCount()
ToolbarStrategy
.
public CToolbarPerspective getToolbar(int index)
index
.
index
- the location of the toolbar
null
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 column
CToolbarGroupPerspective.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 toolbar
null
if a child of this station has the wrong type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |