protected abstract class AbstractToolbarGroupActions.Column extends Object
ToolbarGroupDockStation.| Constructor and Description |
|---|
Column(ToolbarColumn<Dockable,P> column)
Creates a new column.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract DockActionSource |
createSource()
Creates a
DockActionSource that will be stored in this AbstractToolbarGroupActions.Column. |
ToolbarColumn<Dockable,P> |
getColumn()
Gets the column which is represented by this object
|
Rectangle |
getColumnBoundaries()
Gets the current boundaries of this column.
|
List<Dockable> |
getDockables()
Gets all the items of this column.
|
List<P> |
getItems()
Gets all the items of this column.
|
DockActionSource |
getSource()
Gets the
DockActionSource which is associated with this column. |
protected void |
init(ToolbarColumn<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<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<Dockable,P> column)
column - the column that is represented by this object, not nullpublic DockActionSource getSource()
DockActionSource which is associated with this column.nullpublic List<P> getItems()
public List<Dockable> getDockables()
public ToolbarColumn<Dockable,P> getColumn()
public Rectangle getColumnBoundaries()
ToolbarGroupDockStation, null if there
are no items in this columnprotected abstract DockActionSource createSource()
DockActionSource that will be stored in this AbstractToolbarGroupActions.Column. This method is called
lazily, the first time when getSource() is executed.nullprotected 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()
Copyright © 2018. All rights reserved.