use of com.servoy.j2db.FormExecutionState in project servoy-client by Servoy.
the class WebForm method formMethodExecution.
/*
* @see com.servoy.j2db.ISupportFormExecutionState#formMethodExecution()
*/
@Override
public FormExecutionState formMethodExecution() {
FormController fc = getController();
IBasicFormManager formManager = fc.getBasicFormManager();
if (formManager != null) {
IBasicMainContainer currentContainer = formManager.getCurrentContainer();
MainPage formPage = getMainPage();
if (currentContainer != formPage) {
FormExecutionState formExecutionState = new FormExecutionState();
formExecutionState.mainContainer = currentContainer;
formExecutionState.mainContainerName = currentContainer.getContainerName();
((WebFormManager) formManager).setCurrentContainer(formPage, getContainerName());
return formExecutionState;
}
}
return null;
}
Aggregations