本文整理了Java中com.google.gwt.user.client.Timer.createCallback()
方法的一些代码示例,展示了Timer.createCallback()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Timer.createCallback()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Timer
类名称:Timer
方法名:createCallback
暂无
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Schedules a timer that elapses repeatedly. If the timer is already running then it will be
* first canceled before re-scheduling.
*
* @param periodMillis how long to wait before the timer elapses, in milliseconds, between each
* repetition
*/
public void scheduleRepeating(int periodMillis) {
if (periodMillis <= 0) {
throw new IllegalArgumentException("must be positive");
}
if (isRunning()) {
cancel();
}
isRepeating = true;
timerId = setInterval(createCallback(this, cancelCounter), periodMillis);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Schedules a timer to elapse in the future. If the timer is already running then it will be
* first canceled before re-scheduling.
*
* @param delayMillis how long to wait before the timer elapses, in milliseconds
*/
public void schedule(int delayMillis) {
if (delayMillis < 0) {
throw new IllegalArgumentException("must be non-negative");
}
if (isRunning()) {
cancel();
}
isRepeating = false;
timerId = setTimeout(createCallback(this, cancelCounter), delayMillis);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Schedules a timer to elapse in the future. If the timer is already running then it will be
* first canceled before re-scheduling.
*
* @param delayMillis how long to wait before the timer elapses, in milliseconds
*/
public void schedule(int delayMillis) {
if (delayMillis < 0) {
throw new IllegalArgumentException("must be non-negative");
}
if (isRunning()) {
cancel();
}
isRepeating = false;
timerId = setTimeout(createCallback(this, cancelCounter), delayMillis);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Schedules a timer to elapse in the future. If the timer is already running then it will be
* first canceled before re-scheduling.
*
* @param delayMillis how long to wait before the timer elapses, in milliseconds
*/
public void schedule(int delayMillis) {
if (delayMillis < 0) {
throw new IllegalArgumentException("must be non-negative");
}
if (isRunning()) {
cancel();
}
isRepeating = false;
timerId = setTimeout(createCallback(this, cancelCounter), delayMillis);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Schedules a timer that elapses repeatedly. If the timer is already running then it will be
* first canceled before re-scheduling.
*
* @param periodMillis how long to wait before the timer elapses, in milliseconds, between each
* repetition
*/
public void scheduleRepeating(int periodMillis) {
if (periodMillis <= 0) {
throw new IllegalArgumentException("must be positive");
}
if (isRunning()) {
cancel();
}
isRepeating = true;
timerId = setInterval(createCallback(this, cancelCounter), periodMillis);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Schedules a timer that elapses repeatedly. If the timer is already running then it will be
* first canceled before re-scheduling.
*
* @param periodMillis how long to wait before the timer elapses, in milliseconds, between each
* repetition
*/
public void scheduleRepeating(int periodMillis) {
if (periodMillis <= 0) {
throw new IllegalArgumentException("must be positive");
}
if (isRunning()) {
cancel();
}
isRepeating = true;
timerId = setInterval(createCallback(this, cancelCounter), periodMillis);
}
内容来源于网络,如有侵权,请联系作者删除!