Examples of VoidCallback


Examples of com.google.gwt.maps.client.impl.EventImpl.VoidCallback

   * @param handler the handler to call when this event fires.
   */
  public void addMarkerMouseOverHandler(final MarkerMouseOverHandler handler) {
    maybeInitMarkerMouseOverEvent();

    markerMouseOverHandlers.addHandler(handler, new VoidCallback() {
      @Override
      public void callback() {
        MarkerMouseOverEvent e = new MarkerMouseOverEvent(Marker.this);
        handler.onMouseOver(e);
      }
View Full Code Here

Examples of com.google.gwt.maps.client.impl.EventImpl.VoidCallback

   * @param handler the handler to call when this event fires.
   */
  public void addMarkerMouseUpHandler(final MarkerMouseUpHandler handler) {
    maybeInitMarkerMouseUpHandlers();

    markerMouseUpHandlers.addHandler(handler, new VoidCallback() {
      @Override
      public void callback() {
        MarkerMouseUpEvent e = new MarkerMouseUpEvent(Marker.this);
        handler.onMouseUp(e);
      }
View Full Code Here

Examples of com.google.gwt.maps.client.impl.EventImpl.VoidCallback

   * @param handler the handler to call when this event fires.
   */
  public void addMarkerRemoveHandler(final MarkerRemoveHandler handler) {
    maybeInitMarkerRemoveHandlers();

    markerRemoveHandlers.addHandler(handler, new VoidCallback() {
      @Override
      public void callback() {
        MarkerRemoveEvent e = new MarkerRemoveEvent(Marker.this);
        handler.onRemove(e);
      }
View Full Code Here

Examples of com.google.gwt.maps.client.impl.EventImpl.VoidCallback

    if (removeListeners == null) {
      removeListeners = new ListenerCollection<RemoveListener>();
    }

    JavaScriptObject removeEventHandles[] = {EVENT_IMPL.addListenerVoid(
        jsoPeer, MapEvent.REMOVE, new VoidCallback() {
          @Override
          public void callback() {
            listener.onRemove(Marker.this);
          }
        })};
View Full Code Here

Examples of org.apache.zookeeper.AsyncCallback.VoidCallback

                                            .getPath());
                                } else {
                                    cb.processResult(rc, path, p.ctx, null);
                                }
                            } else if (p.cb instanceof VoidCallback) {
                                VoidCallback cb = (VoidCallback) p.cb;
                                cb.processResult(rc, path, p.ctx);
                            }
                        }
                    } catch (Throwable t) {
                        LOG.error("Caught unexpected throwable", t);
                    }
View Full Code Here

Examples of org.apache.zookeeper.AsyncCallback.VoidCallback

                                            .getPath());
                                } else {
                                    cb.processResult(rc, path, p.ctx, null);
                                }
                            } else if (p.cb instanceof VoidCallback) {
                                VoidCallback cb = (VoidCallback) p.cb;
                                cb.processResult(rc, path, p.ctx);
                            }
                        }
                    } catch (Throwable t) {
                        LOG.error("Caught unexpected throwable", t);
                    }
View Full Code Here

Examples of org.apache.zookeeper.AsyncCallback.VoidCallback

                                    .substring(chrootPath.length())));
                      } else {
                          cb.processResult(rc, clientPath, p.ctx, null);
                      }
                  } else if (p.cb instanceof VoidCallback) {
                      VoidCallback cb = (VoidCallback) p.cb;
                      cb.processResult(rc, clientPath, p.ctx);
                  }
              }
          } catch (Throwable t) {
              LOG.error("Caught unexpected throwable", t);
          }
View Full Code Here

Examples of org.apache.zookeeper.AsyncCallback.VoidCallback

  @Override
  public void sync(final String path) throws KeeperException, InterruptedException {
    final AtomicInteger rc = new AtomicInteger();
    final AtomicBoolean waiter = new AtomicBoolean(false);
    getZooKeeper().sync(path, new VoidCallback() {
      @Override
      public void processResult(int code, String arg1, Object arg2) {
        rc.set(code);
        synchronized (waiter) {
          waiter.set(true);
View Full Code Here

Examples of org.apache.zookeeper.AsyncCallback.VoidCallback

  @Override
  public void sync(final String path) throws KeeperException, InterruptedException {
    final AtomicInteger rc = new AtomicInteger();
    final AtomicBoolean waiter = new AtomicBoolean(false);
    getZooKeeper().sync(path, new VoidCallback() {
      @Override
      public void processResult(int code, String arg1, Object arg2) {
        rc.set(code);
        synchronized (waiter) {
          waiter.set(true);
View Full Code Here

Examples of org.apache.zookeeper.AsyncCallback.VoidCallback

                                    .substring(chrootPath.length())));
                      } else {
                          cb.processResult(rc, clientPath, p.ctx, null);
                      }
                  } else if (p.cb instanceof VoidCallback) {
                      VoidCallback cb = (VoidCallback) p.cb;
                      cb.processResult(rc, clientPath, p.ctx);
                  }
              }
          } catch (Throwable t) {
              LOG.error("Caught unexpected throwable", t);
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.