bibliothek.gui.dock.layout
Class PredefinedLayout

java.lang.Object
  extended by bibliothek.gui.dock.layout.PredefinedLayout

public class PredefinedLayout
extends Object

A layout that stores another layout and maybe also an identifier for a preloaded element. This class is used by the PredefinedDockSituation to wrap the data that is created by DockFactorys.

Author:
Benjamin Sigg

Constructor Summary
PredefinedLayout(String predefined, DockLayoutInfo delegate)
          Creates a new layout.
 
Method Summary
 DockLayoutInfo getDelegate()
          Gets the layout which stores the contents of the predefined element.
 String getPredefined()
          Gets the id of the element which was predefined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredefinedLayout

public PredefinedLayout(String predefined,
                        DockLayoutInfo delegate)
Creates a new layout.

Parameters:
predefined - the element which was preloaded, not null
delegate - the delegate which stores the content
Method Detail

getPredefined

public String getPredefined()
Gets the id of the element which was predefined.

Returns:
the identifier

getDelegate

public DockLayoutInfo getDelegate()
Gets the layout which stores the contents of the predefined element.

Returns:
the content