Search in sources :

Example 26 with ColumnInfo

use of com.intellij.util.ui.ColumnInfo in project android by JetBrains.

the class ToolComponentsPanel method createUIComponents.

private void createUIComponents() {
    myToolsLoadingIcon = new AsyncProcessIcon("Loading...");
    myToolsSummaryRootNode = new RootNode();
    myToolsDetailsRootNode = new RootNode();
    UpdaterTreeNode.Renderer renderer = new SummaryTreeNode.Renderer();
    ColumnInfo[] toolsSummaryColumns = new ColumnInfo[] { new DownloadStatusColumnInfo(), new TreeColumnInfo("Name"), new VersionColumnInfo(), new StatusColumnInfo() };
    myToolsSummaryTable = new TreeTableView(new ListTreeTableModelOnColumns(myToolsSummaryRootNode, toolsSummaryColumns));
    SdkUpdaterConfigPanel.setTreeTableProperties(myToolsSummaryTable, renderer, myModificationListener);
    ColumnInfo[] toolsDetailColumns = new ColumnInfo[] { new DownloadStatusColumnInfo(), new TreeColumnInfo("Name"), new VersionColumnInfo(), new StatusColumnInfo() };
    myToolsDetailTable = new TreeTableView(new ListTreeTableModelOnColumns(myToolsDetailsRootNode, toolsDetailColumns));
    SdkUpdaterConfigPanel.setTreeTableProperties(myToolsDetailTable, renderer, myModificationListener);
}
Also used : ListTreeTableModelOnColumns(com.intellij.ui.treeStructure.treetable.ListTreeTableModelOnColumns) AsyncProcessIcon(com.intellij.util.ui.AsyncProcessIcon) ColumnInfo(com.intellij.util.ui.ColumnInfo) TreeColumnInfo(com.intellij.ui.treeStructure.treetable.TreeColumnInfo) TreeTableView(com.intellij.ui.dualView.TreeTableView) TreeColumnInfo(com.intellij.ui.treeStructure.treetable.TreeColumnInfo)

Example 27 with ColumnInfo

use of com.intellij.util.ui.ColumnInfo in project android by JetBrains.

the class PlatformComponentsPanel method createUIComponents.

private void createUIComponents() {
    UpdaterTreeNode.Renderer renderer = new SummaryTreeNode.Renderer();
    myPlatformLoadingIcon = new AsyncProcessIcon("Loading...");
    myPlatformSummaryRootNode = new RootNode();
    myPlatformDetailsRootNode = new RootNode();
    ColumnInfo[] platformSummaryColumns = new ColumnInfo[] { new DownloadStatusColumnInfo(), new TreeColumnInfo("Name"), new ApiLevelColumnInfo(), new RevisionColumnInfo(), new StatusColumnInfo() };
    myPlatformSummaryTable = new TreeTableView(new ListTreeTableModelOnColumns(myPlatformSummaryRootNode, platformSummaryColumns));
    SdkUpdaterConfigPanel.setTreeTableProperties(myPlatformSummaryTable, renderer, myModificationListener);
    ColumnInfo[] platformDetailColumns = new ColumnInfo[] { new DownloadStatusColumnInfo(), new TreeColumnInfo("Name"), new ApiLevelColumnInfo(), new RevisionColumnInfo(), new StatusColumnInfo() };
    myPlatformDetailTable = new TreeTableView(new ListTreeTableModelOnColumns(myPlatformDetailsRootNode, platformDetailColumns));
    SdkUpdaterConfigPanel.setTreeTableProperties(myPlatformDetailTable, renderer, myModificationListener);
}
Also used : ListTreeTableModelOnColumns(com.intellij.ui.treeStructure.treetable.ListTreeTableModelOnColumns) AsyncProcessIcon(com.intellij.util.ui.AsyncProcessIcon) ColumnInfo(com.intellij.util.ui.ColumnInfo) TreeColumnInfo(com.intellij.ui.treeStructure.treetable.TreeColumnInfo) TreeTableView(com.intellij.ui.dualView.TreeTableView) TreeColumnInfo(com.intellij.ui.treeStructure.treetable.TreeColumnInfo)

Aggregations

ColumnInfo (com.intellij.util.ui.ColumnInfo)27 TableCellRenderer (javax.swing.table.TableCellRenderer)7 TreeTableView (com.intellij.ui.dualView.TreeTableView)4 TreeTableModel (com.intellij.ui.treeStructure.treetable.TreeTableModel)4 ListTableModel (com.intellij.util.ui.ListTableModel)4 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)4 NotNull (org.jetbrains.annotations.NotNull)4 TableView (com.intellij.ui.table.TableView)3 ListTreeTableModelOnColumns (com.intellij.ui.treeStructure.treetable.ListTreeTableModelOnColumns)3 List (java.util.List)3 TableColumn (javax.swing.table.TableColumn)3 Project (com.intellij.openapi.project.Project)2 PopupChooserBuilder (com.intellij.openapi.ui.popup.PopupChooserBuilder)2 TreeColumnInfo (com.intellij.ui.treeStructure.treetable.TreeColumnInfo)2 AsyncProcessIcon (com.intellij.util.ui.AsyncProcessIcon)2 ArrayList (java.util.ArrayList)2 TableCellEditor (javax.swing.table.TableCellEditor)2 Nullable (org.jetbrains.annotations.Nullable)2 DependencyCellRenderer (com.android.tools.idea.gradle.structure.configurables.ui.dependencies.AbstractDeclaredDependenciesTableModel.DependencyCellRenderer)1 PsArtifactDependencySpec (com.android.tools.idea.gradle.structure.model.PsArtifactDependencySpec)1