Package com.google.gwt.core.client

Examples of com.google.gwt.core.client.JavaScriptObject


   *
   * @see Directions#load(String,DirectionQueryOptions,DirectionsCallback)
   */
  public static void loadFromWaypoints(Waypoint[] waypoints,
      DirectionQueryOptions options, DirectionsCallback callback) {
    JavaScriptObject jsoPeer = createDirections(options);
    DirectionsImpl.impl.loadFromWaypoints(jsoPeer, JsUtil.toJsList(waypoints),
        options);
    if (callback != null) {
      addLoadListener(jsoPeer, callback);
    }
View Full Code Here


          handler.onUncaughtException(e);
        }
      }
    };

    JavaScriptObject outerJsoPeer = GeoXmlOverlayImpl.impl.constructGeoXmlOverlay(
        url, voidCb);

    // TODO: In theory, a fast callback return could cause the callback() method
    // to execute before this method gets called.
    voidCb.setJsoPeer(outerJsoPeer);
View Full Code Here

   * @throws GearsException on any error
   */
  public ManagedResourceStore createManagedResourceStore(String name,
      String requiredCookie) throws GearsException {
    try {
      JavaScriptObject jso = nativeCallMethod("createManagedStore", name,
          requiredCookie);
      if (jso == null) {
        return null;
      }
      return new ManagedResourceStore(jso);
View Full Code Here

   * @throws GearsException on any error
   */
  public ResourceStore createResourceStore(String name, String requiredCookie)
      throws GearsException {
    try {
      JavaScriptObject jso = nativeCallMethod("createStore", name,
          requiredCookie);
      if (jso == null) {
        return null;
      }
      return new ResourceStore(jso);
View Full Code Here

   * @throws GearsException on any error
   */
  public ManagedResourceStore openManagedResourceStore(String name,
      String requiredCookie) throws GearsException {
    try {
      JavaScriptObject jso = nativeCallMethod("openManagedStore", name,
          requiredCookie);
      if (jso == null) {
        return null;
      }
      return new ManagedResourceStore(jso);
View Full Code Here

   * @throws GearsException on any error
   */
  public ResourceStore openResourceStore(String name, String requiredCookie)
      throws GearsException {
    try {
      JavaScriptObject jso = nativeCallMethod("openStore", name, requiredCookie);
      if (jso == null) {
        return null;
      }
      return new ResourceStore(jso);
    } catch (JavaScriptException e) {
View Full Code Here

   *          being dragged
   */
  public MapWidget(LatLng center, int zoomLevel, String draggableCursor,
      String draggingCursor) {
    initWidget(mapContainer);
    JavaScriptObject opts = MapOptionsImpl.impl.construct();
    MapOptionsImpl.impl.setDraggableCursor(opts, draggableCursor);
    MapOptionsImpl.impl.setDraggingCursor(opts, draggingCursor);
    jsoPeer = MapImpl.impl.construct(getElement(), opts);
    MapImpl.impl.bind(jsoPeer, this);
    setCenter(center, zoomLevel);
View Full Code Here

  @Deprecated
  public void addInfoWindowListener(final InfoWindowListener listener) {
    if (infoWindowListeners == null) {
      infoWindowListeners = new ListenerCollection<InfoWindowListener>();
    }
    JavaScriptObject infoWindowEventHandles[] = {
        EventImpl.impl.addListenerVoid(jsoPeer, MapEvent.INFOWINDOWOPEN,
            new VoidCallback() {
              @Override
              public void callback() {
                listener.onInfoWindowOpened(MapWidget.this);
View Full Code Here

  @Deprecated
  public void addMapClickListener(final MapClickListener listener) {
    if (clickListeners == null) {
      clickListeners = new ListenerCollection<MapClickListener>();
    }
    JavaScriptObject clickEventHandles[] = {
        EventImpl.impl.addListener(jsoPeer, MapEvent.CLICK,
            new OverlayLatLngCallback() {
              @Override
              public void callback(Overlay overlay, LatLng latlng) {
                listener.onClick(MapWidget.this, overlay, latlng);
View Full Code Here

  @Deprecated
  public void addMapDragListener(final MapDragListener listener) {
    if (dragListeners == null) {
      dragListeners = new ListenerCollection<MapDragListener>();
    }
    JavaScriptObject dragEventHandles[] = {
        EventImpl.impl.addListenerVoid(jsoPeer, MapEvent.DRAGSTART,
            new VoidCallback() {
              @Override
              public void callback() {
                listener.onDragStart(MapWidget.this);
View Full Code Here

TOP

Related Classes of com.google.gwt.core.client.JavaScriptObject

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.