AreaEdit

Class dTree

Object
   |
   +--dTree

class dTree

Defined in Linker/dTree/dtree.js


Constructor Summary
dTree (objName, baseDir)
            Tree object
 
Method Summary
 void add(id, pid, name, url, title, target, icon, iconOpen, open)
           Adds a new node to the node array
 Object addNode(pNode)
           Creates the HTML tree structure in a string.
 void clear_s()
           Clears selection.
 void clearCookie()
           [Cookie] Clears a cookie
 void closeAll()
           close all nodes
 void closeAllChildren(node)
           Closes all children of a node
 void closeLevel(node)
           Closes all nodes on the same level as certain node
 Object getCookie(cookieName)
           [Cookie] Gets a value from a cookie
 Object getNodeElement( n )
           retrieves the element for a node
 Object getSelected()
           Returns the selected node
 Object indent(node, nodeId)
           Adds the empty and line icons and returns HTML string
 Object isOpen(id)
           [Cookie] Checks if a node id is in a cookie
 Object node(node, nodeId)
           Creates the node icon, url and text and returns the HTML string.
 void nodeStatus(status, id, bottom)
           Change the status of a node(open or closed)
 void o(id)
           Toggle Open or close
 void oAll(status)
           Open or close all nodes
 void openAll()
           Open all nodes
 void openTo(nId, bSelect, bFirst)
           Opens the tree to a specific node
 void s(id)
           Highlights the selected node
 void setCookie(cookieName, cookieValue, expires, path, domain, secure)
           [Cookie] Sets value in a cookie
 void setCS(node)
           Checks if a node has any children and if it is the last sibling
 void setCS_All()
           setCS_All()
 Object toString()
           returns HTML string representation of tree
 void updateCookie()
           [Cookie] Returns ids of open nodes as a string

Constructor Detail

dTree

dTree(objName, baseDir)

Method Detail

add

void add(id, pid, name, url, title, target, icon, iconOpen, open)

addNode

Object addNode(pNode)

clear_s

void clear_s()

clearCookie

void clearCookie()

closeAll

void closeAll()

closeAllChildren

void closeAllChildren(node)

closeLevel

void closeLevel(node)

getCookie

Object getCookie(cookieName)

getNodeElement

Object getNodeElement( n )

getSelected

Object getSelected()

indent

Object indent(node, nodeId)

isOpen

Object isOpen(id)

node

Object node(node, nodeId)

nodeStatus

void nodeStatus(status, id, bottom)

o

void o(id)

oAll

void oAll(status)

openAll

void openAll()

openTo

void openTo(nId, bSelect, bFirst)

s

void s(id)

setCookie

void setCookie(cookieName, cookieValue, expires, path, domain, secure)

setCS

void setCS(node)

setCS_All

void setCS_All()

toString

Object toString()

updateCookie

void updateCookie()

AreaEdit

Documentation generated by JSDoc on Mon Jun 13 20:27:40 2005