bibliothek.gui.dock.station.stack
Class StackDockStationLayout

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.StackDockStationLayout

public class StackDockStationLayout
extends Object

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.
 int getSelected()
          Gets the name of the selected child.
 
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 DockConverter.getLayout(bibliothek.gui.dock.DockElement, java.util.Map)
Method Detail

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