bibliothek.gui.dock.station.split
Class SplitDockStationLayout

java.lang.Object
  extended by bibliothek.gui.dock.station.split.SplitDockStationLayout

public class SplitDockStationLayout
extends java.lang.Object

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
SplitDockStationLayout(SplitDockStationLayout.Entry root, int fullscreen, boolean hasFullscreenAction)
          Creates a new layout
 
Method Summary
 int getFullscreen()
          Gets the id of the element which is in fullscreen-mode.
 SplitDockStationLayout.Entry getRoot()
          Gets the root of the tree.
 boolean hasFullscreenAction()
          Tells whether the SplitDockStation did show a fullscreen-action or not.
 
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

SplitDockStationLayout

public SplitDockStationLayout(SplitDockStationLayout.Entry root,
                              int fullscreen,
                              boolean hasFullscreenAction)
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
hasFullscreenAction - whether the SplitDockStation did show a fullscreen-action
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

hasFullscreenAction

public boolean hasFullscreenAction()
Tells whether the SplitDockStation did show a fullscreen-action or not. This property is only applied if a new SplitDockStation is created during loading.

Returns:
whether to show an action or not