|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
D
- the dockable class itselfP
- the wrapper used to describe a Dockable
@FrameworkOnly public interface ToolbarColumnModel<D,P>
The ToolbarColumnModel
provides a clearly defined way to access and monitor the columns of a
ToolbarGroupDockStation
. The model acts as facade for the real datastructures inside
ToolbarGroupDockStation
, which are usually not accessible.
The model does not offer any information that could not be retrieved through the methods of DockablePlaceholderToolbarGrid
,
but it offers an API to register observers and be notified about changes within the columns.
Clients should not implement this interface.
Method Summary | |
---|---|
void |
addListener(ToolbarColumnModelListener<D,P> listener)
Adds the observer listener to this model. |
ToolbarColumn<D,P> |
getColumn(D dockable)
Searches the column which contains dockable . |
ToolbarColumn<D,P> |
getColumn(int index)
Gets the index 'th column of this model. |
int |
getColumnCount()
Gets the total number of columns that are currently available. |
void |
removeListener(ToolbarColumnModelListener<D,P> listener)
Removes the observer listener from this model. |
Method Detail |
---|
int getColumnCount()
ToolbarColumn<D,P> getColumn(int index)
index
'th column of this model.
index
- the index of the column
null
IllegalArgumentException
- if index
is not within the boundariesToolbarColumn<D,P> getColumn(D dockable)
dockable
.
dockable
- the item to search
dockable
or null
if not foundvoid addListener(ToolbarColumnModelListener<D,P> listener)
listener
to this model.
listener
- the new observer, not null
void removeListener(ToolbarColumnModelListener<D,P> listener)
listener
from this model.
listener
- the observer to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |