MCPcopy Create free account
hub / github.com/GateNLP/gate-core / showColumn

Method showColumn

src/main/java/gate/swing/XJTable.java:353–362  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 2

actionPerformedMethod · 0.80
stateChangedMethod · 0.80

Calls 2

getColumnCountMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected