Package it.eng.spagobi.engines.qbe.crosstable.CrosstabDefinition

Examples of it.eng.spagobi.engines.qbe.crosstable.CrosstabDefinition.Column


 
  private JSONArray serializeColumns(CrosstabDefinition crosstabDefinition) throws JSONException {
    List<Column> columns = crosstabDefinition.getColumns();
    JSONArray toReturn = new JSONArray();
    for (int i = 0; i < columns.size(); i++) {
      Column column = columns.get(i);
      JSONObject obj = new JSONObject();
      obj.put(CrosstabSerializationConstants.ID, column.getEntityId());
      obj.put(CrosstabSerializationConstants.ALIAS, column.getAlias());
      obj.put(CrosstabSerializationConstants.ICON_CLS, column.getIconCls());
      obj.put(CrosstabSerializationConstants.NATURE, column.getNature());
      toReturn.put(obj);
    }
    return toReturn;
  }
View Full Code Here


    JSONArray columnsJSON = crosstabDefinitionJSON.optJSONArray(CrosstabSerializationConstants.COLUMNS);
    //Assert.assertTrue(rows != null && rows.length() > 0, "No columns specified!");
    if (columnsJSON != null) {
      for (int i = 0; i < columnsJSON.length(); i++) {
        JSONObject obj = (JSONObject) columnsJSON.get(i);
        columns.add(crosstabDefinition.new Column(
            obj.getString(CrosstabSerializationConstants.ID),
            obj.getString(CrosstabSerializationConstants.ALIAS),
            obj.getString(CrosstabSerializationConstants.ICON_CLS),
            obj.getString(CrosstabSerializationConstants.NATURE)));
      }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.qbe.crosstable.CrosstabDefinition.Column

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.