Package org.openfaces.util

Examples of org.openfaces.util.RawScript


    protected String getFilterKeyPressScript(ExpressionFilter filter) {
        UIComponent component = (UIComponent) filter.getFilteredComponent();
        return new ScriptBuilder().append("return ").functionCall("O$.Filters._filterFieldKeyPressHandler",
                component,
                filter,
                new RawScript("this"),
                new RawScript("event"),
                filter.getAutoFilterDelay()).semicolon().toString();
    }
View Full Code Here


                sidePanel.isCollapsible(),
                sidePanel.isResizable(),
                sidePanel.getCollapsed(),
                getRolloverClass(context, sidePanel),
                getSplitterRolloverClass(context, sidePanel),
                new RawScript(events.toString()));

        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 = 'visible';\n");
            initScript.append("});\n");
        }
View Full Code Here

        children.add(createTabSetItem("Month", switcher, "monthItem"));
        children.add(createTabSetItem("Week", switcher, "weekItem"));
        children.add(createTabSetItem("Day", switcher, "dayItem"));
        switcher.setOnchange(
                new ScriptBuilder().O$(timetable).dot().functionCall("setViewType",
                        new RawScript("['month','week','day'][O$('" + switcher.getClientId(context) + "').getSelectedIndex()]")
                ).toString()
        );

        super.encodeBegin(context, component);
View Full Code Here

            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
            initScript.append("O$('").append(clientId).append("').style.visibility = 'visible';\n"); // todo: why isn't this built-in into O$._initBorderLayoutPanel_content function itself?
            initScript.append("});\n");
View Full Code Here

TOP

Related Classes of org.openfaces.util.RawScript

Copyright © 2018 www.massapicom. 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.