Search in sources :

Example 1 with WebFormController

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;
}
Also used : WebFormController(com.servoy.j2db.server.ngclient.component.WebFormController) Form(com.servoy.j2db.persistence.Form) FlattenedForm(com.servoy.j2db.persistence.FlattenedForm)

Aggregations

FlattenedForm (com.servoy.j2db.persistence.FlattenedForm)1 Form (com.servoy.j2db.persistence.Form)1 WebFormController (com.servoy.j2db.server.ngclient.component.WebFormController)1