|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.client.Timer
public class Timer
Global timer support.
This class can be used to periodically fire an event. This event can be
used to simulate e.g. a background task. The static method
#once
is a special case. It will call a function deferred after a
given timeout.
Constructor Summary | |
---|---|
Timer()
|
|
Timer(int interval)
|
Method Summary | |
---|---|
void |
_applyEnabled(java.lang.Object value,
java.lang.Object old)
Apply the enabled state of the timer. |
void |
_applyInterval(java.lang.Object value,
java.lang.Object old)
Apply the interval of the timer. |
void |
_oninterval()
timer callback |
boolean |
getEnabled()
Returns the (computed) value of the property enabled . |
java.lang.Integer |
getInterval()
Returns the (computed) value of the property interval . |
void |
initEnabled(boolean arg)
Calls the apply method and dispatches the change event of the property enabled
with the default value defined by the class developer. |
void |
initInterval(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property interval
with the default value defined by the class developer. |
boolean |
isEnabled()
Check whether the (computed) value of the boolean property enabled equals true . |
void |
resetEnabled()
Resets the user value of the property enabled . |
void |
resetInterval()
Resets the user value of the property interval . |
void |
restart()
Restart the timer. |
void |
restartWith(java.lang.Integer interval)
Restart the timer. |
void |
setEnabled(boolean arg)
Sets the user value of the property enabled . |
void |
setInterval(java.lang.Integer arg)
Sets the user value of the property interval . |
void |
start()
Start the timer |
void |
startWith(java.lang.Integer interval)
Start the timer with a given interval |
void |
stop()
Stop the timer. |
boolean |
toggleEnabled()
Toggles the (computed) value of the boolean property enabled . |
Methods inherited from class qx.core.Target |
---|
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener |
Methods inherited from class qx.core.Object |
---|
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Timer()
public Timer(int interval)
Method Detail |
---|
public void _applyEnabled(java.lang.Object value, java.lang.Object old)
Apply the enabled state of the timer.
public void _applyInterval(java.lang.Object value, java.lang.Object old)
Apply the interval of the timer.
public void _oninterval()
timer callback
public boolean getEnabled()
Returns the (computed) value of the property enabled
.
For further details take a look at the property definition: enabled
.
public java.lang.Integer getInterval()
Returns the (computed) value of the property interval
.
For further details take a look at the property definition: interval
.
public void initEnabled(boolean arg)
Calls the apply method and dispatches the change event of the property enabled
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: enabled
.
public void initInterval(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property interval
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: interval
.
public boolean isEnabled()
Check whether the (computed) value of the boolean property enabled
equals true
.
For further details take a look at the property definition: enabled
.
public void resetEnabled()
Resets the user value of the property enabled
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: enabled
.
public void resetInterval()
Resets the user value of the property interval
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: interval
.
public void restart()
Restart the timer. This makes it possible to change the interval of a running timer.
public void restartWith(java.lang.Integer interval)
Restart the timer. with a given interval.
public void setEnabled(boolean arg)
Sets the user value of the property enabled
.
For further details take a look at the property definition: enabled
.
public void setInterval(java.lang.Integer arg)
Sets the user value of the property interval
.
For further details take a look at the property definition: interval
.
public void start()
Start the timer
public void startWith(java.lang.Integer interval)
Start the timer with a given interval
public void stop()
Stop the timer.
public boolean toggleEnabled()
Toggles the (computed) value of the boolean property enabled
.
For further details take a look at the property definition: enabled
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |