protected class ExpandToolbarGroupActions.ExpandColumn extends AbstractToolbarGroupActions.Column
Constructor and Description |
---|
ExpandColumn(ToolbarColumn<bibliothek.gui.Dockable,P> column) |
Modifier and Type | Method and Description |
---|---|
protected bibliothek.gui.dock.action.DockActionSource |
createSource()
Creates a
DockActionSource that will be stored in this AbstractToolbarGroupActions.Column . |
boolean[] |
getEnabledStates()
Gets an array telling for each
ExpandedState whether it is enabled or not. |
ExpandedState |
getState()
Gets the current
ExpandedState of this column. |
protected void |
inserted(int index,
P item)
Called after an item was added to this column
|
void |
performAction(SimpleExpandAction.Action action)
Executes the action
action , the exact behavior of this method depends
also on the current state . |
protected void |
removed()
Called if this column is no longer used, all resources should be released
|
protected void |
removed(int index,
P item)
Called after an item was removed from this column
|
void |
setState(ExpandedState state) |
getColumn, getColumnBoundaries, getDockables, getItems, getSource, init
public ExpandColumn(ToolbarColumn<bibliothek.gui.Dockable,P> column)
protected bibliothek.gui.dock.action.DockActionSource createSource()
AbstractToolbarGroupActions.Column
DockActionSource
that will be stored in this AbstractToolbarGroupActions.Column
. This method is called
lazily, the first time when AbstractToolbarGroupActions.Column.getSource()
is executed.createSource
in class AbstractToolbarGroupActions.Column
null
protected void inserted(int index, P item)
AbstractToolbarGroupActions.Column
inserted
in class AbstractToolbarGroupActions.Column
index
- the index of the new itemitem
- the item that was addedprotected void removed(int index, P item)
AbstractToolbarGroupActions.Column
removed
in class AbstractToolbarGroupActions.Column
index
- the index of the removed itemitem
- the item that was removedprotected void removed()
AbstractToolbarGroupActions.Column
removed
in class AbstractToolbarGroupActions.Column
public void performAction(SimpleExpandAction.Action action)
action
, the exact behavior of this method depends
also on the current state
.action
- how to modify the statepublic void setState(ExpandedState state)
public ExpandedState getState()
ExpandedState
of this column. The current state is always the
state of the first childnull
public boolean[] getEnabledStates()
ExpandedState
whether it is enabled or not.true
indicates that an ExpandedState
is enabled.