Assigns a delegate to the click event.
public void addOnClick( EventHandler value )
value
The EventHandler delegate to be notified when the event occurs.
The click event occurs when this menu item is clicked by the user, using either the mouse, mnemonic keys, or shortcut keys.
This event is fired only for menu items that are not submenus.