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

Profile: desktop, common

Overview

JavaFX wrapper for native AWT PopupMenus.

Profile: desktop

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicparentComponent

The parent component for this pop-up menu.

Inherited Variables

org.jfxtras.menu.NativeMenu

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicitemsNativeMenuEntry[]

A sequence of NativeMenuEntrys associated with this Menu.

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 getPopupMenu() : java.awt.PopupMenu

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

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

Returns
PopupMenu
The native java.awt.PopupMenu instance
 
public show(origin: java.awt.Component, x: Integer, y: Integer) : Void

Shows the pop-up menu on screen at the specified coordinates relative to the origin component.

Shows the pop-up menu on screen at the specified coordinates relative to the origin component.

Parameters
origin
x
y
 

Inherited Functions

org.jfxtras.menu.NativeMenu

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
 

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