bibliothek.gui.dock.station.stack
Class StackDockStationLayout

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.StackDockStationLayout
All Implemented Interfaces:
DockLayout

public class StackDockStationLayout
extends Object
implements DockLayout

A layout of a StackDockStation, stores the order of all Dockables on the station.

Author:
Benjamin Sigg

Constructor Summary
StackDockStationLayout(int selected, int[] children)
          Creates a new layout.
 
Method Summary
 int[] getChildren()
          Gets the order of the children.
 String getFactoryID()
          Gets the identifier of the factory which created this layout.
 int getSelected()
          Gets the name of the selected child.
 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

StackDockStationLayout

public StackDockStationLayout(int selected,
                              int[] children)
Creates a new layout.

Parameters:
selected - the name of the selected child
children - the order of the children. The entries of the array are the identifiers that a DockFactory gets in its method DockFactory.getLayout(bibliothek.gui.dock.DockElement, java.util.Map)
Method Detail

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

getChildren

public int[] getChildren()
Gets the order of the children.

Returns:
the order

getSelected

public int getSelected()
Gets the name of the selected child.

Returns:
the selected child