Package org.openfaces.org.json

Examples of org.openfaces.org.json.JSONObject


                Resources.internalURL(context, "timetable/scrollButton.js")
        });
    }

    private JSONObject getStylingParamsObj(FacesContext context, ScrollButton scrollButton){
        JSONObject stylingParams = new JSONObject();
        Styles.addStyleJsonParam(context, scrollButton, stylingParams, "buttonClass",
                scrollButton.getButtonStyle(), scrollButton.getButtonClass());
        Styles.addStyleJsonParam(context, scrollButton, stylingParams, "rollover",
                scrollButton.getRolloverButtonStyle(), scrollButton.getRolloverButtonClass());
        return stylingParams;
View Full Code Here


    }

    protected void fillDynamicRowsInitInfo(FacesContext context, AbstractTable table, int rowIndex, int addedRowCount,
                                           TableStructure tableStructure, JSONObject newNodesInitInfo) {
        super.fillDynamicRowsInitInfo(context, table, rowIndex, addedRowCount, tableStructure, newNodesInitInfo);
        JSONObject structureMapObj = formatTreeStructureMap(context, table, rowIndex - 1, addedRowCount);
        Rendering.addJsonParam(newNodesInitInfo, "structureMap", structureMapObj);
    }
View Full Code Here

        writer.endElement("tr");

        writer.endElement("tbody");
        writer.endElement("table");

        JSONObject stylingParams = getStylingParamsObj(context, switcher);
        Styles.renderStyleClasses(context, switcher);

        Date dayInitParam = getDayInitParam(timetableView);
        Object[] params = {
                timetableView,
View Full Code Here

        writer.endElement("img");
        writer.endElement("td");
    }

    private JSONObject getStylingParamsObj(FacesContext context, AbstractSwitcher switcher) {
        JSONObject stylingParams = new JSONObject();
        Styles.addStyleJsonParam(context, switcher, stylingParams, "rolloverClass",
                switcher.getRolloverStyle(), switcher.getRolloverClass());
        Styles.addStyleJsonParam(context, switcher, stylingParams, "previousButtonRolloverClass",
                switcher.getPreviousButtonRolloverStyle(), switcher.getPreviousButtonRolloverClass());
        Styles.addStyleJsonParam(context, switcher, stylingParams, "previousButtonPressedClass",
View Full Code Here

TOP

Related Classes of org.openfaces.org.json.JSONObject

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.