com.dhtmlx.connector
Class TreeGridDataItem

java.lang.Object
  extended by com.dhtmlx.connector.DataItem
      extended by com.dhtmlx.connector.GridDataItem
          extended by com.dhtmlx.connector.TreeGridDataItem

public class TreeGridDataItem
extends GridDataItem

The Class TreeGridDataItem.


Constructor Summary
TreeGridDataItem(java.util.HashMap<java.lang.String,java.lang.String> data, DataConfig config, int index)
          Instantiates a new tree grid data item.
 
Method Summary
 java.lang.String get_parent_id()
          Gets the parent id.
 int has_kids()
          Count of child items
 void set_image(java.lang.String image_path)
          Sets the image of the item
 void set_kids(int count)
          Sets the count of child items
 
Methods inherited from class com.dhtmlx.connector.GridDataItem
get_user_data, set_cell_attribute, set_cell_class, set_cell_style, set_row_attribute, set_row_color, set_row_style, set_user_data, set_userdata, to_xml_end, to_xml_start
 
Methods inherited from class com.dhtmlx.connector.DataItem
get_id, get_index, get_value, set_id, 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

TreeGridDataItem

public TreeGridDataItem(java.util.HashMap<java.lang.String,java.lang.String> data,
                        DataConfig config,
                        int index)
Instantiates a new tree grid 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

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

has_kids

public int has_kids()
Count of child items

Overrides:
has_kids in class DataItem
Returns:
the count of child items

set_kids

public void set_kids(int count)
Sets the count of child items

Overrides:
set_kids in class DataItem
Parameters:
count - the count of child items