public void newRowSeparator(Character character, boolean isTablewideSeparator) { Row row = new Row(this, character, isTablewideSeparator); rows.add(row); }
int maxNumCols = this.rowGroup.getNumCols(); int maxColLength = this.rowGroup.getMaxColLength(i); for (int j = 0; j < maxColLength; j++) { stringBuffer.append(this.rowSeparator); this.rowGroup.getColSize(i), lastColumn)); if (!lastColumn) { stringBuffer.append(getColumnSeparator());
private void addHeaderInTable(Table resultTable, GfJsonObject fromJsonObject) { String header = getHeader(fromJsonObject); if (header != null && !header.isEmpty()) { resultTable.newRow().newLeftCol(header); } }
newRow.newLeftCol(prefix + fieldNameToDisplay); newRowGroup.setColumnSeparator(" | "); newRowGroup.newBlankRow(); newRowGroup.newRow().newLeftCol(fieldNameToDisplay); Row headerRow = newRowGroup.newRow(); int numOfColumns = columnNames.size(); if (headerRow.isEmpty()) { GfJsonObject innerFieldDisplayNames = content.getJSONObject(CliJsonSerializable.FIELDS_TO_DISPLAYNAME_MAPPING); for (int i = 0; i < numOfColumns; i++) { headerRow.newCenterCol(innerFieldDisplayNames.getString((String)columnName)); columnsMap.put((String) columnName, i); 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(); int numOfColumns = columnNames.size(); if (headerRow.isEmpty()) { GfJsonObject innerFieldDisplayNames = content.getJSONObject(CliJsonSerializable.FIELDS_TO_DISPLAYNAME_MAPPING); for (int i = 0; i < numOfColumns; i++) { headerRow.newCenterCol(innerFieldDisplayNames.getString((String)columnName)); columnsMap.put((String) columnName, i); 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("");
headerRow.newCenterCol((String) object);
int maxNumCols = this.rowGroup.getNumCols(); this.rowGroup.getColSize(i), lastColumn)); if (!lastColumn) { stringBuffer.append(getColumnSeparator());
headerRow.newCenterCol((String) object);
/** * @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; }
public void newRowSeparator(Character character, boolean isTablewideSeparator) { Row row = new Row(this, character, isTablewideSeparator); rows.add(row); }
public Row newRow() { Row row = new Row(this); rows.add(row); return row; }
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 addHeaderInRowGroup(RowGroup rowGroup, GfJsonObject fromJsonObject) { String header = getHeader(fromJsonObject); if (header != null && !header.isEmpty()) { rowGroup.newRow().newLeftCol(header); } }
public void newBlankRow() { Row row = newRow(); row.newCenterCol(""); row.isBlank = true; }
public void newBlankRow() { Row row = newRow(); row.newCenterCol(""); row.isBlank = true; }
private void addFooterInRowGroup(RowGroup rowGroup, GfJsonObject fromJsonObject) { String footer = getFooter(fromJsonObject); if (footer != null && !footer.isEmpty()) { rowGroup.newRow().newLeftCol(footer); } }