Assigns a delegate to the mouseWheel event.
public final void addOnMouseWheel( MouseEventHandler value )
value
The MouseEventHandler delegate to be notified when the event occurs.
Passing an event handler as a parameter to this method is equivalent to setting the mouseWheel event to that method in the Properties window. The mouseWheel event occurs when the user rotates the mouse wheel while this control has the focus. Pressing the mouse wheel generates a mouseDown event with the middle button pressed.
See Also removeOnMouseWheel