|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dhtmlx.connector.DataItem
com.dhtmlx.connector.TreeDataItem
public class TreeDataItem
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 |
---|
public TreeDataItem(java.util.HashMap<java.lang.String,java.lang.String> data, DataConfig config, int index)
data
- the dataconfig
- the configindex
- the indexMethod Detail |
---|
public java.lang.String get_parent_id()
public boolean get_check_state()
public void set_check_state(boolean new_state)
new_state
- the new checkbox statepublic void set_image(java.lang.String image_path)
image_path
- the new image of the itempublic void set_image(java.lang.String folder_closed, java.lang.String folder_open, java.lang.String leaf)
folder_closed
- the "closed folder" imagefolder_open
- the "opened folder" imageleaf
- the "leaf" imagepublic void set_user_data(java.lang.String name, java.lang.String value)
public java.lang.String get_user_data(java.lang.String name)
public void to_xml_end(java.lang.StringBuffer out)
DataItem
to_xml_end
in class DataItem
out
- the output bufferpublic void to_xml_start(java.lang.StringBuffer out)
DataItem
to_xml_start
in class DataItem
out
- the output buffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |