Package org.geomajas.widget.utility.client.action

Examples of org.geomajas.widget.utility.client.action.ButtonAction


  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);
      } else if (toolbarAction instanceof ToolbarModalAction) {
        action = new ToolbarRadioAction((ToolbarModalAction) toolbarAction, "map-controller-group");
      }
      if (action != null) {
        for (Parameter parameter : tool.getParameters()) {
          action.configure(parameter.getName(), parameter.getValue());
        }
        return action;
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of org.geomajas.widget.utility.client.action.ButtonAction

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.