bibliothek.gui.dock.station.toolbar
Class DefaultToolbarContainerConverter

java.lang.Object
  extended by bibliothek.gui.dock.station.toolbar.DefaultToolbarContainerConverter
All Implemented Interfaces:
ToolbarContainerConverter

public class DefaultToolbarContainerConverter
extends Object
implements ToolbarContainerConverter

Default implementation of ToolbarContainerConverter. This converter supports all features necessary to read and write PlaceholderMaps.

Author:
Benjamin Sigg, Herve Guillaume

Constructor Summary
DefaultToolbarContainerConverter()
           
 
Method Summary
 bibliothek.gui.dock.station.support.PlaceholderMap getPlaceholders(ToolbarContainerDockStation station)
          Called by ToolbarContainerDockStation.getPlaceholders()
 bibliothek.gui.dock.station.support.PlaceholderMap getPlaceholders(ToolbarContainerDockStation station, Map<bibliothek.gui.Dockable,Integer> children)
          Called by ToolbarContainerDockStation.getPlaceholders(Map)
 void setPlaceholders(ToolbarContainerDockStation station, bibliothek.gui.dock.station.support.PlaceholderMap map)
          Called by ToolbarContainerDockStation.setPlaceholders(PlaceholderMap)
 void setPlaceholders(ToolbarContainerDockStation station, ToolbarContainerConverterCallback callback, bibliothek.gui.dock.station.support.PlaceholderMap map, Map<Integer,bibliothek.gui.Dockable> children)
          Called by ToolbarContainerDockStation.setPlaceholders(PlaceholderMap, Map)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultToolbarContainerConverter

public DefaultToolbarContainerConverter()
Method Detail

getPlaceholders

public bibliothek.gui.dock.station.support.PlaceholderMap getPlaceholders(ToolbarContainerDockStation station)
Description copied from interface: ToolbarContainerConverter
Called by ToolbarContainerDockStation.getPlaceholders()

Specified by:
getPlaceholders in interface ToolbarContainerConverter
Parameters:
station - the calling station
Returns:
the placeholders

getPlaceholders

public bibliothek.gui.dock.station.support.PlaceholderMap getPlaceholders(ToolbarContainerDockStation station,
                                                                          Map<bibliothek.gui.Dockable,Integer> children)
Description copied from interface: ToolbarContainerConverter
Called by ToolbarContainerDockStation.getPlaceholders(Map)

Specified by:
getPlaceholders in interface ToolbarContainerConverter
Parameters:
station - the calling station
children - identifiers for the children of the station
Returns:
the placeholders

setPlaceholders

public void setPlaceholders(ToolbarContainerDockStation station,
                            bibliothek.gui.dock.station.support.PlaceholderMap map)
Description copied from interface: ToolbarContainerConverter
Called by ToolbarContainerDockStation.setPlaceholders(PlaceholderMap)

Specified by:
setPlaceholders in interface ToolbarContainerConverter
Parameters:
station - the calling station
map - the placeholders to read

setPlaceholders

public void setPlaceholders(ToolbarContainerDockStation station,
                            ToolbarContainerConverterCallback callback,
                            bibliothek.gui.dock.station.support.PlaceholderMap map,
                            Map<Integer,bibliothek.gui.Dockable> children)
Description copied from interface: ToolbarContainerConverter
Called by ToolbarContainerDockStation.setPlaceholders(PlaceholderMap, Map)

Specified by:
setPlaceholders in interface ToolbarContainerConverter
Parameters:
station - the calling station
callback - offers methods to call private methods of station
map - the placeholders to read
children - the new children of station