com.jniwrapper.macosx.cocoa.nsmenuitem
Interface NSMenuItemProtocol

All Superinterfaces:
NSCodingProtocol, NSCopyingProtocol, NSObjectProtocol, NSValidatedUserInterfaceItemProtocol
All Known Implementing Classes:
NSMenuItem

public interface NSMenuItemProtocol
extends NSCopyingProtocol, NSCodingProtocol, NSObjectProtocol, NSValidatedUserInterfaceItemProtocol

This interface represents NSMenuItemProtocol protocol. See the protocol documentation at the Apple's site: NSMenuItemProtocol


Method Summary
 Sel action()
           
 com.jniwrapper.Pointer.Void attributedTitle()
           
 com.jniwrapper.Bool hasSubmenu()
           
 com.jniwrapper.Pointer.Void image()
           
 com.jniwrapper.Int indentationLevel()
           
 Id initWithTitle_action_keyEquivalent(java.lang.String aString, Sel aSelector, java.lang.String charCode)
          This method represents the initWithTitle() method of the NSMenuItemProtocol Objective-C protocol.
 com.jniwrapper.Bool isAlternate()
           
 com.jniwrapper.Bool isEnabled()
           
 com.jniwrapper.Bool isSeparatorItem()
           
 com.jniwrapper.Pointer.Void keyEquivalent()
           
 com.jniwrapper.UInt keyEquivalentModifierMask()
           
 com.jniwrapper.Pointer.Void menu()
           
 com.jniwrapper.Pointer.Void mixedStateImage()
           
 com.jniwrapper.Pointer.Void mnemonic()
           
 com.jniwrapper.UInt16 mnemonicLocation()
           
 com.jniwrapper.Pointer.Void offStateImage()
           
 com.jniwrapper.Pointer.Void onStateImage()
           
 Id representedObject()
           
 void setAction(Sel aSelector)
           
 void setAlternate(boolean isAlternate)
           
 void setAttributedTitle(NSAttributedString string)
           
 void setEnabled(boolean flag)
           
 void setImage(NSImage menuImage)
           
 void setIndentationLevel(com.jniwrapper.Int indentationLevel)
           
 void setKeyEquivalent(java.lang.String aKeyEquivalent)
           
 void setKeyEquivalentModifierMask(com.jniwrapper.UInt mask)
           
 void setMenu(NSMenu menu)
           
 void setMixedStateImage(NSImage image)
           
 void setMnemonicLocation(com.jniwrapper.UInt16 location)
           
 void setOffStateImage(NSImage image)
           
 void setOnStateImage(NSImage image)
           
 void setRepresentedObject(Id anObject)
           
 void setState(com.jniwrapper.Int state)
           
 void setSubmenu(NSMenu submenu)
           
 void setTag(com.jniwrapper.Int anInt)
           
 void setTarget(Id anObject)
           
 void setTitle(java.lang.String aString)
           
 void setTitleWithMnemonic(java.lang.String stringWithAmpersand)
           
 void setToolTip(java.lang.String toolTip)
           
 com.jniwrapper.Int state()
           
 com.jniwrapper.Pointer.Void submenu()
           
 com.jniwrapper.Int tag()
           
 Id target()
           
 com.jniwrapper.Pointer.Void title()
           
 com.jniwrapper.Pointer.Void toolTip()
           
 com.jniwrapper.Pointer.Void userKeyEquivalent()
           
 com.jniwrapper.UInt userKeyEquivalentModifierMask()
           
 
Methods inherited from interface com.jniwrapper.macosx.cocoa.nsobject.NSCopyingProtocol
copyWithZone
 
Methods inherited from interface com.jniwrapper.macosx.cocoa.nsobject.NSCodingProtocol
encodeWithCoder, initWithCoder
 
Methods inherited from interface com.jniwrapper.macosx.cocoa.nsobject.NSObjectProtocol
_class, autorelease, conformsToProtocol, description, hash, isEqual, isKindOfClass, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, release, respondsToSelector, retain, retainCount, self, superclass, zone
 

Method Detail

initWithTitle_action_keyEquivalent

public Id initWithTitle_action_keyEquivalent(java.lang.String aString,
                                             Sel aSelector,
                                             java.lang.String charCode)
This method represents the initWithTitle() method of the NSMenuItemProtocol Objective-C protocol.

Parameters:
aString -
aSelector -
charCode -
Returns:
Id

setRepresentedObject

public void setRepresentedObject(Id anObject)

setTarget

public void setTarget(Id anObject)

setKeyEquivalentModifierMask

public void setKeyEquivalentModifierMask(com.jniwrapper.UInt mask)

onStateImage

public com.jniwrapper.Pointer.Void onStateImage()

menu

public com.jniwrapper.Pointer.Void menu()

setTag

public void setTag(com.jniwrapper.Int anInt)

isSeparatorItem

public com.jniwrapper.Bool isSeparatorItem()

setAlternate

public void setAlternate(boolean isAlternate)

isEnabled

public com.jniwrapper.Bool isEnabled()

setMnemonicLocation

public void setMnemonicLocation(com.jniwrapper.UInt16 location)

setTitle

public void setTitle(java.lang.String aString)

mixedStateImage

public com.jniwrapper.Pointer.Void mixedStateImage()

setToolTip

public void setToolTip(java.lang.String toolTip)

keyEquivalent

public com.jniwrapper.Pointer.Void keyEquivalent()

state

public com.jniwrapper.Int state()

setEnabled

public void setEnabled(boolean flag)

setMenu

public void setMenu(NSMenu menu)

userKeyEquivalent

public com.jniwrapper.Pointer.Void userKeyEquivalent()

title

public com.jniwrapper.Pointer.Void title()

target

public Id target()

offStateImage

public com.jniwrapper.Pointer.Void offStateImage()

representedObject

public Id representedObject()

setIndentationLevel

public void setIndentationLevel(com.jniwrapper.Int indentationLevel)

setAction

public void setAction(Sel aSelector)

setOnStateImage

public void setOnStateImage(NSImage image)

mnemonicLocation

public com.jniwrapper.UInt16 mnemonicLocation()

setState

public void setState(com.jniwrapper.Int state)

setMixedStateImage

public void setMixedStateImage(NSImage image)

image

public com.jniwrapper.Pointer.Void image()

setSubmenu

public void setSubmenu(NSMenu submenu)

setOffStateImage

public void setOffStateImage(NSImage image)

attributedTitle

public com.jniwrapper.Pointer.Void attributedTitle()

toolTip

public com.jniwrapper.Pointer.Void toolTip()

hasSubmenu

public com.jniwrapper.Bool hasSubmenu()

action

public Sel action()
Specified by:
action in interface NSValidatedUserInterfaceItemProtocol

indentationLevel

public com.jniwrapper.Int indentationLevel()

setImage

public void setImage(NSImage menuImage)

mnemonic

public com.jniwrapper.Pointer.Void mnemonic()

submenu

public com.jniwrapper.Pointer.Void submenu()

keyEquivalentModifierMask

public com.jniwrapper.UInt keyEquivalentModifierMask()

setKeyEquivalent

public void setKeyEquivalent(java.lang.String aKeyEquivalent)

setAttributedTitle

public void setAttributedTitle(NSAttributedString string)

userKeyEquivalentModifierMask

public com.jniwrapper.UInt userKeyEquivalentModifierMask()

isAlternate

public com.jniwrapper.Bool isAlternate()

tag

public com.jniwrapper.Int tag()
Specified by:
tag in interface NSValidatedUserInterfaceItemProtocol

setTitleWithMnemonic

public void setTitleWithMnemonic(java.lang.String stringWithAmpersand)