Show a column. Do nothing if already shown. @param columnIndex index of the column in the table model @param insertionIndex index of the view where the colum will be inserted
(int columnIndex, int insertionIndex)
| 351 | * @param insertionIndex index of the view where the colum will be inserted |
| 352 | */ |
| 353 | public void showColumn(int columnIndex, int insertionIndex) { |
| 354 | for (TableColumn hiddenColumn : hiddenColumns) { |
| 355 | if (hiddenColumn.getModelIndex() == columnIndex) { |
| 356 | columnModel.addColumn(hiddenColumn); |
| 357 | columnModel.moveColumn(columnModel.getColumnCount()-1, insertionIndex); |
| 358 | hiddenColumns.remove(hiddenColumn); |
| 359 | break; |
| 360 | } |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | /** |
| 365 | * @param ascending The ascending to set. True by default. |
no test coverage detected