bibliothek.gui.dock.station.toolbar.group
Interface ToolbarColumnListener<P>

Type Parameters:
P - the wrapper class used to describe dockables

public interface ToolbarColumnListener<P>

This observer can be added to a ToolbarColumn and receives events if the content of the column changes.

Author:
Benjamin Sigg

Method Summary
 void inserted(ToolbarColumn<P> column, P item, bibliothek.gui.Dockable dockable, int index)
          Called if an item was added to column at index index.
 void removed(ToolbarColumn<P> column, P item, bibliothek.gui.Dockable dockable, int index)
          Called if an item was removed from column.
 

Method Detail

inserted

void inserted(ToolbarColumn<P> column,
              P item,
              bibliothek.gui.Dockable dockable,
              int index)
Called if an item was added to column at index index.

Parameters:
column - the source of the event
item - the item that was added
dockable - the dockable that was added
index - the index of the item that was added

removed

void removed(ToolbarColumn<P> column,
             P item,
             bibliothek.gui.Dockable dockable,
             int index)
Called if an item was removed from column.

Parameters:
column - the source of the event
item - the item that was removed
dockable - the dockable that was removed
index - the index of the item that was removed