file: MenuItem.aus

class: MenuItem

[18:7] extends: FxObj

Wraps JavaFX MenuItem, a single selectable item in a Menu or ContextMenu that triggers an action when chosen. Each item displays a text label and optionally an image graphic. Register a click handler with onClick() to respond when the user selects the item. MenuItem is the base type for more specialized items such as CheckMenuItem and RadioMenuItem. MenuItem is not a Node — it inherits directly from Object and implements EventTarget and Styleable. It is consumed by Menu and ContextMenu rather than being placed in the scene graph itself.

Methods