Package com.gwtext.client.core

Examples of com.gwtext.client.core.Function


   *
   * @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


     * Sets the fields value regardless if the field is rendered or not
     * @param value the value to set the field
     */
    public void setValue(final float value){
    if(!isRendered()) {
      addListener("render", new Function() {
        public void execute() {
          setValueJ(value);
        }
      });
    } 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

   * @param marker the marker to add
   * @param old  If true, doesn't add this marker to the markers array. Used by the "swap" method
   */
  private void addMarker(final Marker marker, final boolean old) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddMarker(marker, old);
        }
      });
    } else {
View Full Code Here

   * @param polyline the polyline to add
   * @param
   */
  private void addPolyline(final Polyline polyline, final boolean old) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAddPolyline(polyline, old);
        }
      });
    } else {
View Full Code Here

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

  /**
   * Sets the center and zoom of the map to the smallest bounding box containing all markers
   */
  public void autoCenterAndZoom() {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doAutoCenterAndZoom();
        }
      });
    } 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.