Assigns a delegate to the popup event.
public void addOnPopup( EventHandler value )
value
The EventHandler delegate to be notified when the event occurs.
The popup event occurs when the context menu is about to be displayed. Typically, you use this event handler to add, remove, enable, or disable items contained in the menu, as appropriate.
See Also onPopup, removeOnPopup