Java 类com.intellij.ui.table.BaseTableView 实例源码

项目:intellij-ce-playground    文件:UIPropertyBinding.java   
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());
}
项目:tools-idea    文件:UIPropertyBinding.java   
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());
}
项目:consulo-apache-ant    文件:UIPropertyBinding.java   
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());
}
项目:intellij-ce-playground    文件:StatisticsPanel.java   
public void doDispose() {
  BaseTableView.store(myStorage, myTable);
  myTable.setModelAndUpdateColumns(new ListTableModel(TestColumnInfo.COLUMN_NAMES));
  myModel = null;
  myChildInfo = null;
  myCurrentTest = null;
}
项目:tools-idea    文件:StatisticsPanel.java   
public void doDispose() {
  BaseTableView.store(myStorage, myTable);
  myTable.setModelAndUpdateColumns(new ListTableModel(TestColumnInfo.COLUMN_NAMES));
  myModel = null;
  myChildInfo = null;
  myCurrentTest = null;
}
项目:intellij-ce-playground    文件:DualView.java   
public void restoreState() {
  BaseTableView.restore(myFlatStorage, myFlatView);
  BaseTableView.restore(myTreeStorage, myTreeView);
}
项目:intellij-ce-playground    文件:DualView.java   
public void saveState() {
  BaseTableView.store(myFlatStorage, myFlatView);
  BaseTableView.store(myTreeStorage, myTreeView);
}
项目:intellij-ce-playground    文件:StatisticsPanel.java   
public void doDispose() {
  BaseTableView.store(myStorage, myStatisticsTableView);
}
项目:intellij-ce-playground    文件:StatisticsPanel.java   
public void attachTo(final JUnitRunningModel model) {
  myModel = model;
  myModel.addListener(myListener);
  myChildInfo.setModel(model);
  BaseTableView.restore(myStorage, myTable);
}
项目:intellij-ce-playground    文件:UIPropertyBinding.java   
public void beforeClose(AbstractProperty.AbstractPropertyContainer container) {
  if (myColumnWidthProperty != null) {
    BaseTableView.storeWidth(myColumnWidthProperty.get(container), getComponent().getColumnModel());
  }
}
项目:tools-idea    文件:DualView.java   
public void restoreState() {
  BaseTableView.restore(myFlatStorage, myFlatView);
  BaseTableView.restore(myTreeStorage, myTreeView);
}
项目:tools-idea    文件:DualView.java   
public void saveState() {
  BaseTableView.store(myFlatStorage, myFlatView);
  BaseTableView.store(myTreeStorage, myTreeView);
}
项目:tools-idea    文件:StatisticsPanel.java   
public void doDispose() {
  BaseTableView.store(myStorage, myStatisticsTableView);
}
项目:tools-idea    文件:StatisticsPanel.java   
public void attachTo(final JUnitRunningModel model) {
  myModel = model;
  myModel.addListener(myListener);
  myChildInfo.setModel(model);
  BaseTableView.restore(myStorage, myTable);
}
项目:tools-idea    文件:UIPropertyBinding.java   
public void beforeClose(AbstractProperty.AbstractPropertyContainer container) {
  if (myColumnWidthProperty != null) {
    BaseTableView.storeWidth(myColumnWidthProperty.get(container), getComponent().getColumnModel());
  }
}
项目:consulo-apache-ant    文件:UIPropertyBinding.java   
public void beforeClose(AbstractProperty.AbstractPropertyContainer container) {
  if (myColumnWidthProperty != null) {
    BaseTableView.storeWidth(myColumnWidthProperty.get(container), getComponent().getColumnModel());
  }
}
项目:consulo    文件:StatisticsPanel.java   
public void doDispose() {
  BaseTableView.store(myStorage, myStatisticsTableView);
}
项目:consulo    文件:DualView.java   
public void restoreState() {
  BaseTableView.restore(myFlatStorage, myFlatView);
  BaseTableView.restore(myTreeStorage, myTreeView);
}
项目:consulo    文件:DualView.java   
public void saveState() {
  BaseTableView.store(myFlatStorage, myFlatView);
  BaseTableView.store(myTreeStorage, myTreeView);
}