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.


Field Summary
private  int kids
          The count of kids
 
Fields inherited from class com.dhtmlx.connector.GridDataItem
cell_attrs, row_attrs
 
Fields inherited from class com.dhtmlx.connector.DataItem
config, data, index, skip
 
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
set_cell_attribute, set_cell_class, set_cell_style, set_row_attribute, set_row_color, set_row_style, 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_xml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kids

private int kids
The count of kids

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

Returns:
the count of child items

set_kids

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

Parameters:
count - the count of child items