com.google.gwt.user.client.Timer.createCallback()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(118)

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

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);
}

相关文章