org.olat.core.gui.control.generic.ajax.tree
Class AjaxTreeNode

java.lang.Object
  extended by org.json.JSONObject
      extended by org.olat.core.gui.control.generic.ajax.tree.AjaxTreeNode

public class AjaxTreeNode
extends org.json.JSONObject

Description:

The AjaxTreeNode is a wrapper object for tree nodes used in the dynamic tree model. There are various configuration flags that can be set for this node. Use the treeNode.put(key,value) method and the static Strings to set those flags.

The actual node from your data model is not in this node, the only reference to the real data object is the node identifyer. This AjaxTreeNode is only used for displaying purposes.

Initial Date: 04.07.2007

Author:
Florian Gnaegi, frentix GmbH, http://www.frentix.com

Field Summary
static java.lang.String CONF_ALLOWDRAG
           
static java.lang.String CONF_ALLOWDROP
           
static java.lang.String CONF_CLS
           
static java.lang.String CONF_DISABLED
           
static java.lang.String CONF_EXPANDED
           
static java.lang.String CONF_HREF
           
static java.lang.String CONF_HREFTARGET
           
static java.lang.String CONF_ICON
           
static java.lang.String CONF_ICON_CSS_CLASS
           
static java.lang.String CONF_ID
           
static java.lang.String CONF_IS_TYPE_LEAF
           
static java.lang.String CONF_LEAF
           
static java.lang.String CONF_QTIP
           
static java.lang.String CONF_QTIPCFG
           
static java.lang.String CONF_SINGLECLICKEXPAND
           
static java.lang.String CONF_TEXT
           
static java.lang.String CONF_UIPROVIDER
           
 
Fields inherited from class org.json.JSONObject
NULL
 
Constructor Summary
AjaxTreeNode(java.lang.String id, java.lang.String text)
          Constructor
 
Method Summary
 
Methods inherited from class org.json.JSONObject
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, isNull, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOpt, quote, remove, sortedKeys, toJSONArray, toString, toString, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONF_ALLOWDRAG

public static java.lang.String CONF_ALLOWDRAG

CONF_ALLOWDROP

public static java.lang.String CONF_ALLOWDROP

CONF_CLS

public static java.lang.String CONF_CLS

CONF_HREF

public static java.lang.String CONF_HREF

CONF_HREFTARGET

public static java.lang.String CONF_HREFTARGET

CONF_ICON

public static java.lang.String CONF_ICON

CONF_ICON_CSS_CLASS

public static java.lang.String CONF_ICON_CSS_CLASS

CONF_ID

public static java.lang.String CONF_ID

CONF_LEAF

public static java.lang.String CONF_LEAF

CONF_QTIP

public static java.lang.String CONF_QTIP

CONF_QTIPCFG

public static java.lang.String CONF_QTIPCFG

CONF_SINGLECLICKEXPAND

public static java.lang.String CONF_SINGLECLICKEXPAND

CONF_TEXT

public static java.lang.String CONF_TEXT

CONF_UIPROVIDER

public static java.lang.String CONF_UIPROVIDER

CONF_DISABLED

public static java.lang.String CONF_DISABLED

CONF_EXPANDED

public static java.lang.String CONF_EXPANDED

CONF_IS_TYPE_LEAF

public static java.lang.String CONF_IS_TYPE_LEAF
Constructor Detail

AjaxTreeNode

public AjaxTreeNode(java.lang.String id,
                    java.lang.String text)
             throws org.json.JSONException
Constructor

Parameters:
id - The ID of this tree node. Must be unique within the entire tree
attributes - Node specific attributes. Use this for your proprietary values
text - The text lable of the node
Throws:
org.json.JSONException