utyTreeview Class Reference
[Javascript Widgets (utywidgets.js)]

Javascript treeview widget. More...

Inheritance diagram for utyTreeview:
utyWidget

List of all members.

Public Member Functions

function utyTreeview (id, onclick, ondblclick, ondispchange)
function currentNode ()
function click (node)
function dblclick (node)
function dispchange (node)
function setCurrentNode (node)
function expand (node)
function collapse (node)
function treeImgElement (node)
function firstChild (node)
function labelElement (node)
function parent (node)
function removeChildren (node)
function appendChildren (node, html)
function toString ()

Public Attributes

 onclick
 ondblclick
 ondispchange

Detailed Description

Javascript treeview widget.

See also:
uty_treeview_start, uty_treeview_end, etc

Constructor & Destructor Documentation

function utyTreeview (   id,
  onclick,
  ondblclick,
  ondispchange 
) [inline]

INTERNALE constructor


Member Function Documentation

function appendChildren (   node,
  html 
) [inline]

append treeview children html to node

Parameters:
node (domNode) the node to append children to
html (string) the treeview nodes html
function click (   node  )  [inline]

INTERNAL handle the click event

function collapse (   node  )  [inline]

collapse node

function currentNode (  )  [inline]
Returns:
the currently active node element (div domNode)
function dblclick (   node  )  [inline]

INTERNAL handle the dblclick event

function dispchange (   node  )  [inline]

INTERNAL handle the node expanded/collapsed event

function expand (   node  )  [inline]

expand node

function firstChild (   node  )  [inline]
Returns:
the INDEX of the first child div element that is a treeview node
Parameters:
node (domNode) the node to search first child for
Note:
return the index (not the element!)
function labelElement (   node  )  [inline]

INTERNAL return the html element containing the node displayed text

function parent (   node  )  [inline]
Returns:
the div element that is a the treeview parent of node
Parameters:
node (domNode) the node to search parent for
function removeChildren (   node  )  [inline]

INTERNAL remove all the html elements thet are treview child of node

function setCurrentNode (   node  )  [inline]

INTERNAL set the current node

function toString (  )  [inline]
Returns:
"utyTreeview"

Reimplemented from utyWidget.

function treeImgElement (   node  )  [inline]

INTERNAL return the img element representing the node join to the tree


Member Data Documentation

javascript expression executed when a node is clicked

javascript expression executed when a node is double clicked

javascript expression executed when a node is expanded/collapsed


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations

Copyright © 2010 Attilio Pavone - www.utillyty.eu