bibliothek.gui.dock.station.toolbar.group
Class ExpandToolbarGroupActions<P>

java.lang.Object
  extended by bibliothek.gui.dock.station.toolbar.group.AbstractToolbarGroupActions<P,ExpandToolbarGroupActions.ExpandColumn>
      extended by 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

Nested Class Summary
protected  class ExpandToolbarGroupActions.ExpandColumn
           
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.station.toolbar.group.AbstractToolbarGroupActions
AbstractToolbarGroupActions.Column
 
Constructor Summary
ExpandToolbarGroupActions(bibliothek.gui.DockController controller, ToolbarGroupDockStation station)
          Creates a new set of actions.
 
Method Summary
protected  ExpandToolbarGroupActions.ExpandColumn createColumn(ToolbarColumn<bibliothek.gui.Dockable,P> column)
          Creates a new, empty AbstractToolbarGroupActions.Column which will be filled with content later.
 void destroy()
           
 ExpandableToolbarItemStrategy getStrategy()
          Gets the strategy that is currently used to decide which actions are available for which Dockables.
 void update(bibliothek.gui.Dockable item)
          Checks the state of the column in which item is and updates the actions.
 
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
 

Constructor Detail

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 used
station - th station which uses this set of actions
Method Detail

destroy

public void destroy()

createColumn

protected ExpandToolbarGroupActions.ExpandColumn createColumn(ToolbarColumn<bibliothek.gui.Dockable,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 Dockables.

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