Package org.geomajas.configuration.client

Examples of org.geomajas.configuration.client.ClientLayerTreeNodeInfo


    final TreeNode nodeRoot = new TreeNode("ROOT");
    tree.setRoot(nodeRoot); // invisible ROOT node (ROOT node is required)

    ClientLayerTreeInfo layerTreeInfo = mapModel.getMapInfo().getLayerTree();
    if (layerTreeInfo != null) {
      ClientLayerTreeNodeInfo treeNode = layerTreeInfo.getTreeNode();
      processNode(treeNode, nodeRoot, false);
    }

    treeGrid.setData(tree);
    treeGrid.addLeafClickHandler(this);
View Full Code Here


    final TreeNode nodeRoot = new TreeNode("ROOT");
    tree.setRoot(nodeRoot); // invisible ROOT node (ROOT node is required)

    ClientLayerTreeInfo layerTreeInfo = mapModel.getMapInfo().getLayerTree();
    if (layerTreeInfo != null) {
      ClientLayerTreeNodeInfo treeNode = layerTreeInfo.getTreeNode();
      processNode(treeNode, nodeRoot, tree, mapModel, false);
    }

    treeGrid.setData(tree);
    treeGrid.addLeafClickHandler(this);
View Full Code Here

  public ClientLayerTreeNodeInfo securityClone(ClientLayerTreeNodeInfo original) {
    // the data is explicitly copied as this assures the security is considered when copying.
    if (null == original) {
      return null;
    }
    ClientLayerTreeNodeInfo client = new ClientLayerTreeNodeInfo();
    client.setLabel(original.getLabel());
    client.setExpanded(original.isExpanded());
    List<ClientLayerInfo> layers = new ArrayList<ClientLayerInfo>();
    client.setLayers(layers);
    for (ClientLayerInfo layer : original.getLayers()) {
      ClientLayerInfo copy = securityClone(layer);
      if (null != copy) {
        layers.add(copy);
      }
    }
    List<ClientLayerTreeNodeInfo> nodes = new ArrayList<ClientLayerTreeNodeInfo>();
    client.setTreeNodes(nodes);
    for (ClientLayerTreeNodeInfo node : original.getTreeNodes()) {
      ClientLayerTreeNodeInfo copy = securityClone(node);
      if (null != copy) {
        nodes.add(copy);
      }
    }
    if (layers.size() > 0 || nodes.size() > 0) {
View Full Code Here

TOP

Related Classes of org.geomajas.configuration.client.ClientLayerTreeNodeInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.