Examples of initScript()


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

        writer.startElement("div", hintLabel);
        String clientId = component.getClientId(context);
        writer.writeAttribute("id", clientId + "::innerscripts", null);
        ScriptBuilder sb = new ScriptBuilder();
        sb.initScript(context, hintLabel, "O$.HintLabel._init",
                hintLabel.getHintTimeout(),
                hintClass,
                Rendering.getRolloverClass(context, hintLabel),
                hint != null);
View Full Code Here

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

        String onchange = tabSet.getOnchange();

        String defaultDisabledClass = DEFAULT_CLASS_PREFIX + "disabled";
             ScriptBuilder sb = new ScriptBuilder();
        sb.initScript(context, tabSet, "O$.TabSet._init",
                getTabIds(context, tabSet, tabs),
                selectedIndex,
                placement,
                new String[]{
                        tabClass,
View Full Code Here

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

    protected void encodeScriptsAndStyles(FacesContext context, PopupLayer component) throws IOException {
        super.encodeScriptsAndStyles(context, component);

        AbstractWindow win = (AbstractWindow) component;
        ScriptBuilder sb = new ScriptBuilder();
        sb.initScript(context, win, "O$.Window._init",
                win.isResizable(),
                win.isDraggableByContent(),
                win.getMinWidth(),
                win.getMinHeight());
        Rendering.renderInitScript(context, sb, getWindowJs(context));
View Full Code Here

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

            List<SubPanel> allItems
    ) throws IOException {
        LoadingMode loadingMode = layeredPane.getLoadingMode();

        ScriptBuilder sb = new ScriptBuilder();
        sb.initScript(context, layeredPane, "O$.LayeredPane._init",
                Rendering.getRolloverClass(context, layeredPane),
                containerClass,
                loadingMode,
                allItems.size(),
                layeredPane.getSelectedIndex());
View Full Code Here

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

        String modalLayerClass = popup.isModal() ? Styles.getCSSClass(context,
                popup, popup.getModalLayerStyle(),
                getDefaultModalLayerClass(),
                popup.getModalLayerClass()) : null;

        sb.initScript(context, popup, "O$.PopupLayer._init",
                popup.getLeft(),
                popup.getTop(),
                width,
                height,
                Rendering.getRolloverClass(context, popup),
View Full Code Here

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

                foldingPanel.getRolloverTogglableCaptionStyle(), StyleGroup.rolloverStyleGroup(),
                foldingPanel.getRolloverTogglableCaptionClass(),
                DEFAULT_CAPTION_TOGGLABLE_ROLLOVER_CLASS);

        ScriptBuilder sb = new ScriptBuilder();
        sb.initScript(context, foldingPanel, "O$.FoldingPanel._init",
                foldingPanel.isExpanded(),
                foldingPanel.getFoldingDirection(),
                Rendering.getRolloverClass(context, foldingPanel),
                loadingMode,
                foldingPanel.isFocusable(),
View Full Code Here

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

        chart.setEntityIndex(-1);
        ChartView chartView = chart.getChartView();
        if (chart.getChartSelection() != null ||
                chartView.getActionListener() != null ||
                chartView.getActionListeners().length > 0) {
            buf.initScript(context, chart, "O$.Chart._init");
        }

        encodeChartSelection(context, chart);
        encodeChartMenuSupport(context, chart, dynamicImage, buf);
        Rendering.renderInitScript(context, buf, Resources.utilJsURL(context),
View Full Code Here

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

        if (Environment.isMozillaFF2(context)) { //fix bug with FF2 and Facelets 1.2 context  //todo add isFacelets() filter
            initScript.append("O$('").append(clientId).append("').style.visibility = 'hidden';\n");
            initScript.append("O$.addLoadEvent( function() {\n");
        }

        initScript.initScript(context, sidePanel, "O$._initSidePanel",
                sidePanel.getAlignment(),
                sidePanel.getSize(),
                sidePanel.getMinSize(),
                sidePanel.getMaxSize(),
                sidePanel.isCollapsible(),
View Full Code Here

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

        if (Environment.isMozillaFF2(context)) { // fix bug with FF2 + Facelets + JSF 1.2 context  // todo add isFacelets() filter
            initScript.append("O$('").append(borderLayoutPanel.getId()).append("').style.visibility = 'hidden';\n");
            initScript.append("O$.addLoadEvent(function() {\n");
        }

        initScript.initScript(context,
                borderLayoutPanel,
                "O$._initBorderLayoutPanel",
                borderLayoutPanel.getId());

        if (Environment.isMozillaFF2(context)) { // fix bug with FF2 + Facelets + JSF 1.2 context  // todo add isFacelets() filter
View Full Code Here

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

        if (Environment.isMozillaFF2(context)) { // fix bug with FF2 + Facelets + JSF 1.2 context  // todo add isFacelets() filter
            initScript.append("O$.addLoadEvent( function() {\n");
        }

        initScript.initScript(context, borderLayoutPanel, "O$._initBorderLayoutPanel_content",
                Rendering.getRolloverClass(context, borderLayoutPanel),
                new RawScript(JSEventsObject.JSEventObject("oncontentresize", borderLayoutPanel.getOncontentresize()))
        );

        if (Environment.isMozillaFF2(context)) { // fix bug with FF2 + Facelets + JSF 1.2 context  // todo add isFacelets() filter
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.