Package org.openfaces.org.json

Examples of org.openfaces.org.json.JSONObject.keys()


        } else {
            propertyLocator = locatorFactory.create(expression);
        }
        Map<String, Object> parameters = new HashMap<String, Object>();
        JSONObject jsonParameters = jsonObject.getJSONObject(PARAMETERS);
        for (Iterator keyIterator = jsonParameters.keys(); keyIterator.hasNext();) {
            String key = (String) keyIterator.next();
            Object parameterValue = parseParameter(jsonParameters.getJSONObject(key));
            parameters.put(key, parameterValue);
        }
View Full Code Here


            Object colorObj = eventObj.opt("color");
            String colorStr = JSONObject.NULL != colorObj ? (String) colorObj : null;
            event.setColor(CSSUtil.parseColor(colorStr));
            JSONObject customPropertiesObj = eventObj.optJSONObject("customProperties");
            if (customPropertiesObj != null) {
                for (Iterator<String> keys = customPropertiesObj.keys(); keys.hasNext();) {
                    String key = keys.next();
                    event.setCustomProperty(key, customPropertiesObj.getString(key));
                }
            }
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.