bibliothek.gui.dock.station.split
Class SplitDockStationLayout

java.lang.Object
  extended by bibliothek.gui.dock.station.split.SplitDockStationLayout
All Implemented Interfaces:
DockLayout

public class SplitDockStationLayout
extends Object
implements DockLayout

A layout storing the contents of a SplitDockStation.

Author:
Benjamin Sigg

Nested Class Summary
static class SplitDockStationLayout.Entry
          An entry in a tree, either a node or a leaf.
static class SplitDockStationLayout.Leaf
          A leaf in a tree, describes one Dockable.
static class SplitDockStationLayout.Node
          A node in a tree.
 
Constructor Summary
SplitDockStationLayout(SplitDockStationLayout.Entry root, int fullscreen)
          Creates a new layout
 
Method Summary
 String getFactoryID()
          Gets the identifier of the factory which created this layout.
 int getFullscreen()
          Gets the id of the element which is in fullscreen-mode.
 SplitDockStationLayout.Entry getRoot()
          Gets the root of the tree.
 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

SplitDockStationLayout

public SplitDockStationLayout(SplitDockStationLayout.Entry root,
                              int fullscreen)
Creates a new layout

Parameters:
root - the root of the tree, can be null
fullscreen - the id of the element which is in fullscreen-mode
Method Detail

getRoot

public SplitDockStationLayout.Entry getRoot()
Gets the root of the tree.

Returns:
the root, can be null

getFullscreen

public int getFullscreen()
Gets the id of the element which is in fullscreen-mode.

Returns:
the id of the element, -1 means that no element is set to fullscreen

getFactoryID

public String getFactoryID()
Description copied from interface: DockLayout
Gets the identifier of the factory which created this layout.

Specified by:
getFactoryID in interface DockLayout
Returns:
the identifier of the factory

setFactoryID

public void setFactoryID(String id)
Description copied from interface: DockLayout
Sets the identifier of the factory which created this layout.

Specified by:
setFactoryID in interface DockLayout
Parameters:
id - the identifier of the factory