com.dhtmlx.connector
Class ComboDataItem

java.lang.Object
  extended by com.dhtmlx.connector.DataItem
      extended by com.dhtmlx.connector.ComboDataItem

public class ComboDataItem
extends DataItem

The Class ComboDataItem. Class represents and option of the combobox


Field Summary
private  boolean selected
          The flag of selected option.
 
Fields inherited from class com.dhtmlx.connector.DataItem
config, data, index, skip
 
Constructor Summary
ComboDataItem(java.util.HashMap<java.lang.String,java.lang.String> data, DataConfig config, int index)
          Instantiates a new combo data item.
 
Method Summary
 void select()
          Mark option as selected
 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

selected

private boolean selected
The flag of selected option.

Constructor Detail

ComboDataItem

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

Parameters:
data - the hash data
config - the data config
index - the index of option
Method Detail

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

select

public void select()
Mark option as selected