JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

A context menu control.

Inherited Variables

mindfusion.controls.MenuItem

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicactionfunction(:MenuItem):Void

Invoked when the user clicks on the menu item.

publiccontentNode

A node representing the menu item contents.

publicenabledBooleantrue

A value indicating whether the item is enabled.

publicitemsByte[]

The menu subitems, if any.

public-readparentItemMenuItem

The parent menu item, if this item is a child to another menu item.

publictagObject

An user-defined object, associated with the item.

Function Summary

public show(parent: Node, x: Number, y: Number) : Void

Displays the context menu for the specified node at the specified coordinates, relative to the node's bounding box.

Displays the context menu for the specified node at the specified coordinates, relative to the node's bounding box. The context menu must have been previously added to the node graph.

Parameters
parent
The node for which to display the menu.
x
The x-coordinate of the mouse relative to the specified node.
y
The y-coordinate of the mouse relative to the specified node.
 

Inherited Functions