Package org.zkoss.gmaps.event

Examples of org.zkoss.gmaps.event.MapDataEvent


      //such that we won't render the same set of data twice.
    } else {
      //20090721, Henri Chen: Shall not remove those kids not controlled by
      //the _model.
      //trigger model clear to remove controlled kids
      onMapDataChange(new MapDataEvent(_model, MapDataEvent.CLEARED, null));
      _model.removeMapDataListener(_dataListener);
      removeOnMapMove();
      _model = null;
    }
  }
View Full Code Here


    //bounds not initiated yet(do it at server side)
    if (getSwlat() == 37.418026932311111) {
      initBounds();
    }
    if (_model != null)
      onMapDataChange(new MapDataEvent(_model, MapDataEvent.BOUNDS_CHANGED,
        _model.getItemsIn(getSwlat(), getSwlng(), getNelat(), getNelng(), getLat(), getLng(), _zoom)));
  }
View Full Code Here

   * <p>Note: you can invoke this method only in an event listener.
   * @param type the {@link MapDataEvent} type
   * @param items the items to be processed
   */
  protected void fireEvent(int type, Collection items) {
    final MapDataEvent evt = new MapDataEvent(this, type, items);
    for (Iterator it = _listeners.iterator(); it.hasNext();)
      ((MapDataListener)it.next()).onChange(evt);
  }
View Full Code Here

TOP

Related Classes of org.zkoss.gmaps.event.MapDataEvent

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.