bibliothek.gui.dock.station.split
Class SplitDockStationLayout.Leaf

java.lang.Object
  extended by bibliothek.gui.dock.station.split.SplitDockStationLayout.Entry
      extended by bibliothek.gui.dock.station.split.SplitDockStationLayout.Leaf
Enclosing class:
SplitDockStationLayout

public static class SplitDockStationLayout.Leaf
extends SplitDockStationLayout.Entry

A leaf in a tree, describes one Dockable.

Author:
Benjamin Sigg

Constructor Summary
SplitDockStationLayout.Leaf(int id, Path[] placeholders, PlaceholderMap placeholderMap, long nodeId)
          Creates a new leaf
 
Method Summary
 SplitDockStationLayout.Leaf asLeaf()
          Returns this as leaf or null.
 int getId()
          Gets the id of a Dockable.
 boolean isVisible()
          Whether this node or leaf is visible to the user.
 
Methods inherited from class bibliothek.gui.dock.station.split.SplitDockStationLayout.Entry
asNode, createPathProperty, getNodeId, getParent, getPlaceholderMap, getPlaceholders, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitDockStationLayout.Leaf

public SplitDockStationLayout.Leaf(int id,
                                   Path[] placeholders,
                                   PlaceholderMap placeholderMap,
                                   long nodeId)
Creates a new leaf

Parameters:
id - the id of a Dockable or -1
placeholders - placeholders associated with this leaf
placeholderMap - placeholder information of a child DockStation
nodeId - the unique identifier of this node
Method Detail

getId

public int getId()
Gets the id of a Dockable.

Returns:
the id

asLeaf

public SplitDockStationLayout.Leaf asLeaf()
Description copied from class: SplitDockStationLayout.Entry
Returns this as leaf or null.

Overrides:
asLeaf in class SplitDockStationLayout.Entry
Returns:
this or null

isVisible

public boolean isVisible()
Description copied from class: SplitDockStationLayout.Entry
Whether this node or leaf is visible to the user.

Specified by:
isVisible in class SplitDockStationLayout.Entry
Returns:
true if this represents some graphical element or has a visible child