bibliothek.gui.dock.station
Class DockStationDelegate

java.lang.Object
  extended by bibliothek.gui.dock.station.DockStationDelegate

public class DockStationDelegate
extends Object

A set of algorithms that are useful for DockStations. Rather then using a utility class with static methods, this class allows to override and modify the algorithms if necessary.

Author:
Benjamin Sigg

Constructor Summary
DockStationDelegate()
           
 
Method Summary
<T extends PlaceholderListItem<Dockable>>
void
combine(PlaceholderList.Item item, Combiner combiner, AsideRequest request)
          Can be called by DockStation.aside(AsideRequest) if request contains a location that points toward item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockStationDelegate

public DockStationDelegate()
Method Detail

combine

public <T extends PlaceholderListItem<Dockable>> void combine(PlaceholderList.Item item,
                                                              Combiner combiner,
                                                              AsideRequest request)
Can be called by DockStation.aside(AsideRequest) if request contains a location that points toward item. The method first tries to call DockStation.aside(AsideRequest) of the Dockable represented by item, and if that fails it tries to call Combiner.aside(AsideRequest).

Parameters:
item - the item which should contain the new location
combainer - the Combiner to ask if there is no DockStation to ask, not null
request - information about the location to create