Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: MenuItem
Wraps JavaFX CheckMenuItem, a menu item with a checkmark toggle that tracks a selected/unselected state. When the user clicks the item, the checkmark toggles and the state is retained until changed again. Use setSelected() to set the initial state programmatically and getSelected() to read it. An onClick() callback fires each time the item is clicked.
CheckMenuItem (string Text = "")
Creates a new CheckMenuItem with the specified text.
Text is a string with the menu item label.setSelected (bool Selected)
Sets the selected state.
Selected is a bool with true to check.this object for chaininggetSelected ()
Gets the selected state.
A bool with true if checked.onClick (callback OnClick)
Sets a callback for when the item is clicked.
OnClick is a callback to call on click.this object for chainingisSelected ()
Returns true if the menu item is currently checked. Mirrors the JavaFX isSelected method name; getSelected is the existing alias.
A bool with the selected state.selectedProperty ()
Returns the property that holds the selected state. Bind or attach listeners to react when the checkmark toggles.
A BooleanProperty AJO holding the selected state.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.