bibliothek.gui.dock.common
Interface MultipleCDockableFactory<F extends MultipleCDockable,L extends MultipleCDockableLayout>

All Known Implementing Classes:
EmptyMultipleCDockableFactory

public interface MultipleCDockableFactory<F extends MultipleCDockable,L extends MultipleCDockableLayout>

A factory that can create and store MultipleCDockables. This factory converts a MultipleCDockable in a MultipleCDockableLayout and then writes the layout in various forms (like xml).

Author:
Benjamin Sigg

Method Summary
 L create()
          Creates a new, empty layout.
 F read(L layout)
          Creates a MultipleCDockable that gets its layout from layout.
 L write(F dockable)
          Collects all the properties of dockable and writes them into a new MultipleCDockableLayout.
 

Method Detail

write

L write(F dockable)
Collects all the properties of dockable and writes them into a new MultipleCDockableLayout.

Parameters:
dockable - the element whose properties should be collected
Returns:
the layout that has been written

read

F read(L layout)
Creates a MultipleCDockable that gets its layout from layout.

Parameters:
layout - the set of properties that can be used to create the new CDockable.
Returns:
the new dockable or null if the layout can't be read

create

L create()
Creates a new, empty layout. The contents of the layout will be set using one of the read-methods of MultipleCDockableLayout.

Returns:
the new empty layout