final void fire(int scheduleCancelCounter) { // Workaround for broken clearTimeout in IE. if (scheduleCancelCounter != cancelCounter) { return; } if (!isRepeating) { timerId = null; } // Run the timer's code. run(); }
final void fire(int scheduleCancelCounter) { // Workaround for broken clearTimeout in IE. if (scheduleCancelCounter != cancelCounter) { return; } if (!isRepeating) { timerId = null; } // Run the timer's code. run(); }
@Override public void run() { timer.run(); } }, delayMillis);
@Override public void run() { timer.run(); } }, delayMillis);
@Override public void run() { timer.run(); } }, periodMillis, periodMillis);
final void fire(int scheduleCancelCounter) { // Workaround for broken clearTimeout in IE. if (scheduleCancelCounter != cancelCounter) { return; } if (!isRepeating) { timerId = null; } // Run the timer's code. run(); }
@Override public void run() { timer.run(); } }, periodMillis, periodMillis);
@Override public void run() { queryParams = queryParamCallback.getQueryParams(); timer.run(); } }.schedule(500);
/** * Starts this sync worker if it has not already been started or stopped. * * @param queryParams * Name-value pairs for all named parameters in the named query. Never null. * * @throws IllegalStateException * if this sync worker has been stopped. */ public void start(Map<String, Object> queryParams) { if (stopped) throw new IllegalStateException("This worker was already stopped"); this.queryParams = Assert.notNull(queryParams); started = true; // let's sync immediately so we don't have to wait 5 seconds before the first sync timer.run(); }
public void startMonitoring() { if (panel.isAttached()) { timer.run(); timer.scheduleRepeating(interval); } }
public void triggerLazyColumnAdjustment(boolean now) { lazyAdjustColumnWidths.cancel(); if (now) { lazyAdjustColumnWidths.run(); } else { lazyAdjustColumnWidths.schedule(LAZY_COLUMN_ADJUST_TIMEOUT); } }
/** * Cancels any running timers and starts a new one. * * @param delay the delay in ms */ public void delay(int delay) { timer.cancel(); if (delay > 0) { timer.schedule(delay); } else { timer.run(); } }
/** * Cancels any running timers and starts a new one. * * @param delay the delay in ms */ public void delay(int delay) { timer.cancel(); if (delay > 0) { timer.schedule(delay); } else { timer.run(); } }
/** * Cancels any running timers and starts a new one. * * @param delay the delay in ms */ public void delay(int delay) { timer.cancel(); if (delay > 0) { timer.schedule(delay); } else { timer.run(); } }
T unFocus() { cancelUnFocusTimer(); if (unFocusDelay > 0) { unFocusDelayTimer.schedule(unFocusDelay); } else { unFocusDelayTimer.run(); } return cast(); }
T focus() { cancelFocusTimer(); if (focusDelay > 0) { focusDelayTimer.schedule(focusDelay); } else { focusDelayTimer.run(); } return cast(); }
public void onSuccess( String inspectionResult ) { mLastInspection = mPipeline.stringToElement( inspectionResult ); try { mIgnoreAddRemove = true; mPipeline.buildWidgets( mLastInspection ); } catch ( Exception e ) { GwtUtils.alert( e ); } finally { mIgnoreAddRemove = false; } mNeedToBuildWidgets = BUILDING_COMPLETE; // For unit tests if ( mExecuteAfterBuildWidgets != null ) { Timer executeAfterBuildWidgets = mExecuteAfterBuildWidgets; mExecuteAfterBuildWidgets = null; executeAfterBuildWidgets.run(); } } } );
public void unbind() { if (socket != null) { Sockets sockets = Window.current().getObject(DOM_NAME); sockets.remove(socket); queueTimer.cancel(); // run once to empty queue queueTimer.run(); socket = null; } }
startTimer.run(); } else { startTimer.schedule(delay);