Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: MenuItem
Wraps JavaFX CustomMenuItem, a menu item that embeds an arbitrary JavaFX node as its content. This allows controls such as sliders, text fields, or any other node to appear inline within a menu. The setHideOnClick() method controls whether the menu closes when the user interacts with the embedded node, which is useful for controls that need repeated interaction.
CustomMenuItem (object ContentObj = null)
Creates a new CustomMenuItem with optional content.
ContentObj is an optional Node to display.setContent (object ContentObj)
Sets the content node.
ContentObj is a Node to display.this object for chainingsetHideOnClick (bool Hide)
Sets whether the menu hides when this item is clicked.
Hide is a bool with true to hide on click.this object for chaininggetContent ()
Returns the content Node AJO.
An AJO around the content Node or null.contentProperty ()
Returns the ObjectProperty AJO for the content node.
An AJO around the content ObjectProperty.isHideOnClick ()
Returns whether the menu hides when the item is clicked.
A bool with true if it hides on click.hideOnClickProperty ()
Returns the BooleanProperty AJO for hideOnClick.
An AJO around the hideOnClick BooleanProperty.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.