本文整理了Java中com.google.gwt.animation.client.Animation.onCancel()
方法的一些代码示例,展示了Animation.onCancel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Animation.onCancel()
方法的具体详情如下:
包路径:com.google.gwt.animation.client.Animation
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!