protected abstract class AbstractToolbarGroupActions.Column extends Object
ToolbarGroupDockStation
.Constructor and Description |
---|
Column(ToolbarColumn<bibliothek.gui.Dockable,P> column)
Creates a new column.
|
Modifier and Type | Method and Description |
---|---|
protected abstract bibliothek.gui.dock.action.DockActionSource |
createSource()
Creates a
DockActionSource that will be stored in this AbstractToolbarGroupActions.Column . |
ToolbarColumn<bibliothek.gui.Dockable,P> |
getColumn()
Gets the column which is represented by this object
|
Rectangle |
getColumnBoundaries()
Gets the current boundaries of this column.
|
List<bibliothek.gui.Dockable> |
getDockables()
Gets all the items of this column.
|
List<P> |
getItems()
Gets all the items of this column.
|
bibliothek.gui.dock.action.DockActionSource |
getSource()
Gets the
DockActionSource which is associated with this column. |
protected void |
init(ToolbarColumn<bibliothek.gui.Dockable,P> column)
Initializes all fields of this object
|
protected abstract void |
inserted(int index,
P item)
Called after an item was added to this column
|
protected abstract void |
removed()
Called if this column is no longer used, all resources should be released
|
protected abstract void |
removed(int index,
P item)
Called after an item was removed from this column
|
public Column(ToolbarColumn<bibliothek.gui.Dockable,P> column)
column
- the column that is represented by this object. Subclasses can
set this argument to null
, but have to call init(ToolbarColumn)
later.protected void init(ToolbarColumn<bibliothek.gui.Dockable,P> column)
column
- the column that is represented by this object, not null
public bibliothek.gui.dock.action.DockActionSource getSource()
DockActionSource
which is associated with this column.null
public List<P> getItems()
public List<bibliothek.gui.Dockable> getDockables()
public ToolbarColumn<bibliothek.gui.Dockable,P> getColumn()
public Rectangle getColumnBoundaries()
ToolbarGroupDockStation
, null
if there
are no items in this columnprotected abstract bibliothek.gui.dock.action.DockActionSource createSource()
DockActionSource
that will be stored in this AbstractToolbarGroupActions.Column
. This method is called
lazily, the first time when getSource()
is executed.null
protected abstract void inserted(int index, P item)
index
- the index of the new itemitem
- the item that was addedprotected abstract void removed(int index, P item)
index
- the index of the removed itemitem
- the item that was removedprotected abstract void removed()