All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.app.MenuElement

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.app.MenuElement

public class MenuElement
extends NativeObject
implements MenuItem, Coding
This class wraps the Objective-C class NSMenuItem.


Constructor Index

 o MenuElement()
This default constructor is equivalent to Objective-C's [[NSMenuItem alloc] init].
 o MenuElement(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o MenuElement(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.
 o MenuElement(String, Selector, String)
This constructor has the same effect as calling - initWithTitle:action:keyEquivalent: on a newly allocated object.

Method Index

 o action()
A wrapper for the - action Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o encodeWithCoder(Coder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).
 o hasSubmenu()
A wrapper for the - hasSubmenu Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o image()
A wrapper for the - image Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o isEnabled()
A wrapper for the - isEnabled Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o isSeparatorItem()
A wrapper for the - isSeparatorItem Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o keyEquivalent()
A wrapper for the - keyEquivalent Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o keyEquivalentModifierMask()
A wrapper for the - keyEquivalentModifierMask Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o menu()
A wrapper for the - menu Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o mixedStateImage()
A wrapper for the - mixedStateImage Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o mnemonic()
A wrapper for the - mnemonic Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o mnemonicLocation()
A wrapper for the - mnemonicLocation Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o offStateImage()
A wrapper for the - offStateImage Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o onStateImage()
A wrapper for the - onStateImage Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o representedObject()
A wrapper for the - representedObject Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o separatorItem()
A wrapper for the + separatorItem Objective-C class method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setAction(Selector)
A wrapper for the - setAction: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setEnabled(boolean)
A wrapper for the - setEnabled: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setImage(Image)
A wrapper for the - setImage: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setKeyEquivalent(String)
A wrapper for the - setKeyEquivalent: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setKeyEquivalentModifierMask(int)
A wrapper for the - setKeyEquivalentModifierMask: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setMenu(Menu)
A wrapper for the - setMenu: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setMixedStateImage(Image)
A wrapper for the - setMixedStateImage: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setMnemonicLocation(int)
A wrapper for the - setMnemonicLocation: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setOffStateImage(Image)
A wrapper for the - setOffStateImage: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setOnStateImage(Image)
A wrapper for the - setOnStateImage: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setRepresentedObject(Object)
A wrapper for the - setRepresentedObject: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setState(int)
A wrapper for the - setState: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setSubmenu(Menu)
A wrapper for the - setSubmenu: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setTag(int)
A wrapper for the - setTag: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setTarget(Object)
A wrapper for the - setTarget: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setTitle(String)
A wrapper for the - setTitle: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setTitleWithMnemonic(String)
A wrapper for the - setTitleWithMnemonic: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o setUsesUserKeyEquivalents(boolean)
A wrapper for the + setUsesUserKeyEquivalents: Objective-C class method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o state()
A wrapper for the - state Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o submenu()
A wrapper for the - submenu Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o tag()
A wrapper for the - tag Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o target()
A wrapper for the - target Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o title()
A wrapper for the - title Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o userKeyEquivalent()
A wrapper for the - userKeyEquivalent Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).
 o usesUserKeyEquivalents()
A wrapper for the + usesUserKeyEquivalents Objective-C class method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

Constructors

 o MenuElement
 protected MenuElement(boolean shouldAllocate,
                       int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o MenuElement
 public MenuElement()
This default constructor is equivalent to Objective-C's [[NSMenuItem alloc] init].

 o MenuElement
 public MenuElement(String aString,
                    Selector aSelector,
                    String charCode)
This constructor has the same effect as calling - initWithTitle:action:keyEquivalent: on a newly allocated object.

 o MenuElement
 public MenuElement(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

Methods

 o setUsesUserKeyEquivalents
 public static native void setUsesUserKeyEquivalents(boolean flag)
A wrapper for the + setUsesUserKeyEquivalents: Objective-C class method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o usesUserKeyEquivalents
 public static native boolean usesUserKeyEquivalents()
A wrapper for the + usesUserKeyEquivalents Objective-C class method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o separatorItem
 public static native MenuItem separatorItem()
A wrapper for the + separatorItem Objective-C class method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setMenu
 public native void setMenu(Menu menu)
A wrapper for the - setMenu: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o menu
 public native Menu menu()
A wrapper for the - menu Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o hasSubmenu
 public native boolean hasSubmenu()
A wrapper for the - hasSubmenu Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setSubmenu
 public native void setSubmenu(Menu submenu)
A wrapper for the - setSubmenu: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o submenu
 public native Menu submenu()
A wrapper for the - submenu Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setTitle
 public native void setTitle(String aString)
A wrapper for the - setTitle: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o title
 public native String title()
A wrapper for the - title Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o isSeparatorItem
 public native boolean isSeparatorItem()
A wrapper for the - isSeparatorItem Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setKeyEquivalent
 public native void setKeyEquivalent(String aKeyEquivalent)
A wrapper for the - setKeyEquivalent: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o keyEquivalent
 public native String keyEquivalent()
A wrapper for the - keyEquivalent Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setKeyEquivalentModifierMask
 public native void setKeyEquivalentModifierMask(int mask)
A wrapper for the - setKeyEquivalentModifierMask: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o keyEquivalentModifierMask
 public native int keyEquivalentModifierMask()
A wrapper for the - keyEquivalentModifierMask Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o userKeyEquivalent
 public native String userKeyEquivalent()
A wrapper for the - userKeyEquivalent Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setMnemonicLocation
 public native void setMnemonicLocation(int location)
A wrapper for the - setMnemonicLocation: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o mnemonicLocation
 public native int mnemonicLocation()
A wrapper for the - mnemonicLocation Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o mnemonic
 public native String mnemonic()
A wrapper for the - mnemonic Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setTitleWithMnemonic
 public native void setTitleWithMnemonic(String stringWithAmpersand)
A wrapper for the - setTitleWithMnemonic: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setImage
 public native void setImage(Image menuImage)
A wrapper for the - setImage: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o image
 public native Image image()
A wrapper for the - image Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setState
 public native void setState(int state)
A wrapper for the - setState: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o state
 public native int state()
A wrapper for the - state Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setOnStateImage
 public native void setOnStateImage(Image image)
A wrapper for the - setOnStateImage: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o onStateImage
 public native Image onStateImage()
A wrapper for the - onStateImage Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setOffStateImage
 public native void setOffStateImage(Image image)
A wrapper for the - setOffStateImage: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o offStateImage
 public native Image offStateImage()
A wrapper for the - offStateImage Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setMixedStateImage
 public native void setMixedStateImage(Image image)
A wrapper for the - setMixedStateImage: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o mixedStateImage
 public native Image mixedStateImage()
A wrapper for the - mixedStateImage Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setEnabled
 public native void setEnabled(boolean flag)
A wrapper for the - setEnabled: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o isEnabled
 public native boolean isEnabled()
A wrapper for the - isEnabled Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setTarget
 public native void setTarget(Object anObject)
A wrapper for the - setTarget: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o target
 public native Object target()
A wrapper for the - target Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setAction
 public native void setAction(Selector aSelector)
A wrapper for the - setAction: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o action
 public native Selector action()
A wrapper for the - action Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setTag
 public native void setTag(int anInt)
A wrapper for the - setTag: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o tag
 public native int tag()
A wrapper for the - tag Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o setRepresentedObject
 public native void setRepresentedObject(Object anObject)
A wrapper for the - setRepresentedObject: Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o representedObject
 public native Object representedObject()
A wrapper for the - representedObject Objective-C instance method defined by the MenuItem interface (known as the NSMenuItem Objective-C protocol).

 o encodeWithCoder
 public native void encodeWithCoder(Coder aCoder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).


All Packages  Class Hierarchy  This Package  Previous  Next  Index