D - the dockable class itselfP - the wrapper used to describe a Dockable@FrameworkOnly public interface ToolbarColumnModel<D,P>
ToolbarColumnModel provides a clearly defined way to access and monitor the columns of a
ToolbarGroupDockStation. The model acts as facade for the real data structures inside
ToolbarGroupDockStation, which are usually not accessible.DockablePlaceholderToolbarGrid,
but it offers an API to register observers and be notified about changes within the columns.| Modifier and Type | Method and Description |
|---|---|
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. |
int getColumnCount()
ToolbarColumn<D,P> getColumn(int index)
index'th column of this model.index - the index of the columnnullIllegalArgumentException - if index is not within the boundariesToolbarColumn<D,P> getColumn(D dockable)
dockable.dockable - the item to searchdockable or null if not foundvoid addListener(ToolbarColumnModelListener<D,P> listener)
listener to this model.listener - the new observer, not nullvoid removeListener(ToolbarColumnModelListener<D,P> listener)
listener from this model.listener - the observer to removeCopyright © 2018. All rights reserved.