Examples of initScript()


Examples of org.openfaces.util.ScriptBuilder.initScript()

    protected InitScript renderInitScript(FacesContext context, ScrollButton scrollButton) throws IOException {
        ScriptBuilder buf = new ScriptBuilder();
        JSONObject stylingParams = getStylingParamsObj(context, scrollButton);

        buf.initScript(context, scrollButton, "O$.ScrollButton._init",
                scrollButton.getParent().getClientId(context),
                scrollButton.getScrollDirection().toString(),
                stylingParams
        );
        return new InitScript(buf.toString(), new String[]{
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.initScript()

        rolloverCancelButtonStyle = Styles.mergeClassNames(cancelButtonStyle, rolloverCancelButtonStyle);

        ScriptBuilder sb = new ScriptBuilder();
        String event = Rendering.getEventWithOnPrefix(context, confirmation, "o:confirmation");

        sb.initScript(context, confirmation, "O$.Confirmation._init",
                invokerId,
                event,
                confirmation.getDefaultButton(),
                confirmation.getAlignToInvoker(),
                new Object[]{
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.initScript()

    private void renderInitScript(FacesContext context, UIComponent component) throws IOException {
        TwoListSelection tls = (TwoListSelection) component;

        ScriptBuilder sb = new ScriptBuilder();
        sb.initScript(context, tls, "O$.TwoListSelection._init",
                Rendering.getEventsParam(tls, "onadd", "onremove", "onchange"),
                tls.isAllowAddRemoveAll(),
                tls.getReorderingAllowed(),
                tls.isDisabled(),
                Rendering.getRolloverClass(context, tls));
View Full Code Here

Examples of org.openfaces.util.ScriptBuilder.initScript()

        String focusedClass = Styles.getCSSClass(context, tabbedPane,
                tabbedPane.getFocusedStyle(), StyleGroup.selectedStyleGroup(1), tabbedPane.getFocusedClass(), null);

        ScriptBuilder sb = new ScriptBuilder();
        String onselectionchange = tabbedPane.getOnselectionchange();
        sb.initScript(context, tabbedPane, "O$.TabbedPane._init",
                Rendering.getRolloverClass(context, tabbedPane),
                containerClass,
                rolloverContainerClass,
                borderClass,
                loadingMode,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.