public interface FWDTimer extends Enabled
FWDTimer
object can be scheduled to run
repetitive tasks at fixed intervals. This is not fully compatible with ABL standard language,
it is an extension to 4GL specific to FWD.Modifier and Type | Method and Description |
---|---|
void |
cease()
Force the timer to cease firing events.
|
default character |
comHandle()
Undocumented attribute found by chance.
|
character |
getCallback()
Gets the legacy name of the callback procedure to be called at fixed interval when running
in FWD extension mode (not as a COM).
|
integer |
getInterval()
Obtain the current
interval between two consecutive events. |
void |
setCallback(character callback)
Sets the legacy name of the callback procedure to be called at fixed interval when running
in FWD extension mode (ignored when in COM mode).
|
void |
setCallback(java.lang.String callback)
Sets the legacy name of the callback procedure to be called at fixed interval when running
in FWD extension mode (ignored when in COM mode).
|
void |
setInterval(long interval)
Sets the current
interval between two consecutive events. |
void |
setInterval(NumberType interval)
Sets the current
interval between two consecutive events. |
void |
start()
Starts the timer.
|
isEnabled, setEnabled, setEnabled
integer getInterval()
interval
between two consecutive events.interval
property.void setInterval(NumberType interval)
interval
between two consecutive events. If the timer is already
enabled
, it will be automatically armed and will fire after interval
millis
elapses. Setting it to 0, will stop the timer. Setting to a negative value will lead to
an error message to be displayed.interval
- The new interval between two timer events, in milliseconds.void setInterval(long interval)
interval
between two consecutive events. If the timer is already
enabled
, it will be automatically armed and will fire after interval
millis
elapses. Setting it to 0, will stop the timer. Setting to a negative value will lead to
an error message to be displayed.interval
- The new interval between two timer events, in milliseconds.character getCallback()
void setCallback(character callback)
unknown
the timer will
continue 'ticking' but since there is no known peer to call, nothing will happen. This
property can be set while the timer is active, without resetting it.callback
- the new legacy name of the callback procedure.void setCallback(java.lang.String callback)
unknown
the timer will
continue 'ticking' but since there is no known peer to call, nothing will happen. This
property can be set while the timer is active, without resetting it.callback
- the new legacy name of the callback procedure.void start()
enabled
property to
true
. Note that timer will not be activated unless the interval
property
was set to a strictly positive value.void cease()
enabled
property to false
.
The name of the method was selected intentionally for the FWD extension since STOP
would create some syntactic incompatibility with standard ABL attributes.
default character comHandle()
ControlFrameComObject
);
comhandle
);
comhandle
-s.