Search in sources :

Example 6 with IMainContainer

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

the class ScrollResponseHeaderContainer method setColumnThatRequestsFocus.

/**
 * Requests focus for the cell in the web cell view corresponding to the selected record and to the given column identifier component.
 *
 * @param columnIdentifierComponent the Component that identifies a column for java script.
 */
public void setColumnThatRequestsFocus(final Component columnIdentifierComponent) {
    focusRequestingColIdentComponent = null;
    if (currentData == null)
        return;
    Component cell = getCellToFocus(columnIdentifierComponent);
    if (cell != null) {
        IMainContainer currentContainer = ((FormManager) application.getFormManager()).getCurrentContainer();
        if (currentContainer instanceof MainPage) {
            ((MainPage) currentContainer).componentToFocus(cell);
        } else {
            // $NON-NLS-1$
            Debug.trace("focus couldnt be set on component " + cell);
        }
    } else {
        focusRequestingColIdentComponent = columnIdentifierComponent;
    }
}
Also used : FormManager(com.servoy.j2db.FormManager) IMainContainer(com.servoy.j2db.IMainContainer) IComponent(com.servoy.j2db.ui.IComponent) AbstractRuntimeBaseComponent(com.servoy.j2db.ui.scripting.AbstractRuntimeBaseComponent) BaseComponent(com.servoy.j2db.persistence.BaseComponent) GraphicalComponent(com.servoy.j2db.persistence.GraphicalComponent) IFieldComponent(com.servoy.j2db.ui.IFieldComponent) Component(org.apache.wicket.Component) IPortalComponent(com.servoy.j2db.ui.IPortalComponent) IRuntimeComponent(com.servoy.j2db.ui.runtime.IRuntimeComponent) MainPage(com.servoy.j2db.server.headlessclient.MainPage)

Example 7 with IMainContainer

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

the class WebDataRadioChoice method fireOnRender.

public void fireOnRender(boolean force) {
    if (scriptable != null) {
        boolean isFocused = false;
        IMainContainer currentContainer = ((FormManager) application.getFormManager()).getCurrentContainer();
        if (currentContainer instanceof MainPage) {
            isFocused = this.equals(((MainPage) currentContainer).getFocusedComponent());
        }
        if (force)
            scriptable.getRenderEventExecutor().setRenderStateChanged();
        scriptable.getRenderEventExecutor().fireOnRender(isFocused);
    }
}
Also used : FormManager(com.servoy.j2db.FormManager) IMainContainer(com.servoy.j2db.IMainContainer) MainPage(com.servoy.j2db.server.headlessclient.MainPage)

Example 8 with IMainContainer

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

the class WebDataField method fireOnRender.

public void fireOnRender(boolean force) {
    if (!isIgnoreOnRender && scriptable != null) {
        boolean isFocused = false;
        IMainContainer currentContainer = ((FormManager) application.getFormManager()).getCurrentContainer();
        if (currentContainer instanceof MainPage) {
            isFocused = this.equals(((MainPage) currentContainer).getFocusedComponent());
        }
        if (force)
            scriptable.getRenderEventExecutor().setRenderStateChanged();
        scriptable.getRenderEventExecutor().fireOnRender(isFocused);
    }
}
Also used : FormManager(com.servoy.j2db.FormManager) IMainContainer(com.servoy.j2db.IMainContainer) MainPage(com.servoy.j2db.server.headlessclient.MainPage)

Example 9 with IMainContainer

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

the class WebDataHtmlArea method fireOnRender.

public void fireOnRender(boolean force) {
    if (scriptable != null) {
        boolean isFocused = false;
        IMainContainer currentContainer = ((FormManager) application.getFormManager()).getCurrentContainer();
        if (currentContainer instanceof MainPage) {
            isFocused = this.equals(((MainPage) currentContainer).getFocusedComponent());
        }
        if (force)
            scriptable.getRenderEventExecutor().setRenderStateChanged();
        scriptable.getRenderEventExecutor().fireOnRender(isFocused);
    }
}
Also used : FormManager(com.servoy.j2db.FormManager) IMainContainer(com.servoy.j2db.IMainContainer) MainPage(com.servoy.j2db.server.headlessclient.MainPage)

Example 10 with IMainContainer

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

the class WebDataListBox method fireOnRender.

public void fireOnRender(boolean force) {
    if (scriptable != null) {
        boolean isFocused = false;
        IMainContainer currentContainer = ((FormManager) application.getFormManager()).getCurrentContainer();
        if (currentContainer instanceof MainPage) {
            isFocused = this.equals(((MainPage) currentContainer).getFocusedComponent());
        }
        if (force)
            scriptable.getRenderEventExecutor().setRenderStateChanged();
        scriptable.getRenderEventExecutor().fireOnRender(isFocused);
    }
}
Also used : FormManager(com.servoy.j2db.FormManager) IMainContainer(com.servoy.j2db.IMainContainer) MainPage(com.servoy.j2db.server.headlessclient.MainPage)

Aggregations

IMainContainer (com.servoy.j2db.IMainContainer)25 FormManager (com.servoy.j2db.FormManager)20 MainPage (com.servoy.j2db.server.headlessclient.MainPage)13 FormController (com.servoy.j2db.FormController)3 FormWindow (com.servoy.j2db.FormWindow)3 FormDialog (com.servoy.j2db.gui.FormDialog)3 ISmartRuntimeWindow (com.servoy.j2db.plugins.ISmartRuntimeWindow)3 JSWindow (com.servoy.j2db.scripting.JSWindow)3 RuntimeWindow (com.servoy.j2db.scripting.RuntimeWindow)3 Window (java.awt.Window)3 IBasicFormManager (com.servoy.j2db.IBasicFormManager)2 IComponent (com.servoy.j2db.ui.IComponent)2 IFieldComponent (com.servoy.j2db.ui.IFieldComponent)2 ISupportOnRenderCallback (com.servoy.j2db.ui.ISupportOnRenderCallback)2 Container (java.awt.Container)2 Component (org.apache.wicket.Component)2 IApplication (com.servoy.j2db.IApplication)1 IBasicMainContainer (com.servoy.j2db.IBasicMainContainer)1 IFoundSetInternal (com.servoy.j2db.dataprocessing.IFoundSetInternal)1 BaseComponent (com.servoy.j2db.persistence.BaseComponent)1