Package com.intellij.ui.table

Examples of com.intellij.ui.table.TableView


  };
  private final TableView myTableVeiw;
  private boolean myIsEnabled = true;

  public EnvVariablesTable() {
    myTableVeiw = new TableView(new ListTableModel((new ColumnInfo[]{NAME, VALUE})));
    myTableVeiw.getTableViewModel().setSortable(false);
    myPanel.add(ScrollPaneFactory.createScrollPane(myTableVeiw.getComponent()), BorderLayout.CENTER);
    JComponent toolbarComponent = createToolbar();
    myPanel.add(toolbarComponent, BorderLayout.NORTH);
    myTableVeiw.getComponent().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
View Full Code Here


    protected Optional<ChangeInfo> getSelectedChange(AnActionEvent anActionEvent) {
        Component component = anActionEvent.getData(PlatformDataKeys.CONTEXT_COMPONENT);
        if (!(component instanceof TableView)) {
            return Optional.absent();
        }
        final TableView table = (TableView) component;
        Object selectedObject = table.getSelectedObject();
        if (!(selectedObject instanceof ChangeInfo)) {
            return Optional.absent();
        }
        final ChangeInfo selectedChange = (ChangeInfo) selectedObject;
        return Optional.fromNullable(selectedChange);
View Full Code Here

  public SelectElementsDialog(final Project project, final List<PsiElement> elements, final String title, final String elementsTitle) {
    super(true);
    myProject = project;
    myName.setName(elementsTitle);
    myTable = new TableView(new ListTableModel(new ColumnInfo[]{myIsSelected, myName}));

    final TableViewModel model = myTable.getTableViewModel();
    final ArrayList<PsiElement> arrayList = new ArrayList<PsiElement>(elements);
    Collections.sort(arrayList, new Comparator<PsiElement>() {
      public int compare(final PsiElement o1, final PsiElement o2) {
View Full Code Here

      DualViewColumnInfo column = columns[i];
      if (column.shouldBeShownIsTheTable()) shownColumns.add(column);
    }

    ListTableModel flatModel = new ListTableModel(shownColumns.toArray(new ColumnInfo[shownColumns.size()]));
    myFlatView = new TableView(flatModel) {
      public TableCellRenderer getCellRenderer(int row, int column) {
        return createWrappedRenderer(super.getCellRenderer(row, column));
      }
    };
View Full Code Here

TOP

Related Classes of com.intellij.ui.table.TableView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.