Пример #1
0
 /**
  * Sets the table which is displayed in this panel.
  *
  * @param tcModel table to display
  */
 private void setDisplayedTable(TopcatModel tcModel) {
   if (tcModel_ != null) {
     tcModel_.removeTopcatListener(tcListener_);
     tcModel_.getColumnModel().removeColumnModelListener(colListener_);
   }
   tcModel_ = tcModel;
   if (saveChooser_ != null) {
     saveChooser_.setEnabled(tcModel != null);
   }
   updateNameField(tcModel);
   updateSubsetField(tcModel);
   updateOrderField(tcModel);
   updateColsField(tcModel);
   updateRowsField(tcModel);
   if (tcModel != null) {
     tcModel.addTopcatListener(tcListener_);
     tcModel.getColumnModel().addColumnModelListener(colListener_);
   }
 }
Пример #2
0
 public void setActiveChooser(TableSaveChooser chooser) {
   saveChooser_ = chooser;
   if (saveChooser_ != null) {
     saveChooser_.setEnabled(tcModel_ != null);
   }
 }