com.dhtmlx.connector
Class GridDataItem

java.lang.Object
  extended by com.dhtmlx.connector.DataItem
      extended by com.dhtmlx.connector.GridDataItem
Direct Known Subclasses:
TreeGridDataItem

public class GridDataItem
extends DataItem

The Class GridDataItem.


Constructor Summary
GridDataItem(java.util.HashMap<java.lang.String,java.lang.String> data, DataConfig config, int index)
          Instantiates a new grid data item.
 
Method Summary
 java.lang.String get_user_data(java.lang.String name)
           
 void set_cell_attribute(java.lang.String name, java.lang.String attr, java.lang.String value)
          Sets attribute of the cell
 void set_cell_class(java.lang.String name, java.lang.String value)
          Sets css class for the cell
 void set_cell_style(java.lang.String name, java.lang.String value)
          Sets the style of the cell
 void set_row_attribute(java.lang.String name, java.lang.String value)
          Sets attribute of row
 void set_row_color(java.lang.String color)
          Sets the color of the row
 void set_row_style(java.lang.String style)
          Sets the style of the row
 void set_user_data(java.lang.String name, java.lang.String value)
           
 void set_userdata(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_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

GridDataItem

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

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

set_row_color

public void set_row_color(java.lang.String color)
Sets the color of the row

Parameters:
color - the new color

set_row_style

public void set_row_style(java.lang.String style)
Sets the style of the row

Parameters:
style - the new style

set_cell_style

public void set_cell_style(java.lang.String name,
                           java.lang.String value)
Sets the style of the cell

Parameters:
name - the name
value - the value

set_cell_attribute

public void set_cell_attribute(java.lang.String name,
                               java.lang.String attr,
                               java.lang.String value)
Sets attribute of the cell

Parameters:
name - the name of column
attr - the attribute name
value - the value

set_row_attribute

public void set_row_attribute(java.lang.String name,
                              java.lang.String value)
Sets attribute of row

Parameters:
name - the name of attribute
value - the value

set_cell_class

public void set_cell_class(java.lang.String name,
                           java.lang.String value)
Sets css class for the cell

Parameters:
name - the name of column
value - the value

set_user_data

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

set_userdata

public void set_userdata(java.lang.String name,
                         java.lang.String value)
Overrides:
set_userdata in class DataItem

get_user_data

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

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

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