protected class ExpandToolbarGroupActions.ExpandColumn extends AbstractToolbarGroupActions.Column
| Constructor and Description |
|---|
ExpandColumn(ToolbarColumn<Dockable,P> column) |
| Modifier and Type | Method and Description |
|---|---|
protected 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, initpublic ExpandColumn(ToolbarColumn<Dockable,P> column)
protected DockActionSource createSource()
AbstractToolbarGroupActions.ColumnDockActionSource 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.Columnnullprotected void inserted(int index,
P item)
AbstractToolbarGroupActions.Columninserted in class AbstractToolbarGroupActions.Columnindex - the index of the new itemitem - the item that was addedprotected void removed(int index,
P item)
AbstractToolbarGroupActions.Columnremoved in class AbstractToolbarGroupActions.Columnindex - the index of the removed itemitem - the item that was removedprotected void removed()
AbstractToolbarGroupActions.Columnremoved in class AbstractToolbarGroupActions.Columnpublic 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 childnullpublic boolean[] getEnabledStates()
ExpandedState whether it is enabled or not.true indicates that an ExpandedState
is enabled.Copyright © 2018. All rights reserved.