Search in sources :

Example 1 with FormExecutionState

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;
}
Also used : FormController(com.servoy.j2db.FormController) IBasicMainContainer(com.servoy.j2db.IBasicMainContainer) IBasicFormManager(com.servoy.j2db.IBasicFormManager) ISupportFormExecutionState(com.servoy.j2db.ISupportFormExecutionState) FormExecutionState(com.servoy.j2db.FormExecutionState)

Aggregations

FormController (com.servoy.j2db.FormController)1 FormExecutionState (com.servoy.j2db.FormExecutionState)1 IBasicFormManager (com.servoy.j2db.IBasicFormManager)1 IBasicMainContainer (com.servoy.j2db.IBasicMainContainer)1 ISupportFormExecutionState (com.servoy.j2db.ISupportFormExecutionState)1