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.


Field Summary
protected  java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> cell_attrs
          The cell attributes.
protected  java.util.HashMap<java.lang.String,java.lang.String> row_attrs
          The row attributes.
 
Fields inherited from class com.dhtmlx.connector.DataItem
config, data, index, skip
 
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
 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 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, 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

row_attrs

protected java.util.HashMap<java.lang.String,java.lang.String> row_attrs
The row attributes.


cell_attrs

protected java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> cell_attrs
The cell attributes.

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

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