bibliothek.gui.dock.station.toolbar.group
Class ExpandToolbarGroupActions<P>
java.lang.Object
bibliothek.gui.dock.station.toolbar.group.AbstractToolbarGroupActions<P,ExpandToolbarGroupActions.ExpandColumn>
bibliothek.gui.dock.station.toolbar.group.ExpandToolbarGroupActions<P>
- Type Parameters:
P
- the type of object that represent a Dockable
- All Implemented Interfaces:
- ColumnDockActionSource
public abstract class ExpandToolbarGroupActions<P>
- extends AbstractToolbarGroupActions<P,ExpandToolbarGroupActions.ExpandColumn>
This class uses the ExpandableToolbarItemStrategy
to find out whether the items of some columns
can be expanded, and if so this class generates an appropriate DockActionSource
containing actions
to expand or shrink all the items of one column.
- Author:
- Benjamin Sigg
Methods inherited from class bibliothek.gui.dock.station.toolbar.group.AbstractToolbarGroupActions |
addListener, getBoundaries, getColumn, getColumn, getColumnCount, getColumns, getModel, getOrientation, getSource, getSourceCount, getSourceLength, getSourceOffset, installListener, listeners, removeListener, setModel, uninstallListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpandToolbarGroupActions
public ExpandToolbarGroupActions(bibliothek.gui.DockController controller,
ToolbarGroupDockStation station)
- Creates a new set of actions.
- Parameters:
controller
- the controller in whose realm this object is usedstation
- th station which uses this set of actions
destroy
public void destroy()
createColumn
protected ExpandToolbarGroupActions.ExpandColumn createColumn(ToolbarColumn<P> column)
- Description copied from class:
AbstractToolbarGroupActions
- Creates a new, empty
AbstractToolbarGroupActions.Column
which will be filled with content later.
- Specified by:
createColumn
in class AbstractToolbarGroupActions<P,ExpandToolbarGroupActions.ExpandColumn>
- Parameters:
column
- the column that is represented by the new object
- Returns:
- the new column, must not be
null
getStrategy
public ExpandableToolbarItemStrategy getStrategy()
- Gets the strategy that is currently used to decide which actions are available for which
Dockable
s.
- Returns:
- the current strategy, can be
null
update
public void update(bibliothek.gui.Dockable item)
- Checks the state of the column in which
item
is and updates the actions.
- Parameters:
item
- the item whose column should be checked