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

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

public interface ToolbarColumnListener<D,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<D,P> column, P item, D dockable, int index)
          Called if an item was added to column at index index.
 void removed(ToolbarColumn<D,P> column, P item, D dockable, int index)
          Called if an item was removed from column.
 

Method Detail

inserted

void inserted(ToolbarColumn<D,P> column,
              P item,
              D 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<D,P> column,
             P item,
             D 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