@Component(tag="timer", widgetClass="Timer", parentTag="*") public class Timer extends BaseComponent
BaseComponent.SubComponent| Constructor and Description |
|---|
Timer() |
| Modifier and Type | Method and Description |
|---|---|
long |
getInterval()
Returns the interval, in milliseconds, between timer events.
|
int |
getRepeat()
Returns the repetition count.
|
boolean |
isRunning()
Returns true if the timer is running.
|
void |
restart()
A convenience method for restarting the timer.
|
void |
setInterval(long interval)
Sets the interval, in milliseconds, between timer events.
|
void |
setRepeat(int repeat)
Sets the repetition count.
|
void |
setRunning(boolean running)
Sets the run state of the timer.
|
void |
start()
A convenience method to start the timer.
|
void |
stop()
A convenience method to stop the timer.
|
_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterRemoveChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, nullify, onAttach, onDestroy, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireController@Component.PropertyGetter(value="interval") public long getInterval()
@Component.PropertySetter(value="interval") public void setInterval(long interval)
interval - The timer interval in milliseconds. Any value less than or equal to zero will
disable the timer.@Component.PropertyGetter(value="repeat") public int getRepeat()
@Component.PropertySetter(value="repeat") public void setRepeat(int repeat)
repeat - The repetition count.@Component.PropertyGetter(value="running") public boolean isRunning()
@Component.PropertySetter(value="running") public void setRunning(boolean running)
running - The run state of the timer. Set to true to start the timer, false to stop it.public void start()
public void stop()
public void restart()
Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.