Search in sources :

Example 1 with ListTreeNode

use of com.revolsys.swing.tree.node.ListTreeNode in project com.revolsys.open by revolsys.

the class ProjectFrame method newTabLeftCatalogPanel.

protected void newTabLeftCatalogPanel() {
    final BaseTreeNode recordStores = RecordStoreConnectionTrees.newRecordStoreConnectionsTreeNode();
    final BaseTreeNode fileSystems = PathTreeNode.newFileSystemsTreeNode();
    final BaseTreeNode folderConnections = FolderConnectionsTrees.newFolderConnectionsTreeNode();
    final BaseTreeNode webServices = WebServiceConnectionTrees.newWebServiceConnectionsTreeNode();
    final ListTreeNode root = new ListTreeNode("/", recordStores, fileSystems, folderConnections, webServices);
    final BaseTree tree = new BaseTree(root);
    tree.setRootVisible(false);
    recordStores.expandChildren();
    fileSystems.expand();
    folderConnections.expandChildren();
    webServices.expandChildren();
    this.catalogTree = tree;
    final Icon icon = Icons.getIconWithBadge("folder", "tree");
    final TabbedPane tabs = this.leftTabs;
    final Component component = this.catalogTree;
    tabs.addTab(icon, "Catalog", component, true);
}
Also used : BaseTree(com.revolsys.swing.tree.BaseTree) BaseTreeNode(com.revolsys.swing.tree.BaseTreeNode) DnDTabbedPane(com.revolsys.swing.component.DnDTabbedPane) JTabbedPane(javax.swing.JTabbedPane) TabbedPane(com.revolsys.swing.TabbedPane) Icon(javax.swing.Icon) Component(java.awt.Component) JComponent(javax.swing.JComponent) ListTreeNode(com.revolsys.swing.tree.node.ListTreeNode)

Aggregations

TabbedPane (com.revolsys.swing.TabbedPane)1 DnDTabbedPane (com.revolsys.swing.component.DnDTabbedPane)1 BaseTree (com.revolsys.swing.tree.BaseTree)1 BaseTreeNode (com.revolsys.swing.tree.BaseTreeNode)1 ListTreeNode (com.revolsys.swing.tree.node.ListTreeNode)1 Component (java.awt.Component)1 Icon (javax.swing.Icon)1 JComponent (javax.swing.JComponent)1 JTabbedPane (javax.swing.JTabbedPane)1