bibliothek.gui.dock.station.split
Class DefaultSplitNodeFactory

java.lang.Object
  extended by bibliothek.gui.dock.station.split.DefaultSplitNodeFactory
All Implemented Interfaces:
SplitNodeFactory

public class DefaultSplitNodeFactory
extends Object
implements SplitNodeFactory

This implementation of SplitNodeFactory creates the standard SplitNodes.

Author:
Benjamin Sigg

Constructor Summary
DefaultSplitNodeFactory()
           
 
Method Summary
 Leaf createLeaf(SplitDockAccess access, long id)
          Creates a new leaf.
 Node createNode(SplitDockAccess access, long id)
          Creates a new node.
 Placeholder createPlaceholder(SplitDockAccess access, long id)
          Creates a new placeholder.
 Root createRoot(SplitDockAccess access, long id)
          Creates a new root.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSplitNodeFactory

public DefaultSplitNodeFactory()
Method Detail

createLeaf

public Leaf createLeaf(SplitDockAccess access,
                       long id)
Description copied from interface: SplitNodeFactory
Creates a new leaf.

Specified by:
createLeaf in interface SplitNodeFactory
Parameters:
access - the access to the private functions of the owning SplitDockStation
id - the unique id of this leaf
Returns:
the new leaf, must not be null

createNode

public Node createNode(SplitDockAccess access,
                       long id)
Description copied from interface: SplitNodeFactory
Creates a new node.

Specified by:
createNode in interface SplitNodeFactory
Parameters:
access - the access to the private functions of the owning SplitDockStation
id - the unique id of this node
Returns:
the new node, must not be null

createPlaceholder

public Placeholder createPlaceholder(SplitDockAccess access,
                                     long id)
Description copied from interface: SplitNodeFactory
Creates a new placeholder.

Specified by:
createPlaceholder in interface SplitNodeFactory
Parameters:
access - the access to the private functions of the owning SplitDockStation
id - the unique id of this placeholder
Returns:
the new placeholder, must not be null

createRoot

public Root createRoot(SplitDockAccess access,
                       long id)
Description copied from interface: SplitNodeFactory
Creates a new root.

Specified by:
createRoot in interface SplitNodeFactory
Parameters:
access - the access to the private functions of the owning SplitDockStation
id - the unique id of this root
Returns:
the new root, must not be null