bibliothek.gui.dock.layout
Class DockLayout<L>

java.lang.Object
  extended by bibliothek.gui.dock.layout.DockLayout<L>
Type Parameters:
L - the kind of data stored for in this layout

public class DockLayout<L>
extends Object

A DockLayout describes the contents of one DockElement. It is an intermediate format between a DockElement and the persistent representation for example a xml-file. DockLayouts wrap around the data that is created and stored by DockFactorys.

Author:
Benjamin Sigg

Constructor Summary
DockLayout(String factory, L data)
          Creates a new layout.
 
Method Summary
 L getData()
          Gets the data that is stored in the layout.
 String getFactoryID()
          Gets the identifier of the factory which created this layout.
 void setData(L data)
          Sets the data that is stored in the layout.
 void setFactoryID(String id)
          Sets the identifier of the factory which created this layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockLayout

public DockLayout(String factory,
                  L data)
Creates a new layout.

Parameters:
factory - the factory that created the layout, might be null
data - the data that is stored in this layout, might be null
Method Detail

setFactoryID

public void setFactoryID(String id)
Sets the identifier of the factory which created this layout.

Parameters:
id - the identifier of the factory

getFactoryID

public String getFactoryID()
Gets the identifier of the factory which created this layout.

Returns:
the identifier of the factory

setData

public void setData(L data)
Sets the data that is stored in the layout.

Parameters:
data - the data, can be null

getData

public L getData()
Gets the data that is stored in the layout.

Returns:
the data, can be null