Search in sources :

Example 1 with CreationalPrototype

use of com.servoy.j2db.scripting.CreationalPrototype in project servoy-client by Servoy.

the class BasicFormController method destroy.

public void destroy() {
    SolutionScope solScope = application.getScriptEngine().getSolutionScope();
    // $NON-NLS-1$
    ((CreationalPrototype) solScope.get("forms", solScope)).removeFormPanel(this);
    if (scriptableForm != null) {
        scriptableForm.destroy();
    }
    scriptableForm = null;
    if (formScope != null) {
        formScope.destroy();
    }
    formScope = null;
    destroyed = true;
    isFormVisible = false;
}
Also used : CreationalPrototype(com.servoy.j2db.scripting.CreationalPrototype) SolutionScope(com.servoy.j2db.scripting.SolutionScope)

Aggregations

CreationalPrototype (com.servoy.j2db.scripting.CreationalPrototype)1 SolutionScope (com.servoy.j2db.scripting.SolutionScope)1