/** * Set the width of a {@link Column}. * * @param column the column * @param width the width of the column */ public void setColumnWidth(int column, String width) { columnWidthsByIndex.put(column, width); maxColumnIndex = Math.max(maxColumnIndex, column); // Update the column width. if (column < getRealColumnCount()) { doSetColumnWidth(column, width); } }
/** * Clear the width of the specified {@link Column}. * * @param column the column index */ public void clearColumnWidth(Integer column) { columnWidthsByIndex.remove(column); // Recalculate the maximum column index. if (column >= maxColumnIndex) { maxColumnIndex = -1; for (Integer index : columnWidthsByIndex.keySet()) { maxColumnIndex = Math.max(maxColumnIndex, index); } } // Update the width of the column. if (column < getRealColumnCount()) { doSetColumnWidth(column, null); } }
protected void refreshColumnWidths() { int columnCount = getRealColumnCount(); for (int i = 0; i < columnCount; i++) { doSetColumnWidth(i, getColumnWidth(i)); } }
/** * Set the width of a {@link Column}. * * @param column the column * @param width the width of the column */ public void setColumnWidth(int column, String width) { columnWidthsByIndex.put(column, width); maxColumnIndex = Math.max(maxColumnIndex, column); // Update the column width. if (column < getRealColumnCount()) { doSetColumnWidth(column, width); } }
/** * Set the width of a {@link Column}. * * @param column the column * @param width the width of the column */ public void setColumnWidth(int column, String width) { columnWidthsByIndex.put(column, width); maxColumnIndex = Math.max(maxColumnIndex, column); // Update the column width. if (column < getRealColumnCount()) { doSetColumnWidth(column, width); } }
/** * Clear the width of the specified {@link Column}. * * @param column the column index */ public void clearColumnWidth(Integer column) { columnWidthsByIndex.remove(column); // Recalculate the maximum column index. if (column >= maxColumnIndex) { maxColumnIndex = -1; for (Integer index : columnWidthsByIndex.keySet()) { maxColumnIndex = Math.max(maxColumnIndex, index); } } // Update the width of the column. if (column < getRealColumnCount()) { doSetColumnWidth(column, null); } }
/** * Clear the width of the specified {@link Column}. * * @param column the column index */ public void clearColumnWidth(Integer column) { columnWidthsByIndex.remove(column); // Recalculate the maximum column index. if (column >= maxColumnIndex) { maxColumnIndex = -1; for (Integer index : columnWidthsByIndex.keySet()) { maxColumnIndex = Math.max(maxColumnIndex, index); } } // Update the width of the column. if (column < getRealColumnCount()) { doSetColumnWidth(column, null); } }
protected void refreshColumnWidths() { int columnCount = getRealColumnCount(); for (int i = 0; i < columnCount; i++) { doSetColumnWidth(i, getColumnWidth(i)); } }
protected void refreshColumnWidths() { int columnCount = getRealColumnCount(); for (int i = 0; i < columnCount; i++) { doSetColumnWidth(i, getColumnWidth(i)); } }