Search in sources :

Example 1 with BaseTree

use of com.revolsys.swing.tree.BaseTree in project com.revolsys.open by revolsys.

the class MultipleLayerRenderer method addRendererEdit.

default void addRendererEdit(final C renderer) {
    addRenderer(-1, renderer);
    final Object item = MenuFactory.getMenuSource();
    if (item instanceof BaseTreeNode) {
        final BaseTreeNode node = (BaseTreeNode) item;
        final BaseTree tree = node.getTree();
        if (tree.isPropertyEqual("treeType", Project.class.getName())) {
            final Layer layer = renderer.getLayer();
            layer.showRendererProperties(renderer);
        }
    }
}
Also used : BaseTree(com.revolsys.swing.tree.BaseTree) BaseTreeNode(com.revolsys.swing.tree.BaseTreeNode)

Example 2 with BaseTree

use of com.revolsys.swing.tree.BaseTree 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)

Example 3 with BaseTree

use of com.revolsys.swing.tree.BaseTree in project com.revolsys.open by revolsys.

the class ProjectTreeNode method newTree.

public static BaseTree newTree(final Project project) {
    final ProjectTreeNode root = new ProjectTreeNode(project);
    final BaseTree tree = new BaseTree(root);
    tree.setProperty("treeType", Project.class.getName());
    return tree;
}
Also used : BaseTree(com.revolsys.swing.tree.BaseTree) Project(com.revolsys.swing.map.layer.Project)

Aggregations

BaseTree (com.revolsys.swing.tree.BaseTree)3 BaseTreeNode (com.revolsys.swing.tree.BaseTreeNode)2 TabbedPane (com.revolsys.swing.TabbedPane)1 DnDTabbedPane (com.revolsys.swing.component.DnDTabbedPane)1 Project (com.revolsys.swing.map.layer.Project)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