//ck
public void objToView(Object obj) {
FunForm form = (FunForm) obj;
Combobox serviceCB = (Combobox) getFellow("service");
Textbox funNameTB = (Textbox) getFellow("FunName");
Combobox bootFlagCB = (Combobox) getFellow("BootFlag");
Combobox activeFlag = (Combobox) getFellow("ActiveFlag");
Iterator ServiceCBIt = serviceCB.getItems().iterator();
while (ServiceCBIt.hasNext()) {
Comboitem item = (Comboitem) ServiceCBIt.next();
if (((Service) item.getValue()).getServiceId().toString().equals(form.getServiceId().toString())) {
serviceCB.setSelectedItem(item);
form.setService((Service) item.getValue());
}
}
funNameTB.setText(form.getFunName());
Iterator bootFlagIt = bootFlagCB.getItems().iterator();
while (bootFlagIt.hasNext()) {
Comboitem item = (Comboitem) bootFlagIt.next();
if (item.getValue().toString().equals(form.getBootFlag())) {
bootFlagCB.setSelectedItem(item);
}
}
Iterator activeFlagIt = activeFlag.getItems().iterator();
while (activeFlagIt.hasNext()) {
Comboitem item = (Comboitem) activeFlagIt.next();
if (item.getValue().toString().equals(form.getActiveFlag())) {
activeFlag.setSelectedItem(item);
}
}
Textbox funPathTB = (Textbox) getFellow("FunPathTB");
funPathTB.setText("");