Package org.geomajas.gwt.client.action

Examples of org.geomajas.gwt.client.action.ToolbarBaseAction


  // ------------------------------------------------------------------------
  // Private methods:
  // ------------------------------------------------------------------------

  private static ButtonAction getAction(ClientToolInfo tool, MapWidget mapWidget) {
    ToolbarBaseAction toolbarAction = ToolbarRegistry.getToolbarAction(tool.getId(), mapWidget);

    if (toolbarAction != null) {
      ButtonAction action = null;
      if (toolbarAction instanceof ToolbarAction) {
        action = new ToolbarButtonAction((ToolbarAction) toolbarAction);
View Full Code Here


          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);
              } else if (action instanceof LayerTreeModalAction) {
                button = new LayerTreeModalButton(LayerTreeWithLegend.this,
                    (LayerTreeModalAction) action);
View Full Code Here

    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());
        } else if (action instanceof ToolbarCanvas) {
          button = ((ToolbarCanvas) action).getCanvas();
        } else if (action instanceof LayerTreeAction) {
View Full Code Here

        for (ClientToolInfo tool : toolbarInfo.getTools()) {
          String id = tool.getId();
          if (ToolId.TOOL_SEPARATOR.equals(id)) {
            addToolbarSeparator();
          } else {
            ToolbarBaseAction action = ToolbarRegistry.getToolbarAction(id, mapWidget);
            if (action instanceof ConfigurableAction) {
              for (Parameter parameter : tool.getParameters()) {
                ((ConfigurableAction) action).configure(parameter.getName(), parameter.getValue());
              }
            }
View Full Code Here

      // First try and get the pixelTolerance value from the selection controller configuration:
      ClientToolbarInfo toolbarInfo = mapWidget.getMapModel().getMapInfo().getToolbar();
      if (null != toolbarInfo && null != toolbarInfo.getTools()) {
        for (ClientToolInfo tool : toolbarInfo.getTools()) {
          if ("SelectionMode".equals(tool.getId())) {
            ToolbarBaseAction action = ToolbarRegistry.getToolbarAction(tool.getId(), mapWidget);
            if (action instanceof SelectionModalAction) {
              for (Parameter parameter : tool.getParameters()) {
                ((ConfigurableAction) action).configure(parameter.getName(), parameter.getValue());
              }
              pixelTolerance = ((SelectionModalAction) action).getPixelTolerance();
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.action.ToolbarBaseAction

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.