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;
}
Aggregations