Package com.gwtext.client.core

Examples of com.gwtext.client.core.Function


    resizeTo(body.getWidth(), body.getHeight());
  }

  public void addEventListener(final String event, final Function listener) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddEventListener(event, listener);
        }
      });
    } else {
View Full Code Here


   * @param operator the filter operator
   * @param value the value to compare against
   */
  public void addFilter(final String field, final FilterOperator operator, final String value) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddFilter(field, operator.getOperator(), value);
        }
      });
    } else {
View Full Code Here

   * @param operator the filter operator
   * @param value the value to compare against
   */
  public void addFilter(final String field, final FilterOperator operator, final int value) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddFilter(field, operator.getOperator(), value);
        }
      });
    } else {
View Full Code Here

   * @param operator the filter operator
   * @param value the value to compare against
   */
  public void addFilter(final String field, final FilterOperator operator, final double value) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddFilter(field, operator.getOperator(), value);
        }
      });
    } else {
View Full Code Here

   *
   * @param overlayURL adds a GeoRSS or KML overlay to the map
   */
  public void addOverlay(final String overlayURL) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddOverlay(overlayURL);
        }
      });
    } else {
View Full Code Here

   *
   * @param mapType the map type
   */
  public void setMapType(final MapType mapType) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doSetMapType(mapType.getType());
        }
      });
    } else {
View Full Code Here

   * @param overlayURL    adds a GeoRSS or KML overlay to the map
   * @param autoCenterAndZoom true to auto center and zoom after the feed is loaded
   */
  public void addOverlay(final String overlayURL, final boolean autoCenterAndZoom) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddOverlay(overlayURL, autoCenterAndZoom);
        }
      });
    } else {
View Full Code Here

   * @param east   the east boundary
   * @param north  the north boundary
   */
  public void addImageOverlay(final String id, final String imageURL, final int opacity, final double west, final double south, final double east, final double north) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddImageOverlay(id, imageURL, opacity, west, south, east, north);
        }
      });
    } else {
View Full Code Here

   * Adds a large map panning control and zoom buttons to the map. Supported by: yahoo, google,
   * openstreetmap, multimap, mapquest.
   */
  public void addLargeControls() {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddLargeControls();
        }
      });
    } else {
View Full Code Here

  /**
   * Adds a map type control to the map (streets, aerial imagery etc) Supported by: yahoo, google, openstreetmap, multimap, mapquest.
   */
  public void addMapTypeControls() {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddMapTypeControls();
        }
      });
    } else {
View Full Code Here

TOP

Related Classes of com.gwtext.client.core.Function

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.