Java 类com.intellij.util.ui.AbstractTableCellEditor 实例源码

项目:intellij-ce-playground    文件:CvsHistoryProvider.java   
public TableCellEditor getEditor(final Object object) {
  if (!(object instanceof CvsFileRevision)) return null;
  return new AbstractTableCellEditor() {
    public Object getCellEditorValue() {
      return "";
    }

    public Component getTableCellEditorComponent(JTable table,
                                                 Object value,
                                                 boolean isSelected,
                                                 int row,
                                                 int column) {
      final TagsPanel result = new TagsPanel(getName());
      result.setTags(getValues((CvsFileRevision)object));
      result.setSelected(true, table);
      return result;
    }
  };
}
项目:tools-idea    文件:CvsHistoryProvider.java   
public TableCellEditor getEditor(final Object object) {
  if (!(object instanceof CvsFileRevision)) return null;
  return new AbstractTableCellEditor() {
    public Object getCellEditorValue() {
      return "";
    }

    public Component getTableCellEditorComponent(JTable table,
                                                 Object value,
                                                 boolean isSelected,
                                                 int row,
                                                 int column) {
      final TagsPanel result = new TagsPanel(getName());
      result.setTags(getValues((CvsFileRevision)object));
      result.setSelected(true, table);
      return result;
    }
  };
}