Java 类com.intellij.openapi.ui.ComboBoxTableRenderer 实例源码

项目:intellij-ce-playground    文件:DetectedRootsChooserDialog.java   
@Override
public TableCellRenderer getRenderer(VirtualFileCheckedTreeNode node) {
  final SuggestedChildRootInfo rootInfo = node.getRootInfo();
  if (rootInfo != null && isCellEditable(node)) {
    return new ComboBoxTableRenderer<String>(rootInfo.getRootTypeNames());
  }
  return new DefaultTableCellRenderer();
}
项目:tools-idea    文件:DetectedRootsChooserDialog.java   
@Override
public TableCellRenderer getRenderer(VirtualFileCheckedTreeNode node) {
  final SuggestedChildRootInfo rootInfo = node.getRootInfo();
  if (rootInfo != null && isCellEditable(node)) {
    return new ComboBoxTableRenderer<String>(rootInfo.getRootTypeNames());
  }
  return new DefaultTableCellRenderer();
}
项目:consulo    文件:DetectedRootsChooserDialog.java   
@Override
public TableCellRenderer getRenderer(VirtualFileCheckedTreeNode node) {
  final SuggestedChildRootInfo rootInfo = node.getRootInfo();
  if (rootInfo != null && isCellEditable(node)) {
    return new ComboBoxTableRenderer<String>(rootInfo.getRootTypeNames());
  }
  return new DefaultTableCellRenderer();
}
项目:consulo    文件:ContentFolderPropertiesDialog.java   
@Nullable
@Override
public TableCellRenderer getRenderer(Item item) {
  return new ComboBoxTableRenderer<Object>(item.myProvider.getValues());
}