public void loadValues(AbstractProperty.AbstractPropertyContainer container) { if (myColumnWidthProperty != null) { BaseTableView.restoreWidth(myColumnWidthProperty.get(container), getComponent().getColumnModel()); } myModel.setItems(myProperty.getModifiableList(container)); if (myModel.isSortable()) { final ColumnInfo[] columnInfos = myModel.getColumnInfos(); int sortByColumn = -1; for (int idx = 0; idx < columnInfos.length; idx++) { ColumnInfo columnInfo = columnInfos[idx]; if (columnInfo.isSortable()) { sortByColumn = idx; break; } } } TableUtil.ensureSelectionExists(getComponent()); }
public void doDispose() { BaseTableView.store(myStorage, myTable); myTable.setModelAndUpdateColumns(new ListTableModel(TestColumnInfo.COLUMN_NAMES)); myModel = null; myChildInfo = null; myCurrentTest = null; }
public void restoreState() { BaseTableView.restore(myFlatStorage, myFlatView); BaseTableView.restore(myTreeStorage, myTreeView); }
public void saveState() { BaseTableView.store(myFlatStorage, myFlatView); BaseTableView.store(myTreeStorage, myTreeView); }
public void doDispose() { BaseTableView.store(myStorage, myStatisticsTableView); }
public void attachTo(final JUnitRunningModel model) { myModel = model; myModel.addListener(myListener); myChildInfo.setModel(model); BaseTableView.restore(myStorage, myTable); }
public void beforeClose(AbstractProperty.AbstractPropertyContainer container) { if (myColumnWidthProperty != null) { BaseTableView.storeWidth(myColumnWidthProperty.get(container), getComponent().getColumnModel()); } }