bibliothek.gui.dock.station.toolbar.layout
Interface PlaceholderToolbarGridConverter<D,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>

Type Parameters:
D - the type that represents a dockable
P - the type that is actually stored in the grid

public interface PlaceholderToolbarGridConverter<D,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>

A converter used by the PlaceholderToolbarGrid when reading a PlaceholderMap.

Author:
Benjamin Sigg

Method Summary
 void added(P item)
          Called after the item item has been added to the grid.
 P convert(D dockable, bibliothek.gui.dock.station.support.ConvertedPlaceholderListItem item)
          Converts the Dockable dockable into an item that can be shown in the view.
 

Method Detail

convert

P convert(D dockable,
          bibliothek.gui.dock.station.support.ConvertedPlaceholderListItem item)
Converts the Dockable dockable into an item that can be shown in the view. This method is also responsible for actually adding the item to the view.

Parameters:
dockable - the dockable to convert
item - the item that is converted, may contain additional information
Returns:
the item that is shown in the view

added

void added(P item)
Called after the item item has been added to the grid.

Parameters:
item - the item that was added