use of com.revolsys.swing.tree.BaseTreeNode in project com.revolsys.open by revolsys.
the class LayerTreeNode method loadChildrenDo.
@Override
protected List<BaseTreeNode> loadChildrenDo() {
final Layer layer = getLayer();
final LayerRenderer<? extends Layer> renderer = layer.getRenderer();
if (renderer == null) {
return Collections.emptyList();
} else {
final LayerRendererTreeNode rendererNode = new LayerRendererTreeNode(renderer);
return Collections.<BaseTreeNode>singletonList(rendererNode);
}
}
use of com.revolsys.swing.tree.BaseTreeNode in project com.revolsys.open by revolsys.
the class RecordStoreConnectionTrees method newRecordStoreConnectionsTreeNode.
public static BaseTreeNode newRecordStoreConnectionsTreeNode() {
final RecordStoreConnectionManager connectionManager = RecordStoreConnectionManager.get();
final BaseTreeNode node = BaseTreeNode.newTreeNode(connectionManager);
node.setOpen(true);
return node;
}
Aggregations