int index = (Integer) compIndex;
if(allFieldsType[index]==FormFactory.combobox){
FormObject form = (FormObject) rawFormData.get(fieldRef);
Object value = ((JComboBox) allFields[index]).getSelectedItem();
form.setSelectedItem((String)value);
}else if(allFieldsType[index]==FormFactory.list){
FormObject form = (FormObject) rawFormData.get(fieldRef);
int[] values = ((JList) allFields[index]).getSelectedIndices();
form.setTopIndex(values);
}else if(allFieldsType[index]==FormFactory.radiobutton){
FormObject form = (FormObject) rawFormData.get(fieldRef);
JRadioButton but = ((JRadioButton) allFields[index]);
if(but.isSelected()){
form.setChildOnState(FormUtils.removeStateToCheck(but.getName(), true));
}
}else if(allFieldsType[index]==FormFactory.checkboxbutton){
FormObject form = (FormObject) rawFormData.get(fieldRef);
JCheckBox but = ((JCheckBox) allFields[index]);
if(but.isSelected()){
form.setCurrentState(FormUtils.removeStateToCheck(but.getName(), true));
}
}else if(allFieldsType[index]==FormFactory.singlelinepassword || allFieldsType[index]==FormFactory.multilinepassword){
FormObject form = (FormObject) rawFormData.get(fieldRef);
String value = ((JTextComponent) allFields[index]).getText();
form.setTextValue(value);
}else if(allFieldsType[index]==FormFactory.singlelinetext || allFieldsType[index]==FormFactory.multilinetext){
//these fields have readonlytexticons(JButtons) associated sometimes so allow for.
FormObject form = (FormObject) rawFormData.get(fieldRef);
if(allFields[index] instanceof JTextComponent){
String value = ((JTextComponent) allFields[index]).getText();
form.setTextValue(value);
}else {
//JButton read only ignore
}
}else if(allFieldsType[index]==FormFactory.pushbutton || allFieldsType[index]==FormFactory.annotation
|| allFieldsType[index]==FormFactory.signature){