D
- the dockable class itselfP
- the kind of object used to describe a Dockable
@FrameworkOnly
public interface ToolbarColumn<D,P>
ToolbarGroupDockStation
. This interface
is not intended for subclassing.Modifier and Type | Method and Description |
---|---|
void |
addListener(ToolbarColumnListener<D,P> listener)
Adds the new observer
listener to this column. |
int |
getColumnIndex()
Gets the location of this column in its parent
ToolbarColumnModel . |
D |
getDockable(int index)
Gets the
index 'th Dockable of this column. |
int |
getDockableCount()
Tells how many
Dockable s are shown in this column. |
P |
getItem(int index)
Gets a wrapper item that represents the
Dockable at index . |
int |
indexOf(bibliothek.gui.Dockable dockable)
Gets the index of
dockable . |
void |
removeListener(ToolbarColumnListener<D,P> listener)
Removes the observer
listener from this column. |
int getDockableCount()
Dockable
s are shown in this column.Dockable
s, at least 0
.D getDockable(int index)
index
'th Dockable
of this column.index
- the index of the Dockable
index
, never null
java.lang.IllegalArgumentException
- if index
is out of boundsint indexOf(bibliothek.gui.Dockable dockable)
dockable
.dockable
- the item to searchP getItem(int index)
Dockable
at index
.index
- the index of the itemindex
, never null
int getColumnIndex()
ToolbarColumnModel
.void addListener(ToolbarColumnListener<D,P> listener)
listener
to this column.listener
- the new observervoid removeListener(ToolbarColumnListener<D,P> listener)
listener
from this column.listener
- the listener to remove