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

### master index

### Profile: desktop, common

- #### mindfusion.controls

  - Border
  - Calendar
  - Clock
  - ComboBox
  - ContextMenu
  - DatePicker
  - DropDown
  - DropDownStyle
  - Grid
  - GridColumn
  - GridEditorBehavior
  - InlineEditor
  - InlineEditorBehavior
  - ListView
  - MdiWindow
  - Menu
  - MenuItem
  - MessageBox
  - MessageBoxButtons
  - MessageBoxResult
  - Reflection
  - ScrollView
  - Separator
  - SortType
  - SunkenBorder
  - TabPage
  - TabView
  - Thickness
  - ToolBar
  - ToolBarItem
  - ToolTip
  - TreeView
  - TreeViewItem
  - Window
  - WindowHost
  - WindowState
- Copyright 2008-2009
  Sun Microsystems, Inc.
  Use is subject to license terms.

# public class mindfusion.controls.ContextMenu

## Inherits from: .Control > mindfusion.controls.MenuItem > mindfusion.controls.ContextMenu mindfusion.controls.MenuItem, .Control,

## Known subclasses:

- Jump to Section:
- overview
- variables
- functions

### Overview

A context menu control.

### Inherited Variables

#### mindfusion.controls.MenuItem

access | name | type | Can Read | Can Init | Can Write | Default Value | description
--- | --- | --- | --- | --- | --- | --- | ---
public | action | function(:MenuItem):Void |  |  |  |  | Invoked when the user clicks on the menu item.
public | content | Node |  |  |  |  | A node representing the menu item contents.
public | enabled | Boolean |  |  |  | true | A value indicating whether the item is enabled.
public | items | Byte[] |  |  |  |  | The menu subitems, if any.
public-read | parentItem | MenuItem |  |  |  |  | The parent menu item, if this item is a child to another menu item.
public | tag | Object |  |  |  |  | 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.
  &nbsp;

### Inherited Functions