Package org.geomajas.configuration.client

Examples of org.geomajas.configuration.client.ClientLayerTreeInfo


    treeGrid.setOverflow(Overflow.AUTO);
    tree = new RefreshableTree();
    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


          rollOverTools.setHeight(LAYERTREEBUTTON_SIZE);
          emptyRollOver = new HLayout();
          emptyRollOver.setWidth(1);
          emptyRollOver.setHeight(LAYERTREEBUTTON_SIZE);

          ClientLayerTreeInfo layerTreeInfo = mapModel.getMapInfo().getLayerTree();
          if (layerTreeInfo != null) {
            for (ClientToolInfo tool : layerTreeInfo.getTools()) {
              String id = tool.getId();
              IButton button = null;
              ToolbarBaseAction action = LayerTreeRegistry.getToolbarAction(id, mapWidget);
              if (action instanceof LayerTreeAction) {
                button = new LayerTreeButton(LayerTreeWithLegend.this, (LayerTreeAction) action);
View Full Code Here

    }
  }

  private void checkLayerTree(ClientMapInfo map) throws BeansException {
    // if the map contains a layer tree, verify that the layers are part of the map
    ClientLayerTreeInfo layerTree = map.getLayerTree();
    if (null != layerTree) {
      checkTreeNode(map, layerTree.getTreeNode());
    }
  }
View Full Code Here

  private ToolStrip buildToolstrip(MapWidget mapWidget) {
    toolStrip = new ToolStrip();
    toolStrip.setWidth100();
    toolStrip.setPadding(3);

    ClientLayerTreeInfo layerTreeInfo = mapModel.getMapInfo().getLayerTree();
    if (layerTreeInfo != null) {
      for (ClientToolInfo tool : layerTreeInfo.getTools()) {
        String id = tool.getId();
        Canvas button = null;
        ToolbarBaseAction action = LayerTreeRegistry.getToolbarAction(id, mapWidget);
        if (action instanceof ToolbarWidget) {
          toolStrip.addMember(((ToolbarWidget) action).getWidget());
View Full Code Here

    treeGrid.setShowHeader(false);
    tree = new RefreshableTree();
    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

    // the data is explicitly copied as this assures the security is considered when copying.
    if (null == original) {
      return null;
    }
    // the data is explicitly copied as this assures the security is considered when copying.
    ClientLayerTreeInfo client = new ClientLayerTreeInfo();
    client.setId(original.getId());
    client.setTools(securityClone(original.getTools()));
    client.setTreeNode(securityClone(original.getTreeNode()));
    return client;
  }
View Full Code Here

TOP

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

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.