Package org.geomajas.gwt.client.action

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


public class Printing implements EntryPoint {

  public static final String SHOW_DEFAULT_PRINT_KEY = "ShowDefaultPrint";

  public void onModuleLoad() {
    ToolbarRegistry.put(SHOW_DEFAULT_PRINT_KEY, new ToolCreator() {

      public ToolbarBaseAction createTool(MapWidget mapWidget) {
        return new PrintAction(mapWidget);
      }
    });
View Full Code Here


* @author Joachim Van der Auwera
*/
public class GeocoderEntryPoint implements EntryPoint {

  public void onModuleLoad() {
    ToolbarRegistry.put(GeocoderToolId.TOOL_GEOCODER, new ToolCreator() {
      public ToolbarBaseAction createTool(MapWidget mapWidget) {
        return new GeocoderAction(mapWidget);
      }
    });
  }
View Full Code Here

   * @param mapWidget
   *            map which will contain this tool
   * @return toolbar action or null when key not found
   */
  public static ToolbarBaseAction getToolbarAction(String key, MapWidget mapWidget) {
    ToolCreator toolCreator = REGISTRY.get(key);
    if (null == toolCreator) {
      return null;
    }
    return toolCreator.createTool(mapWidget);
  }
View Full Code Here

   * @param mapWidget
   *            map which will contain this tool
   * @return toolbar action or null when key not found
   */
  public static ToolbarBaseAction getToolbarAction(String key, MapWidget mapWidget) {
    ToolCreator toolCreator = REGISTRY.get(key);
    if (null == toolCreator) {
      return null;
    }
    return toolCreator.createTool(mapWidget);
  }
View Full Code Here

public class Printing implements EntryPoint {

  public static final String SHOW_DEFAULT_PRINT_KEY = "ShowDefaultPrint";

  public void onModuleLoad() {
    ToolbarRegistry.put(SHOW_DEFAULT_PRINT_KEY, new ToolCreator() {

      public ToolbarBaseAction createTool(MapWidget mapWidget) {
        return new PrintingAction(mapWidget);
      }
    });
View Full Code Here

TOP

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

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.