com.dhtmlx.connector
Class TreeDataItem

java.lang.Object
  extended by com.dhtmlx.connector.DataItem
      extended by com.dhtmlx.connector.TreeDataItem

public class TreeDataItem
extends DataItem

The Class TreeDataItem.


Constructor Summary
TreeDataItem(java.util.HashMap<java.lang.String,java.lang.String> data, DataConfig config, int index)
          Instantiates a new tree data item.
 
Method Summary
 boolean get_check_state()
          Gets the checkbox state
 java.lang.String get_parent_id()
          Gets the parent id.
 java.lang.String get_user_data(java.lang.String name)
           
 void set_check_state(boolean new_state)
          Sets the checkbox state
 void set_image(java.lang.String image_path)
          Sets the image of the item
 void set_image(java.lang.String folder_closed, java.lang.String folder_open, java.lang.String leaf)
          Sets the new image of the item
 void set_user_data(java.lang.String name, java.lang.String value)
           
 void to_xml_end(java.lang.StringBuffer out)
          Ending part of xml representation.
 void to_xml_start(java.lang.StringBuffer out)
          Starting part of xml representation
 
Methods inherited from class com.dhtmlx.connector.DataItem
get_id, get_index, get_value, has_kids, set_id, set_kids, set_userdata, set_value, skip, to_json, to_xml, xmlentities
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeDataItem

public TreeDataItem(java.util.HashMap<java.lang.String,java.lang.String> data,
                    DataConfig config,
                    int index)
Instantiates a new tree data item.

Parameters:
data - the data
config - the config
index - the index
Method Detail

get_parent_id

public java.lang.String get_parent_id()
Gets the parent id.

Returns:
the parent id

get_check_state

public boolean get_check_state()
Gets the checkbox state

Returns:
the checkbox state

set_check_state

public void set_check_state(boolean new_state)
Sets the checkbox state

Parameters:
new_state - the new checkbox state

set_image

public void set_image(java.lang.String image_path)
Sets the image of the item

Parameters:
image_path - the new image of the item

set_image

public void set_image(java.lang.String folder_closed,
                      java.lang.String folder_open,
                      java.lang.String leaf)
Sets the new image of the item

Parameters:
folder_closed - the "closed folder" image
folder_open - the "opened folder" image
leaf - the "leaf" image

set_user_data

public void set_user_data(java.lang.String name,
                          java.lang.String value)

get_user_data

public java.lang.String get_user_data(java.lang.String name)

to_xml_end

public void to_xml_end(java.lang.StringBuffer out)
Description copied from class: DataItem
Ending part of xml representation.

Overrides:
to_xml_end in class DataItem
Parameters:
out - the output buffer

to_xml_start

public void to_xml_start(java.lang.StringBuffer out)
Description copied from class: DataItem
Starting part of xml representation

Overrides:
to_xml_start in class DataItem
Parameters:
out - the output buffer