Search in sources :

Example 11 with ListTreeTableModelOnColumns

use of com.intellij.ui.treeStructure.treetable.ListTreeTableModelOnColumns 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 12 with ListTreeTableModelOnColumns

use of com.intellij.ui.treeStructure.treetable.ListTreeTableModelOnColumns 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

ListTreeTableModelOnColumns (com.intellij.ui.treeStructure.treetable.ListTreeTableModelOnColumns)12 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)9 TreeTableView (com.intellij.ui.dualView.TreeTableView)4 ColumnInfo (com.intellij.util.ui.ColumnInfo)4 TreePath (javax.swing.tree.TreePath)3 TreeColumnInfo (com.intellij.ui.treeStructure.treetable.TreeColumnInfo)2 TreeTable (com.intellij.ui.treeStructure.treetable.TreeTable)2 TreeTableTree (com.intellij.ui.treeStructure.treetable.TreeTableTree)2 AsyncProcessIcon (com.intellij.util.ui.AsyncProcessIcon)2 ArrayList (java.util.ArrayList)2 DClassElement (org.jetbrains.plugins.groovy.annotator.intentions.dynamic.elements.DClassElement)2 AddedFileInfo (com.intellij.cvsSupport2.cvsoperations.cvsAdd.AddedFileInfo)1 PopupChooserBuilder (com.intellij.openapi.ui.popup.PopupChooserBuilder)1 RefactoringElementListener (com.intellij.refactoring.listeners.RefactoringElementListener)1 RefactoringElementListenerProvider (com.intellij.refactoring.listeners.RefactoringElementListenerProvider)1 IncorrectOperationException (com.intellij.util.IncorrectOperationException)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 KeyAdapter (java.awt.event.KeyAdapter)1 KeyEvent (java.awt.event.KeyEvent)1