68 |
/** |
/** |
69 |
* Columns that this model keeps track of. |
* Columns that this model keeps track of. |
70 |
*/ |
*/ |
71 |
protected Vector tableColumns; |
protected Vector<TableColumn> tableColumns; |
72 |
|
|
73 |
/** |
/** |
74 |
* Selection Model that keeps track of columns selection |
* Selection Model that keeps track of columns selection |
156 |
throw new IllegalArgumentException("Index 'i' out of range."); |
throw new IllegalArgumentException("Index 'i' out of range."); |
157 |
if (j < 0 || j >= columnCount) |
if (j < 0 || j >= columnCount) |
158 |
throw new IllegalArgumentException("Index 'j' out of range."); |
throw new IllegalArgumentException("Index 'j' out of range."); |
159 |
Object column = tableColumns.remove(i); |
TableColumn column = tableColumns.remove(i); |
160 |
tableColumns.add(j, column); |
tableColumns.add(j, column); |
161 |
fireColumnAdded(new TableColumnModelEvent(this, i, j)); |
fireColumnAdded(new TableColumnModelEvent(this, i, j)); |
162 |
} |
} |
184 |
* getColumns |
* getColumns |
185 |
* @return Enumeration |
* @return Enumeration |
186 |
*/ |
*/ |
187 |
public Enumeration getColumns() |
public Enumeration<TableColumn> getColumns() |
188 |
{ |
{ |
189 |
return tableColumns.elements(); |
return tableColumns.elements(); |
190 |
} |
} |