public boolean validate() {
return true;
}
public Object viewToObj(Object obj) {
Service object = new Service();
if (obj != null) {
try {
BeanUtils.copyProperties(object, obj);
} catch (Exception iae) {
iae.printStackTrace();
}
}
object.setOperateBy(operateBy);
Combobox providerCB = (Combobox) getFellow("provider");
object.setProvider((Org) providerCB.getSelectedItem().getValue());
Textbox serviceNameTB = (Textbox) getFellow("serviceName");
Textbox serviceUrlTB = (Textbox) getFellow("serviceUrl");
Textbox parameterDescriptionTB = (Textbox) getFellow("parameterDescription");
Textbox serviceKeyTB = (Textbox) getFellow("serviceKey");
object.setServiceName(serviceNameTB.getText());
object.setServiceUrl(serviceUrlTB.getText());
object.setParameterDescription(parameterDescriptionTB.getText());
object.setServiceKey(serviceKeyTB.getText());
Combobox connectFrequencyCB = (Combobox) getFellow("connectFrequency");
object.setConnectFrequency(
connectFrequencyCB.getSelectedItem().getValue().toString());
Textbox serviceKeyPasswordTB = (Textbox) getFellow("serviceKeyPassword");
object.setServiceKeyPassword(serviceKeyPasswordTB.getText());
return object;
}