Examples of cancel()


Examples of com.google.gwt.animation.client.Animation.cancel()

    } else {
      queue(e, DEFAULT_NAME, new Function() {
        public void cancel(Element e) {
          Animation anim = (Animation) data(e, GQAnimation.ACTUAL_ANIMATION, null);
          if (anim != null) {
            anim.cancel();
          }
        }
        public void f(Element e) {
          anim.run(duration);
        }
View Full Code Here

Examples of com.google.gwt.animation.client.AnimationScheduler.AnimationHandle.cancel()

        fail("The animation frame was cancelled and should not execute.");
      }
    }, null);

    // Cancel the animation frame.
    handle.cancel();

    // Wait to make sure it doesn't execute.
    new Timer() {
      @Override
      public void run() {
View Full Code Here

Examples of com.google.gwt.http.client.Request.cancel()

*/
public class FailedRequestTest extends RpcTestBase {
  public void testBasics() {
    Request failedRequest = new FailedRequest();
    assertFalse(failedRequest.isPending());
    failedRequest.cancel();
    assertFalse(failedRequest.isPending());
  }
}
View Full Code Here

Examples of com.google.gwt.user.client.Event.NativePreviewEvent.cancel()

  public void testNativePreviewEventAccessors() {
    // cancelNativeEvent
    {
      NativePreviewEvent event = new NativePreviewEvent();
      assertFalse(event.isCanceled());
      event.cancel();
      assertTrue(event.isCanceled());
    }

    // preventCancelNativeEvent
    {
View Full Code Here

Examples of com.google.gwt.user.client.Timer.cancel()

                }
            };

            @Override
            public void onResize(ResizeEvent event) {
                t.cancel();
                // TODO less
                t.schedule(1000);
            }
        });
    }
View Full Code Here

Examples of com.google.gwt.user.client.rpc.impl.FailedRequest.cancel()

*/
public class FailedRequestTest extends RpcTestBase {
  public void testBasics() {
    Request failedRequest = new FailedRequest();
    assertFalse(failedRequest.isPending());
    failedRequest.cancel();
    assertFalse(failedRequest.isPending());
  }
}
View Full Code Here

Examples of com.hazelcast.executor.impl.DistributedExecutorService.cancel()

    }

    @Override
    public void run() throws Exception {
        DistributedExecutorService service = getService();
        response = service.cancel(uuid, interrupt);
    }

    @Override
    public void afterRun() throws Exception {
    }
View Full Code Here

Examples of com.hazelcast.mapreduce.impl.task.JobSupervisor.cancel()

            throws Exception {
        MapReduceService mapReduceService = getService();
        mapReduceService.registerJobSupervisorCancellation(getName(), getJobId(), jobOwner);
        JobSupervisor supervisor = mapReduceService.getJobSupervisor(getName(), getJobId());
        if (supervisor != null) {
            supervisor.cancel();
        }
    }

    @Override
    protected void writeInternal(ObjectDataOutput out)
View Full Code Here

Examples of com.hazelcast.util.scheduler.EntryTaskScheduler.cancel()

    }

    void cancelEviction(ObjectNamespace namespace, Data key) {
        EntryTaskScheduler scheduler = getOrPutSynchronized(
                evictionProcessors, namespace, evictionProcessors, schedulerConstructor);
        scheduler.cancel(key);
    }

    public LockStoreContainer getLockContainer(int partitionId) {
        return containers[partitionId];
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterConcat.cancel()

    final QueryIterConcat qIter = new QueryIterConcat(context);
    Pingback<?> pingback = null;
    if (timeout > 0) {
      pingback = AlarmClock.get().add(new Callback<Object>() {
        public void proc(Object ignore) {
          qIter.cancel();
        }
      }, timeout);
    }
   
    FindQuery outgoing = new FindQuery(
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.