PopupMenu

The root node for a pop-up menu. The visible items for the pop-up menu are taken from Menu.items or SubMenu.items. A PopupMenu is displayed as a new scene in a new OverlayStage (StageType.POPUP), and is therefore NOT part of the scene graph of the Menu or SubMenu from which it originated.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val children: ObservableList<VBox>

The base class Node has no children, so this is an empty list.

Link copied to clipboard
open override val items: MutableObservableList<Node>

Nodes which appear in the ToolBar. Most commonly Buttons, but can be any Nodes.

Functions

Link copied to clipboard
open override fun nodePrefHeight(): Float

Each subclass of node can determine its preferred height. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
open override fun nodePrefWidth(): Float

Each subclass of node can determine its preferred width. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
fun show(nearNode: Node): Stage
fun show(nearNode: Node, side: Side): Stage
fun show(x: Float, y: Float, parentStage: Stage): Stage