Search in sources :

Example 21 with MainPage

use of com.servoy.j2db.server.headlessclient.MainPage in project servoy-client by Servoy.

the class WebSplitPane method setRuntimeDividerLocation.

public void setRuntimeDividerLocation(double locationPos) {
    if (locationPos < 0)
        return;
    setDividerLocationInternal(locationPos);
    IRequestTarget requestTarget = RequestCycle.get().getRequestTarget();
    MainPage page = (MainPage) findPage();
    if (requestTarget instanceof AjaxRequestTarget && page != null) {
        ((PageContributor) page.getPageContributor()).addSplitPaneToUpdatedDivider(this);
        if (// $NON-NLS-1$
        page.getController() != null && Utils.getAsBoolean(page.getController().getApplication().getRuntimeProperties().get("enableAnchors"))) {
            // $NON-NLS-1$
            ((AjaxRequestTarget) requestTarget).appendJavascript("layoutEntirePage();");
        }
        // $NON-NLS-1$
        ((AjaxRequestTarget) requestTarget).appendJavascript("Servoy.Resize.onWindowResize();");
    } else
        sizeChanged = true;
}
Also used : AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) PageContributor(com.servoy.j2db.server.headlessclient.PageContributor) IRequestTarget(org.apache.wicket.IRequestTarget) MainPage(com.servoy.j2db.server.headlessclient.MainPage)

Aggregations

MainPage (com.servoy.j2db.server.headlessclient.MainPage)21 FormManager (com.servoy.j2db.FormManager)13 IMainContainer (com.servoy.j2db.IMainContainer)13 Component (org.apache.wicket.Component)5 IComponent (com.servoy.j2db.ui.IComponent)4 IFieldComponent (com.servoy.j2db.ui.IFieldComponent)4 ISupportOnRenderCallback (com.servoy.j2db.ui.ISupportOnRenderCallback)4 IRuntimeComponent (com.servoy.j2db.ui.runtime.IRuntimeComponent)4 IDisplayData (com.servoy.j2db.dataprocessing.IDisplayData)3 WrapperContainer (com.servoy.j2db.server.headlessclient.WrapperContainer)3 IProviderStylePropertyChanges (com.servoy.j2db.ui.IProviderStylePropertyChanges)3 ListItem (org.apache.wicket.markup.html.list.ListItem)3 BaseComponent (com.servoy.j2db.persistence.BaseComponent)2 GraphicalComponent (com.servoy.j2db.persistence.GraphicalComponent)2 IScriptable (com.servoy.j2db.scripting.IScriptable)2 IScriptableProvider (com.servoy.j2db.scripting.IScriptableProvider)2 ILabel (com.servoy.j2db.ui.ILabel)2 IPortalComponent (com.servoy.j2db.ui.IPortalComponent)2 ISupportOnRender (com.servoy.j2db.ui.ISupportOnRender)2 AbstractRuntimeBaseComponent (com.servoy.j2db.ui.scripting.AbstractRuntimeBaseComponent)2