bibliothek.gui.dock
Interface DockFactory<D extends DockElement,L>

Type Parameters:
D - the type of element which can be written and read by this factory
L - the type of object that stores the contents of a D
All Superinterfaces:
DockConverter<D,L>
All Known Implementing Classes:
DefaultDockableFactory, FlapDockStationFactory, RegisteringDockFactory, ScreenDockStationFactory, SecureFlapDockStationFactory, SecureScreenDockStationFactory, SecureSplitDockStationFactory, SecureStackDockStationFactory, SplitDockStationFactory, StackDockStationFactory

public interface DockFactory<D extends DockElement,L>
extends DockConverter<D,L>

A DockConverter which can not only store and load the contents of an element, but also create a new DockElement with the content.

Author:
Benjamin Sigg

Method Summary
 D layout(L layout)
          Creates a new DockElement and changes the layout of the new element such that is matches layout.
 D layout(L layout, Map<Integer,Dockable> children)
          Creates a new DockElement and changes the layout of the new element such that is matches layout.
 
Methods inherited from interface bibliothek.gui.dock.layout.DockConverter
getID, getLayout, read, read, setLayout, setLayout, write, write
 

Method Detail

layout

D layout(L layout,
         Map<Integer,Dockable> children)
Creates a new DockElement and changes the layout of the new element such that is matches layout.

Parameters:
layout - the new layout
children - some children, note that the map may not contain all elements which were present when the layout was created.
Returns:
a new element or null if layout can't be used

layout

D layout(L layout)
Creates a new DockElement and changes the layout of the new element such that is matches layout. This method should not add any children to the element.

Parameters:
layout - the new layout
Returns:
a new element or null if layout can't be used