private void addFooterInRowGroup(RowGroup rowGroup, GfJsonObject fromJsonObject) { String footer = getFooter(fromJsonObject); if (footer != null && !footer.isEmpty()) { rowGroup.newRow().newLeftCol(footer); } }
private void addHeaderInTable(Table resultTable, GfJsonObject fromJsonObject) { String header = getHeader(fromJsonObject); if (header != null && !header.isEmpty()) { resultTable.newRow().newLeftCol(header); } }
private void addFooterInRowGroup(RowGroup rowGroup, GfJsonObject fromJsonObject) { String footer = getFooter(fromJsonObject); if (footer != null && !footer.isEmpty()) { rowGroup.newRow().newLeftCol(footer); } }
newRow.newLeftCol(prefix + fieldNameToDisplay); newRowGroup.setColumnSeparator(" | "); newRowGroup.newBlankRow(); newRowGroup.newRow().newLeftCol(fieldNameToDisplay); Row headerRow = newRowGroup.newRow(); newRow.newLeftCol(String.valueOf(content.get((String) columnName))); newRow.newLeftCol(value);
newRow.newLeftCol(prefix + fieldNameToDisplay); newRowGroup.setColumnSeparator(" | "); newRowGroup.newBlankRow(); newRowGroup.newRow().newLeftCol(fieldNameToDisplay); Row headerRow = newRowGroup.newRow(); newRow.newLeftCol(String.valueOf(content.get((String) columnName))); newRow.newLeftCol(value);
newRow.newLeftCol(prefix+key).newLeftCol(value[0]); } else { if (value.length != 0) { // possible when object == CliConstants.LINE_SEPARATOR newRow.newLeftCol(prefix+key).newLeftCol(value[0]); for (int i = 1; i < value.length; i++) { newRow = rowGroup.newRow(); newRow.setColumnSeparator(" "); newRow.newLeftCol("").newLeftCol(value[i]); newRow.newLeftCol(prefix+key).newLeftCol("");
newRow.newLeftCol(prefix+key).newLeftCol(value[0]); } else { if (value.length != 0) { // possible when object == CliConstants.LINE_SEPARATOR newRow.newLeftCol(prefix+key).newLeftCol(value[0]); for (int i = 1; i < value.length; i++) { newRow = rowGroup.newRow(); newRow.setColumnSeparator(" "); newRow.newLeftCol("").newLeftCol(value[i]); newRow.newLeftCol(prefix+key).newLeftCol("");
/** * @param rowGroup * @param dataRows * @param accumulatedData * @return rows * @throws GfJsonException */ private Row[] buildRows(RowGroup rowGroup, Row[] dataRows, GfJsonArray accumulatedData) throws GfJsonException { int size = accumulatedData.size(); // Initialize rows' array as required if (dataRows == null) { dataRows = new Row[size]; for (int j = 0; j < dataRows.length; j++) { dataRows[j] = rowGroup.newRow(); } } // Add data column-wise for (int j = 0; j < size; j++) { dataRows[j].newLeftCol(accumulatedData.get(j)); } return dataRows; }
/** * @param rowGroup * @param dataRows * @param accumulatedData * @return rows * @throws GfJsonException */ private Row[] buildRows(RowGroup rowGroup, Row[] dataRows, GfJsonArray accumulatedData) throws GfJsonException { int size = accumulatedData.size(); // Initialize rows' array as required if (dataRows == null) { dataRows = new Row[size]; for (int j = 0; j < dataRows.length; j++) { dataRows[j] = rowGroup.newRow(); } } // Add data column-wise for (int j = 0; j < size; j++) { dataRows[j].newLeftCol(accumulatedData.get(j)); } return dataRows; }
private void addHeaderInRowGroup(RowGroup rowGroup, GfJsonObject fromJsonObject) { String header = getHeader(fromJsonObject); if (header != null && !header.isEmpty()) { rowGroup.newRow().newLeftCol(header); } }
private void addHeaderInTable(Table resultTable, GfJsonObject fromJsonObject) { String header = getHeader(fromJsonObject); if (header != null && !header.isEmpty()) { resultTable.newRow().newLeftCol(header); } }
private void addFooterInTable(Table resultTable, GfJsonObject fromJsonObject) { String footer = getFooter(fromJsonObject); if (footer != null && !footer.isEmpty()) { resultTable.newRow().newLeftCol(footer); } }
private void addHeaderInRowGroup(RowGroup rowGroup, GfJsonObject fromJsonObject) { String header = getHeader(fromJsonObject); if (header != null && !header.isEmpty()) { rowGroup.newRow().newLeftCol(header); } }
private void addFooterInTable(Table resultTable, GfJsonObject fromJsonObject) { String footer = getFooter(fromJsonObject); if (footer != null && !footer.isEmpty()) { resultTable.newRow().newLeftCol(footer); } }