Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Timer.setEnabled

Determines whether the Timer control's timer event is being triggered.

Syntax

public final synchronized void setEnabled( boolean value )

Parameters

value

Set to true to enable the Timer control to trigger its timer event; otherwise, set to false.

Remarks

Use the setEnabled method to enable or disable the triggering of the timer event. You can use this method to turn the Timer control's abilities on and off. To allow the Timer control to be properly released for garbage collection, you must ensure that the enabled property is set to false before the control is disposed of.

See Also  getEnabled, start, stop