com.google.gwt.animation.client.Animation.onCancel()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(81)

本文整理了Java中com.google.gwt.animation.client.Animation.onCancel()方法的一些代码示例,展示了Animation.onCancel()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Animation.onCancel()方法的具体详情如下:
包路径:com.google.gwt.animation.client.Animation
类名称:Animation
方法名:onCancel

Animation.onCancel介绍

[英]Called immediately after the animation is canceled. The default implementation of this method calls #onComplete() only if the animation has actually started running.
[中]在动画取消后立即调用。仅当动画实际开始运行时,此方法的默认实现才会调用#onComplete()。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Immediately cancel this animation. If the animation is running or is
 * scheduled to run, {@link #onCancel()} will be called.
 */
public void cancel() {
 // Ignore if the animation is not currently running.
 if (!isRunning) {
  return;
 }
 // Reset the state.
 wasStarted = isStarted; // Used by onCancel.
 element = null;
 isRunning = false;
 isStarted = false;
 // Cancel the animation request.
 if (requestHandle != null) {
  requestHandle.cancel();
  requestHandle = null;
 }
 onCancel();
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

@Override
public void onCancel() {
  super.onCancel();
}

代码示例来源:origin: kiegroup/appformer

@Override
public void onCancel() {
  super.onCancel();
}

代码示例来源:origin: kiegroup/appformer

@Override
public void onCancel() {
  super.onCancel();
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Immediately cancel this animation. If the animation is running or is
 * scheduled to run, {@link #onCancel()} will be called.
 */
public void cancel() {
 // Ignore if the animation is not currently running.
 if (!isRunning) {
  return;
 }
 // Reset the state.
 wasStarted = isStarted; // Used by onCancel.
 element = null;
 isRunning = false;
 isStarted = false;
 // Cancel the animation request.
 if (requestHandle != null) {
  requestHandle.cancel();
  requestHandle = null;
 }
 onCancel();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Immediately cancel this animation. If the animation is running or is
 * scheduled to run, {@link #onCancel()} will be called.
 */
public void cancel() {
 // Ignore if the animation is not currently running.
 if (!isRunning) {
  return;
 }
 // Reset the state.
 wasStarted = isStarted; // Used by onCancel.
 element = null;
 isRunning = false;
 isStarted = false;
 // Cancel the animation request.
 if (requestHandle != null) {
  requestHandle.cancel();
  requestHandle = null;
 }
 onCancel();
}

相关文章