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

Profile: desktop, common

Overview

JavaFX wrapper for the native AWT Menu class.

This is ideally suited for instances where native menus are required, such as for use with the SystemTray. For menus that you can associate with a org.jfxtras.stage.JFXStage or org.jfxtras.stage.JFXDialog please refer to Menu (not yet implemented).

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicitemsNativeMenuEntry[]

A sequence of NativeMenuEntrys associated with this Menu.

Inherited Variables

org.jfxtras.menu.NativeMenuItem

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicactionfunction():Void

Action that will get executed when this menu item is clicked.

publictextString

The name of this menu item.

The name of this menu item. Corresponds to the label property on the native peer.

 

Function Summary

public getMenu() : java.awt.Menu

Returns the java.awt.Menu instance associated with this class.

Returns the java.awt.Menu instance associated with this class.

Returns
Menu
The native java.awt.Menu instance
 

Inherited Functions

org.jfxtras.menu.NativeMenuItem

public getMenuItem() : java.awt.MenuItem

Returns the java.awt.MenuItem instance associated with this class.

Returns the java.awt.MenuItem instance associated with this class.

Returns
MenuItem
The native java.awt.MenuItem instance