it.eng.spagobi.qbe.tree
Class DTree

java.lang.Object
  extended by it.eng.spagobi.qbe.tree.DTree
All Implemented Interfaces:
IQbeTree

public class DTree
extends java.lang.Object
implements IQbeTree

The Class DTree.

Author:
Andrea Gioia (andrea.gioia@eng.it)

Field Summary
static java.lang.String DEFAULT_NAME
          The Constant DEFAULT_NAME.
 
Constructor Summary
DTree()
          Instantiates a new d tree.
DTree(java.lang.String treeName)
          Instantiates a new d tree.
 
Method Summary
 void addNode(java.lang.String id, java.lang.String pid, java.lang.String nname, java.lang.String url, java.lang.String title, java.lang.String target, java.lang.String icon, java.lang.String iconOpen, java.lang.String open, java.lang.String onclick, java.lang.String checkName, java.lang.String checkValue, java.lang.String checked)
          Adds the node.
protected  void appendLineToScript(java.lang.String line)
          Append line to script.
protected  void clearScript()
          Clear script.
 void createTree()
          Creates the tree.
 void createTree(java.lang.String treeName)
          Creates the tree.
protected  java.lang.String getFooter()
          Gets the footer.
protected  java.lang.String getHeader()
          Gets the header.
protected  java.lang.String getName()
          Gets the name.
 java.lang.String getTreeConstructorScript()
          Gets the tree constructor script.
protected  void setName(java.lang.String name)
          Sets the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final java.lang.String DEFAULT_NAME
The Constant DEFAULT_NAME.

See Also:
Constant Field Values
Constructor Detail

DTree

public DTree()
Instantiates a new d tree.


DTree

public DTree(java.lang.String treeName)
Instantiates a new d tree.

Parameters:
treeName - the tree name
Method Detail

createTree

public void createTree()
Description copied from interface: IQbeTree
Creates the tree.

Specified by:
createTree in interface IQbeTree

createTree

public void createTree(java.lang.String treeName)
Description copied from interface: IQbeTree
Creates the tree.

Specified by:
createTree in interface IQbeTree
Parameters:
treeName - the tree name

addNode

public void addNode(java.lang.String id,
                    java.lang.String pid,
                    java.lang.String nname,
                    java.lang.String url,
                    java.lang.String title,
                    java.lang.String target,
                    java.lang.String icon,
                    java.lang.String iconOpen,
                    java.lang.String open,
                    java.lang.String onclick,
                    java.lang.String checkName,
                    java.lang.String checkValue,
                    java.lang.String checked)
Description copied from interface: IQbeTree
Adds the node.

Specified by:
addNode in interface IQbeTree
Parameters:
id - the id
pid - the pid
nname - the nname
url - the url
title - the title
target - the target
icon - the icon
iconOpen - the icon open
open - the open
onclick - the onclick
checkName - the check name
checkValue - the check value
checked - the checked

getHeader

protected java.lang.String getHeader()
Gets the header.

Returns:
the header

getFooter

protected java.lang.String getFooter()
Gets the footer.

Returns:
the footer

getName

protected java.lang.String getName()
Gets the name.

Returns:
the name

setName

protected void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

clearScript

protected void clearScript()
Clear script.


appendLineToScript

protected void appendLineToScript(java.lang.String line)
Append line to script.

Parameters:
line - the line

getTreeConstructorScript

public java.lang.String getTreeConstructorScript()
Description copied from interface: IQbeTree
Gets the tree constructor script.

Specified by:
getTreeConstructorScript in interface IQbeTree
Returns:
the tree constructor script