Package com.gwtext.client.core

Examples of com.gwtext.client.core.Function


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

  /**
   * Executes all filters added since last call
   */
  public void doFilter() {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          _doFilter();
        }
      });
    } else {
View Full Code Here

   *
   * @param dragging true to enable dragging
   */
  public void setDragging(final boolean dragging) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doSetDragging(dragging);
        }
      });
    } else {
View Full Code Here

        map.resizeTo(width, height);
    }-*/;

  public void setCenterAndZoom(final LatLonPoint latLonPoint, final int zoom) {
    if (!mapRendered) {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          doSetCenterAndZoom(latLonPoint, zoom);
        }
      });
    } else {
View Full Code Here

          component.render(MapPanel.this.getBody().getDOM());
        }
      });

    } else {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          component.render(MapPanel.this.getBody().getDOM());
        }
      });
    }
View Full Code Here

  public void add(final Component component, int top, int right) {
    component.setStyle("position:absolute;right:" + right + "px;top:" + top + "px;z-index:1000000;");
    if (mapRendered) {
      component.render(MapPanel.this.getBody().getDOM());
    } else {
      addListener(MAP_RENDERED_EVENT, new Function() {
        public void execute() {
          component.render(MapPanel.this.getBody().getDOM());
        }
      });
    }
View Full Code Here

     * @param function the function to execute on render
     * @param delayMillis a delay in milliseconds
     */
    public void doOnRender(final Function function, final int delayMillis) {
        if(!isRendered()) {
            addListener("render", new Function() {
                public void execute() {
                    new Timer() {
                        public void run() {
                             function.execute();
                        }
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.