bibliothek.gui.dock.station.toolbar.group
Class ExpandToolbarGroupActions.ExpandColumn

java.lang.Object
  extended by bibliothek.gui.dock.station.toolbar.group.AbstractToolbarGroupActions.Column
      extended by bibliothek.gui.dock.station.toolbar.group.ExpandToolbarGroupActions.ExpandColumn
Enclosing class:
ExpandToolbarGroupActions<P>

protected class ExpandToolbarGroupActions.ExpandColumn
extends AbstractToolbarGroupActions.Column


Constructor Summary
ExpandToolbarGroupActions.ExpandColumn(ToolbarColumn<bibliothek.gui.Dockable,P> column)
           
 
Method Summary
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)
           
 
Methods inherited from class bibliothek.gui.dock.station.toolbar.group.AbstractToolbarGroupActions.Column
getColumn, getColumnBoundaries, getDockables, getItems, getSource, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandToolbarGroupActions.ExpandColumn

public ExpandToolbarGroupActions.ExpandColumn(ToolbarColumn<bibliothek.gui.Dockable,P> column)
Method Detail

createSource

protected bibliothek.gui.dock.action.DockActionSource createSource()
Description copied from class: AbstractToolbarGroupActions.Column
Creates a DockActionSource that will be stored in this AbstractToolbarGroupActions.Column. This method is called lazily, the first time when AbstractToolbarGroupActions.Column.getSource() is executed.

Specified by:
createSource in class AbstractToolbarGroupActions.Column
Returns:
the new source or null

inserted

protected void inserted(int index,
                        P item)
Description copied from class: AbstractToolbarGroupActions.Column
Called after an item was added to this column

Specified by:
inserted in class AbstractToolbarGroupActions.Column
Parameters:
index - the index of the new item
item - the item that was added

removed

protected void removed(int index,
                       P item)
Description copied from class: AbstractToolbarGroupActions.Column
Called after an item was removed from this column

Specified by:
removed in class AbstractToolbarGroupActions.Column
Parameters:
index - the index of the removed item
item - the item that was removed

removed

protected void removed()
Description copied from class: AbstractToolbarGroupActions.Column
Called if this column is no longer used, all resources should be released

Specified by:
removed in class AbstractToolbarGroupActions.Column

performAction

public void performAction(SimpleExpandAction.Action action)
Executes the action action, the exact behavior of this method depends also on the current state.

Parameters:
action - how to modify the state

setState

public void setState(ExpandedState state)

getState

public ExpandedState getState()
Gets the current ExpandedState of this column. The current state is always the state of the first child

Returns:
the current state, not null

getEnabledStates

public boolean[] getEnabledStates()
Gets an array telling for each ExpandedState whether it is enabled or not.

Returns:
an array, a value of true indicates that an ExpandedState is enabled.