use of com.servoy.j2db.server.ngclient.component.WebFormController in project servoy-client by Servoy.
the class NGFormManager method leaseFormPanel.
@Override
public IWebFormController leaseFormPanel(String formName) {
if (formName == null)
return null;
String name = formName;
IWebFormController fp = createdFormControllers.get(name);
if (fp == null) {
Form f = possibleForms.get(formName);
if (f == null)
return null;
try {
// $NON-NLS-1$
application.blockGUII18NMessage("servoy.formManager.loadingForm", formName);
f = application.getFlattenedSolution().getFlattenedForm(f, false);
fp = new WebFormController((INGApplication) application, f, name);
createdFormControllers.put(fp.getName(), fp);
fp.init();
updateLeaseHistory(fp);
fp.setView(fp.getView());
fp.executeOnLoadMethod();
} finally {
application.releaseGUI();
}
} else {
addAsLastInLeaseHistory(fp);
}
return fp;
}
Aggregations