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);
}
}
}
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);
}
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;
}
Aggregations