MenuItem Data Type

Subtypes
Menu
Implemented Interfaces
Accessible, Serializable
Properties
name data type constraints description
actionListeners array of ActionListener  
label string  
enabled boolean required
actionCommand string  
shortcut MenuShortcut  
accessibleContext AccessibleContext  
Properties inherited from MenuComponent
font Font  
parent MenuContainer  
name string  
accessibleContext AccessibleContext  

Example

{
  "actionListeners" : [ { }, { } ],
  "label" : "...",
  "enabled" : true,
  "actionCommand" : "...",
  "shortcut" : {
    "key" : 12345
  },
  "accessibleContext" : {
    "accessibleEditableText" : {
      "selectionStart" : 12345,
      "selectedText" : "...",
      "selectionEnd" : 12345,
      "charCount" : 12345,
      "caretPosition" : 12345
    },
    "accessibleComponent" : {
      "foreground" : { },
      "enabled" : true,
      "cursor" : { },
      "location" : { },
      "showing" : true,
      "background" : { },
      "locationOnScreen" : { },
      "bounds" : { },
      "visible" : true,
      "size" : { },
      "font" : { },
      "focusTraversable" : true
    },
    "accessibleStateSet" : { },
    "accessibleChildrenCount" : 12345,
    "accessibleAction" : {
      "accessibleActionCount" : 12345
    },
    "accessibleRelationSet" : { },
    "accessibleIndexInParent" : 12345,
    "accessibleValue" : {
      "currentAccessibleValue" : { },
      "minimumAccessibleValue" : { },
      "maximumAccessibleValue" : { }
    },
    "accessibleSelection" : {
      "accessibleSelectionCount" : 12345
    },
    "accessibleDescription" : "...",
    "accessibleParent" : {
      "accessibleContext" : { }
    },
    "accessibleText" : {
      "selectionStart" : 12345,
      "selectedText" : "...",
      "selectionEnd" : 12345,
      "charCount" : 12345,
      "caretPosition" : 12345
    },
    "locale" : "...",
    "accessibleName" : "...",
    "accessibleRole" : { },
    "accessibleIcon" : [ {
      "accessibleIconHeight" : 12345,
      "accessibleIconDescription" : "...",
      "accessibleIconWidth" : 12345
    }, {
      "accessibleIconHeight" : 12345,
      "accessibleIconDescription" : "...",
      "accessibleIconWidth" : 12345
    } ],
    "accessibleTable" : {
      "accessibleColumnHeader" : { },
      "accessibleCaption" : { },
      "accessibleColumnCount" : 12345,
      "accessibleSummary" : { },
      "accessibleRowHeader" : { },
      "selectedAccessibleColumns" : [ 12345, 12345 ],
      "selectedAccessibleRows" : [ 12345, 12345 ],
      "accessibleRowCount" : 12345
    }
  },
  "font" : {
    "italic" : true,
    "missingGlyphCode" : 12345,
    "plain" : true,
    "size2D" : 12345.0,
    "numGlyphs" : 12345,
    "italicAngle" : 12345.0,
    "name" : "...",
    "transform" : {
      "type" : 12345,
      "scaleY" : 12345.0,
      "identity" : true,
      "translateX" : 12345.0,
      "scaleX" : 12345.0,
      "translateY" : 12345.0,
      "shearX" : 12345.0,
      "shearY" : 12345.0,
      "determinant" : 12345.0
    },
    "PSName" : "...",
    "bold" : true,
    "availableAttributes" : [ { }, { } ],
    "transformed" : true,
    "attributes" : {
      "property1" : { },
      "property2" : { }
    },
    "fontName" : "...",
    "family" : "...",
    "style" : 12345,
    "size" : 12345
  },
  "parent" : {
    "font" : {
      "italic" : true,
      "missingGlyphCode" : 12345,
      "plain" : true,
      "size2D" : 12345.0,
      "numGlyphs" : 12345,
      "italicAngle" : 12345.0,
      "name" : "...",
      "transform" : { },
      "PSName" : "...",
      "bold" : true,
      "availableAttributes" : [ { }, { } ],
      "transformed" : true,
      "attributes" : {
        "property1" : { },
        "property2" : { }
      },
      "fontName" : "...",
      "family" : "...",
      "style" : 12345,
      "size" : 12345
    }
  },
  "name" : "..."
}