Overview | Methods | Fields | This Package | All Packages
OverviewMethodsFieldsThis PackageAll Packages
Control.addOnClick
Assigns a delegate to the click event.
Syntax
public final void addOnClick( EventHandler value )
Parameters
value
The EventHandler delegate to be notified when the event occurs.
Remarks
Passing an event handler as a parameter to this method is equivalent to setting the click event to that method in the Properties window. The click event occurs when the user clicks the control. The click event can also occur when the value of a control changes.
See Also removeOnClick