public void setColumnTitles(String[] titles) { if (titles != null) { ensureColumn(titles.length - 1); } columnTitles = titles; columnIndices = null; // remove the cache }
public void setColumnTitles(String[] titles) { if (titles != null) { ensureColumn(titles.length - 1); } columnTitles = titles; columnIndices = null; // remove the cache }
public void setColumnTitle(int column, String title) { ensureColumn(column); if (columnTitles == null) { columnTitles = new String[getColumnCount()]; } columnTitles[column] = title; columnIndices = null; // reset these fellas }
public void setColumnTypes(int[] types) { ensureColumn(types.length - 1); for (int col = 0; col < types.length; col++) { setColumnType(col, types[col]); } }
public void setColumnTitle(int column, String title) { ensureColumn(column); if (columnTitles == null) { columnTitles = new String[getColumnCount()]; } columnTitles[column] = title; columnIndices = null; // reset these fellas }
/** Make sure this is a legit row and column. If not, expand the table. */ protected void ensureBounds(int row, int col) { ensureRow(row); ensureColumn(col); }
/** Make sure this is a legit row and column. If not, expand the table. */ protected void ensureBounds(int row, int col) { ensureRow(row); ensureColumn(col); }
ensureColumn(dictionary.getRowCount() - 1); int titleCol = 0; int typeCol = 1;