|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
P - the wrapper used to describe a Dockable@FrameworkOnly public interface ToolbarColumnModel<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<P> listener)
Adds the observer listener to this model. |
ToolbarColumn<P> |
getColumn(bibliothek.gui.Dockable dockable)
Searches the column which contains dockable. |
ToolbarColumn<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<P> listener)
Removes the observer listener from this model. |
| Method Detail |
|---|
int getColumnCount()
ToolbarColumn<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<P> getColumn(bibliothek.gui.Dockable dockable)
dockable.
dockable - the item to search
dockable or null if not foundvoid addListener(ToolbarColumnModelListener<P> listener)
listener to this model.
listener - the new observer, not nullvoid removeListener(ToolbarColumnModelListener<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 | |||||||||