objToView(form);
}
//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("");
if ("Y".equals(form.getBootFlag())) {
// if bootFlag is Yes, set the fun path
funPathTB.setText(form.getFunPath());
// if bootFlag is Yes, set the fun operations
List operationsLists = ParaCache.getInstance().getByCatalogue("pri.Fun.operations");
Iterator it = operationsLists.iterator();
while (it.hasNext()) {
Para para = (Para) it.next();
Checkbox cb = (Checkbox) getFellow("checkbox_" + para.getParaName());
cb.setChecked(false);
StringTokenizer operList = new StringTokenizer(form.getOperations(), ":");
boolean checked = false;
while (operList.hasMoreTokens()) {
String token = operList.nextToken();
if (cb.getValue().equals(token)) {
checked = true;