Java 类com.intellij.ui.BooleanTableCellEditor 实例源码

项目:Android-ORM-ASPlugin    文件:ClassTableModel.java   
public void setTableEditor(JTable table) {
    this.table = table;
    TableColumnModel columnModel = table.getColumnModel();
    columnModel.getColumn(COL_CHECK).setCellRenderer(new BooleanTableCellRenderer());
    columnModel.getColumn(COL_CHECK).setCellEditor(new BooleanTableCellEditor());
    columnModel.getColumn(COL_CHECK).setPreferredWidth(50);
    columnModel.getColumn(COL_TABLE).setPreferredWidth(100);

    JTableHeader header = table.getTableHeader();
    header.setDefaultRenderer(new ClassTableHeaderRenderer(table, true));
}
项目:google-cloud-intellij    文件:GoogleCloudApiSelectorPanel.java   
CloudLibraryTable(List<CloudLibrary> libraries) {
  super(new CloudLibraryTableModel(libraries));
  setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  setDefaultRenderer(CloudLibrary.class, new CloudLibraryRenderer());
  setDefaultRenderer(Boolean.class, new BooleanTableCellRenderer());
  setDefaultEditor(Boolean.class, new BooleanTableCellEditor());
  TableUtil.setupCheckboxColumn(getColumnModel().getColumn(1));
}
项目:intellij-ce-playground    文件:InstalledPluginsTableModel.java   
@Override
public TableCellEditor getEditor(final IdeaPluginDescriptor o) {
  return new BooleanTableCellEditor();
}
项目:tools-idea    文件:InstalledPluginsTableModel.java   
public TableCellEditor getEditor(final IdeaPluginDescriptor o) {
  return new BooleanTableCellEditor();
}
项目:consulo    文件:PluginAdvertiserPluginModel.java   
@Override
public TableCellEditor getEditor(final IdeaPluginDescriptor o) {
  return new BooleanTableCellEditor();
}
项目:consulo    文件:InstalledPluginsTableModel.java   
@Override
public TableCellEditor getEditor(final IdeaPluginDescriptor o) {
  return new BooleanTableCellEditor();
}