public class NSMenu extends NSObject implements NSCopyingProtocol, NSCodingProtocol
NSMenu
class.
See the class documentation at the Apple's site: NSMenuConstructor and Description |
---|
NSMenu() |
NSMenu(boolean autorelease)
Contructs the
NSMenu class with the autorelease option on. |
NSMenu(com.jniwrapper.Pointer.Void instancePtr)
Contructs the
NSMenu class from pointer. |
NSMenu(java.lang.String methodName,
com.jniwrapper.Parameter[] parameters)
Contructs the
NSMenu class with static constructor. |
Modifier and Type | Method and Description |
---|---|
void |
addItem(Id newItem) |
Id |
addItemWithTitle_action_keyEquivalent(java.lang.String aString,
Sel aSelector,
java.lang.String charCode)
This method represents the
addItemWithTitle() method of the NSMenu Objective-C class. |
com.jniwrapper.Pointer.Void |
attachedMenu() |
com.jniwrapper.Bool |
autoenablesItems() |
Id |
contextMenuRepresentation() |
Id |
copyWithZone(NSZone zone) |
Id |
delegate() |
void |
encodeWithCoder(NSCoder aCoder) |
void |
helpRequested(NSEvent eventPtr) |
com.jniwrapper.Int |
indexOfItem(Id index) |
com.jniwrapper.Int |
indexOfItemWithRepresentedObject(Id object) |
com.jniwrapper.Int |
indexOfItemWithSubmenu(NSMenu submenu) |
com.jniwrapper.Int |
indexOfItemWithTag(com.jniwrapper.Int aTag) |
com.jniwrapper.Int |
indexOfItemWithTarget_andAction(Id target,
Sel actionSelector)
This method represents the
indexOfItemWithTarget() method of the NSMenu Objective-C class. |
com.jniwrapper.Int |
indexOfItemWithTitle(java.lang.String aTitle) |
protected void |
init(com.jniwrapper.Parameter[] fields) |
Id |
initWithCoder(NSCoder aDecoder) |
Id |
initWithTitle(java.lang.String aTitle) |
void |
insertItem_atIndex(Id newItem,
com.jniwrapper.Int index)
This method represents the
insertItem() method of the NSMenu Objective-C class. |
Id |
insertItemWithTitle_action_keyEquivalent_atIndex(java.lang.String aString,
Sel aSelector,
java.lang.String charCode,
com.jniwrapper.Int index)
This method represents the
insertItemWithTitle() method of the NSMenu Objective-C class. |
com.jniwrapper.Bool |
isAttached() |
com.jniwrapper.Bool |
isTornOff() |
com.jniwrapper.Pointer.Void |
itemArray() |
Id |
itemAtIndex(com.jniwrapper.Int index) |
void |
itemChanged(Id item) |
Id |
itemWithTag(com.jniwrapper.Int tag) |
Id |
itemWithTitle(java.lang.String aTitle) |
NSPoint |
locationForSubmenu(NSMenu aSubmenu) |
com.jniwrapper.Bool |
menuChangedMessagesEnabled() |
Id |
menuRepresentation() |
com.jniwrapper.Int |
numberOfItems() |
void |
performActionForItemAtIndex(com.jniwrapper.Int index) |
com.jniwrapper.Bool |
performKeyEquivalent(NSEvent theEvent) |
void |
removeItem(Id item) |
void |
removeItemAtIndex(com.jniwrapper.Int index) |
void |
setAutoenablesItems(boolean flag) |
void |
setContextMenuRepresentation(Id menuRep) |
void |
setDelegate(Id anObject) |
void |
setMenuChangedMessagesEnabled(boolean flag) |
void |
setMenuRepresentation(Id menuRep) |
void |
setSubmenu_forItem(NSMenu aMenu,
Id anItem)
This method represents the
setSubmenu() method of the NSMenu Objective-C class. |
void |
setSupermenu(NSMenu supermenu) |
void |
setTearOffMenuRepresentation(Id menuRep) |
void |
setTitle(java.lang.String aString) |
void |
sizeToFit() |
static com.jniwrapper.Bool |
static_menuBarVisible() |
static com.jniwrapper.Pointer.Void |
static_menuZone() |
static void |
static_popUpContextMenu_withEvent_forView_withFont(NSMenu menu,
NSEvent event,
NSView view,
NSFont font)
This method represents the
popUpContextMenu() method of the NSMenu Objective-C class. |
static void |
static_popUpContextMenu_withEvent_forView(NSMenu menu,
NSEvent event,
NSView view)
This method represents the
popUpContextMenu() method of the NSMenu Objective-C class. |
static void |
static_setMenuBarVisible(boolean visible) |
static void |
static_setMenuZone(NSZone aZone) |
void |
submenuAction(Id sender) |
com.jniwrapper.Pointer.Void |
supermenu() |
Id |
tearOffMenuRepresentation() |
com.jniwrapper.Pointer.Void |
title() |
void |
update() |
_class, accessibilityActionDescription, accessibilityActionNames, accessibilityAttributeNames, accessibilityAttributeValue_forParameter, accessibilityAttributeValue, accessibilityFocusedUIElement, accessibilityHitTest, accessibilityIsAttributeSettable, accessibilityIsIgnored, accessibilityParameterizedAttributeNames, accessibilityPerformAction, accessibilitySetValue_forAttribute, addObserver_forKeyPath_options_context, alertShowHelp, application_delegateHandlesKey, application_openFile, application_openFiles, application_openFileWithoutUI, application_openTempFile, application_printFile, application_printFiles, applicationDidBecomeActive, applicationDidChangeScreenParameters, applicationDidFinishLaunching, applicationDidHide, applicationDidResignActive, applicationDidUnhide, applicationDidUpdate, applicationDockMenu, applicationOpenUntitledFile, applicationShouldHandleReopen_hasVisibleWindows, applicationShouldOpenUntitledFile, applicationShouldTerminate, applicationShouldTerminateAfterLastWindowClosed, applicationWillBecomeActive, applicationWillFinishLaunching, applicationWillHide, applicationWillResignActive, applicationWillTerminate, applicationWillUnhide, applicationWillUpdate, archiver_didEncodeObject, archiver_willEncodeObject, archiver_willReplaceObject_withObject, archiverDidFinish, archiverWillFinish, attributeKeys, authenticateComponents_withData, authenticationDataForComponents, autorelease, awakeAfterUsingCoder, awakeFromNib, bind_toObject_withKeyPath_options, browser_createRowsForColumn_inMatrix, browser_isColumnValid, browser_numberOfRowsInColumn, browser_selectCellWithString_inColumn, browser_selectRow_inColumn, browser_shouldSizeColumn_forUserResize_toWidth, browser_sizeToFitWidthOfColumn, browser_titleOfColumn, browser_willDisplayCell_atRow_column, browserColumnConfigurationDidChange, browserDidScroll, browserWillScroll, changeColor, changeFont, classCode, classDescription, classForArchiver, classForCoder, classForKeyedArchiver, classForPortCoder, className, coerceValue_forKey, comboBox_completedString, comboBox_indexOfItemWithStringValue, comboBox_objectValueForItemAtIndex, comboBoxCell_completedString, comboBoxCell_indexOfItemWithStringValue, comboBoxCell_objectValueForItemAtIndex, comboBoxSelectionDidChange, comboBoxSelectionIsChanging, comboBoxWillDismiss, comboBoxWillPopUp, commitEditing, concludeDragOperation, conformsToProtocol, connection_didCancelAuthenticationChallenge, connection_didFailWithError, connection_didReceiveAuthenticationChallenge, connection_didReceiveData, connection_didReceiveResponse, connection_handleRequest, connection_shouldMakeNewConnection, connection_willCacheResponse, connection_willSendRequest_redirectResponse, connectionDidFinishLoading, control_didFailToFormatString_errorDescription, control_didFailToValidatePartialString_errorDescription, control_isValidObject, control_textShouldBeginEditing, control_textShouldEndEditing, control_textView_completions_forPartialWordRange_indexOfSelectedItem, control_textView_doCommandBySelector, controlTextDidBeginEditing, controlTextDidChange, controlTextDidEndEditing, copy, createConversationForConnection, dealloc, description, dictionaryWithValuesForKeys, didChange_valuesAtIndexes_forKey, didChangeValueForKey, discardEditing, doesContain, doesNotRecognizeSelector, download_decideDestinationWithSuggestedFilename, download_didCancelAuthenticationChallenge, download_didCreateDestination, download_didFailWithError, download_didReceiveAuthenticationChallenge, download_didReceiveDataOfLength, download_didReceiveResponse, download_shouldDecodeSourceDataOfMIMEType, download_willSendRequest_redirectResponse, downloadDidBegin, downloadDidFinish, draggedImage_beganAt, draggedImage_endedAt_deposited, draggedImage_endedAt_operation, draggedImage_movedTo, draggingEnded, draggingEntered, draggingExited, draggingSourceOperationMaskForLocal, draggingUpdated, drawerDidClose, drawerDidOpen, drawerShouldClose, drawerShouldOpen, drawerWillClose, drawerWillOpen, drawerWillResizeContents_toSize, exposedBindings, fileManager_shouldProceedAfterError, fileManager_willProcessPath, fontManager_willIncludeFont, forwardInvocation, handleMachMessage, handlePortMessage, handleQueryWithUnboundKey, handleTakeValue_forUnboundKey, hash, ignoreModifierKeysWhileDragging, image_didLoadPartOfRepresentation_withValidRows, image_didLoadRepresentation_withStatus, image_didLoadRepresentationHeader, image_willLoadRepresentation, imageDidNotDraw_inRect, indicesOfObjectsByEvaluatingObjectSpecifier, init, insertValue_atIndex_inPropertyWithKey, insertValue_inPropertyWithKey, inverseForRelationshipKey, isCaseInsensitiveLike, isEqual, isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isKindOfClass, isLessThan, isLessThanOrEqualTo, isLike, isMemberOfClass, isNotEqualTo, isProxy, layoutManager_didCompleteLayoutForTextContainer_atEnd, layoutManagerDidInvalidateLayout, makeNewConnection_sender, menu_updateItem_atIndex_shouldCancel, menuHasKeyEquivalent_forEvent_target_action, menuNeedsUpdate, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, namesOfPromisedFilesDroppedAtDestination, netService_didNotPublish, netService_didNotResolve, netServiceBrowser_didFindDomain_moreComing, netServiceBrowser_didFindService_moreComing, netServiceBrowser_didNotSearch, netServiceBrowser_didRemoveDomain_moreComing, netServiceBrowser_didRemoveService_moreComing, netServiceBrowserDidStopSearch, netServiceBrowserWillSearch, netServiceDidResolveAddress, netServiceDidStop, netServiceWillPublish, netServiceWillResolve, NSObject__new, NSObject_alloc, NSObject_allocWithZone, NSObject_copyWithZone, NSObject_defaultPlaceholderForMarker_withBinding, NSObject_mutableCopyWithZone, numberOfItemsInComboBox, numberOfItemsInComboBoxCell, numberOfItemsInMenu, numberOfRowsInTableView, objectDidBeginEditing, objectDidEndEditing, objectSpecifier, observationInfo, observeValueForKeyPath_ofObject_change_context, outlineView_acceptDrop_item_childIndex, outlineView_child_ofItem, outlineView_didClickTableColumn, outlineView_didDragTableColumn, outlineView_isItemExpandable, outlineView_itemForPersistentObject, outlineView_mouseDownInHeaderOfTableColumn, outlineView_numberOfChildrenOfItem, outlineView_objectValueForTableColumn_byItem, outlineView_persistentObjectForItem, outlineView_setObjectValue_forTableColumn_byItem, outlineView_shouldCollapseItem, outlineView_shouldEditTableColumn_item, outlineView_shouldExpandItem, outlineView_shouldSelectItem, outlineView_shouldSelectTableColumn, outlineView_sortDescriptorsDidChange, outlineView_validateDrop_proposedItem_proposedChildIndex, outlineView_willDisplayCell_forTableColumn_item, outlineView_willDisplayOutlineCell_forTableColumn_item, outlineView_writeItems_toPasteboard, outlineViewColumnDidMove, outlineViewColumnDidResize, outlineViewItemDidCollapse, outlineViewItemDidExpand, outlineViewItemWillCollapse, outlineViewItemWillExpand, outlineViewSelectionDidChange, outlineViewSelectionIsChanging, panel_compareFilename_with_caseSensitive, panel_directoryDidChange, panel_isValidFilename, panel_shouldShowFilename, panel_userEnteredFilename_confirmed, panel_willExpand, panelSelectionDidChange, parser_didEndElement_namespaceURI_qualifiedName, parser_didEndMappingPrefix, parser_didStartElement_namespaceURI_qualifiedName_attributes, parser_didStartMappingPrefix_toURI, parser_foundAttributeDeclarationWithName_forElement_type_defaultValue, parser_foundCDATA, parser_foundCharacters, parser_foundComment, parser_foundElementDeclarationWithName_model, parser_foundExternalEntityDeclarationWithName_publicID_systemID, parser_foundIgnorableWhitespace, parser_foundInternalEntityDeclarationWithName_value, parser_foundNotationDeclarationWithName_publicID_systemID, parser_foundProcessingInstructionWithTarget_data, parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName, parser_parseErrorOccurred, parser_resolveExternalEntityName_systemID, parser_validationErrorOccurred, parserDidEndDocument, parserDidStartDocument, pasteboard_provideDataForType, pasteboardChangedOwner, performDragOperation, performSelector_withObject_afterDelay_inModes, performSelector_withObject_afterDelay, performSelector_withObject_withObject, performSelector_withObject, performSelector, performSelectorOnMainThread_withObject_waitUntilDone_modes, performSelectorOnMainThread_withObject_waitUntilDone, prepareForDragOperation, readSelectionFromPasteboard, release, removeObserver_forKeyPath, removeValueAtIndex_fromPropertyWithKey, replacementObjectForArchiver, replacementObjectForCoder, replacementObjectForKeyedArchiver, replacementObjectForPortCoder, replaceValueAtIndex_inPropertyWithKey_withValue, respondsToSelector, retain, retainCount, scriptingBeginsWith, scriptingContains, scriptingEndsWith, scriptingIsEqualTo, scriptingIsGreaterThan, scriptingIsGreaterThanOrEqualTo, scriptingIsLessThan, scriptingIsLessThanOrEqualTo, scriptingProperties, selectionShouldChangeInOutlineView, selectionShouldChangeInTableView, self, setNilValueForKey, setObservationInfo, setScriptingProperties, setValue_forKey, setValue_forKeyPath, setValue_forUndefinedKey, setValuesForKeysWithDictionary, sound_didFinishPlaying, speechRecognizer_didRecognizeCommand, speechSynthesizer_didFinishSpeaking, speechSynthesizer_willSpeakPhoneme, speechSynthesizer_willSpeakWord_ofString, spellServer_didForgetWord_inLanguage, spellServer_didLearnWord_inLanguage, spellServer_findMisspelledWordInString_language_wordCount_countOnly, spellServer_suggestCompletionsForPartialWordRange_inString_language, spellServer_suggestGuessesForWord_inLanguage, splitView_canCollapseSubview, splitView_constrainMaxCoordinate_ofSubviewAt, splitView_constrainMinCoordinate_ofSubviewAt, splitView_constrainSplitPosition_ofSubviewAt, splitView_resizeSubviewsWithOldSize, splitViewDidResizeSubviews, splitViewWillResizeSubviews, static_accessInstanceVariablesDirectly, static_automaticallyNotifiesObserversForKey, static_cancelPreviousPerformRequestsWithTarget_selector_object, static_cancelPreviousPerformRequestsWithTarget, static_classForKeyedUnarchiver, static_exposeBinding, static_initialize, static_instanceMethodForSelector, static_instanceMethodSignatureForSelector, static_instancesRespondToSelector, static_isSubclassOfClass, static_load, static_poseAsClass, static_setDefaultPlaceholder_forMarker_withBinding, static_setKeys_triggerChangeNotificationsForDependentKey, static_setVersion, static_useStoredAccessor, static_version, storedValueForKey, stream_handleEvent, superclass, tableView_acceptDrop_row_dropOperation, tableView_didClickTableColumn, tableView_didDragTableColumn, tableView_mouseDownInHeaderOfTableColumn, tableView_objectValueForTableColumn_row, tableView_setObjectValue_forTableColumn_row, tableView_shouldEditTableColumn_row, tableView_shouldSelectRow, tableView_shouldSelectTableColumn, tableView_sortDescriptorsDidChange, tableView_validateDrop_proposedRow_proposedDropOperation, tableView_willDisplayCell_forTableColumn_row, tableView_writeRows_toPasteboard, tableViewColumnDidMove, tableViewColumnDidResize, tableViewSelectionDidChange, tableViewSelectionIsChanging, tabView_didSelectTabViewItem, tabView_shouldSelectTabViewItem, tabView_willSelectTabViewItem, tabViewDidChangeNumberOfTabViewItems, takeStoredValue_forKey, takeValue_forKey, takeValue_forKeyPath, takeValuesFromDictionary, textDidBeginEditing, textDidChange, textDidEndEditing, textShouldBeginEditing, textShouldEndEditing, textStorageDidProcessEditing, textStorageWillProcessEditing, textView_clickedOnCell_inRect_atIndex, textView_clickedOnCell_inRect, textView_clickedOnLink_atIndex, textView_clickedOnLink, textView_completions_forPartialWordRange_indexOfSelectedItem, textView_doCommandBySelector, textView_doubleClickedOnCell_inRect_atIndex, textView_doubleClickedOnCell_inRect, textView_draggedCell_inRect_event_atIndex, textView_draggedCell_inRect_event, textView_shouldChangeTextInRange_replacementString, textView_willChangeSelectionFromCharacterRange_toCharacterRange, textView_willDisplayToolTip_forCharacterAtIndex, textView_writablePasteboardTypesForCell_atIndex, textView_writeCell_atIndex_toPasteboard_type, textViewDidChangeSelection, textViewDidChangeTypingAttributes, toManyRelationshipKeys, toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar, toolbarAllowedItemIdentifiers, toolbarDefaultItemIdentifiers, toolbarDidRemoveItem, toolbarSelectableItemIdentifiers, toolbarWillAddItem, toOneRelationshipKeys, unableToSetNilForKey, unarchiver_cannotDecodeObjectOfClassName_originalClasses, unarchiver_didDecodeObject, unarchiver_willReplaceObject_withObject, unarchiverDidFinish, unarchiverWillFinish, unbind, undoManagerForTextView, URL_resourceDataDidBecomeAvailable, URL_resourceDidFailLoadingWithReason, URLResourceDidCancelLoading, URLResourceDidFinishLoading, validateMenuItem, validateToolbarItem, validateValue_forKey_error, validateValue_forKeyPath_error, validModesForFontPanel, valueAtIndex_inPropertyWithKey, valueClassForBinding, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, valueWithName_inPropertyWithKey, valueWithUniqueID_inPropertyWithKey, view_stringForToolTip_point_userData, willChange_valuesAtIndexes_forKey, willChangeValueForKey, window_willPositionSheet_usingRect, windowDidBecomeKey, windowDidBecomeMain, windowDidChangeScreen, windowDidDeminiaturize, windowDidEndSheet, windowDidExpose, windowDidMiniaturize, windowDidMove, windowDidResignKey, windowDidResignMain, windowDidResize, windowDidUpdate, windowShouldClose, windowShouldZoom_toFrame, windowWillBeginSheet, windowWillClose, windowWillMiniaturize, windowWillMove, windowWillResize_toSize, windowWillReturnFieldEditor_toObject, windowWillReturnUndoManager, windowWillUseStandardFrame_defaultFrame, writeSelectionToPasteboard_types, zone
getClassName
asFunction, asFunction, asTypedPointer, castTo, castTo, equals, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write
public NSMenu()
public NSMenu(boolean autorelease)
NSMenu
class with the autorelease option on.autorelease
- public NSMenu(com.jniwrapper.Pointer.Void instancePtr)
NSMenu
class from pointer.instancePtr
- public NSMenu(java.lang.String methodName, com.jniwrapper.Parameter[] parameters)
NSMenu
class with static constructor.methodName
- parameters
- public com.jniwrapper.Bool autoenablesItems()
public com.jniwrapper.Int indexOfItemWithTag(com.jniwrapper.Int aTag)
public Id addItemWithTitle_action_keyEquivalent(java.lang.String aString, Sel aSelector, java.lang.String charCode)
addItemWithTitle()
method of the NSMenu Objective-C class.aString
- aSelector
- charCode
- public void setContextMenuRepresentation(Id menuRep)
public void itemChanged(Id item)
public void helpRequested(NSEvent eventPtr)
public com.jniwrapper.Int indexOfItemWithTarget_andAction(Id target, Sel actionSelector)
indexOfItemWithTarget()
method of the NSMenu Objective-C class.target
- actionSelector
- public static com.jniwrapper.Pointer.Void static_menuZone()
public void addItem(Id newItem)
public void encodeWithCoder(NSCoder aCoder)
encodeWithCoder
in interface NSCodingProtocol
public Id menuRepresentation()
public Id copyWithZone(NSZone zone)
copyWithZone
in interface NSCopyingProtocol
public void insertItem_atIndex(Id newItem, com.jniwrapper.Int index)
insertItem()
method of the NSMenu Objective-C class.newItem
- index
- public Id itemWithTag(com.jniwrapper.Int tag)
public Id itemWithTitle(java.lang.String aTitle)
public static com.jniwrapper.Bool static_menuBarVisible()
public com.jniwrapper.Int indexOfItemWithRepresentedObject(Id object)
public com.jniwrapper.Bool performKeyEquivalent(NSEvent theEvent)
public com.jniwrapper.Bool isTornOff()
public void setTitle(java.lang.String aString)
public com.jniwrapper.Bool menuChangedMessagesEnabled()
public Id itemAtIndex(com.jniwrapper.Int index)
public void removeItem(Id item)
public void submenuAction(Id sender)
public void setMenuRepresentation(Id menuRep)
public com.jniwrapper.Pointer.Void itemArray()
public com.jniwrapper.Int indexOfItemWithSubmenu(NSMenu submenu)
public com.jniwrapper.Pointer.Void supermenu()
public void setSubmenu_forItem(NSMenu aMenu, Id anItem)
setSubmenu()
method of the NSMenu Objective-C class.aMenu
- anItem
- public Id contextMenuRepresentation()
public void sizeToFit()
public void setSupermenu(NSMenu supermenu)
public void update()
public com.jniwrapper.Pointer.Void title()
public void performActionForItemAtIndex(com.jniwrapper.Int index)
public com.jniwrapper.Int indexOfItem(Id index)
public Id initWithTitle(java.lang.String aTitle)
public void setDelegate(Id anObject)
public com.jniwrapper.Int indexOfItemWithTitle(java.lang.String aTitle)
public Id initWithCoder(NSCoder aDecoder)
initWithCoder
in interface NSCodingProtocol
public static void static_setMenuBarVisible(boolean visible)
public Id insertItemWithTitle_action_keyEquivalent_atIndex(java.lang.String aString, Sel aSelector, java.lang.String charCode, com.jniwrapper.Int index)
insertItemWithTitle()
method of the NSMenu Objective-C class.aString
- aSelector
- charCode
- index
- public com.jniwrapper.Pointer.Void attachedMenu()
public Id tearOffMenuRepresentation()
public void setMenuChangedMessagesEnabled(boolean flag)
public com.jniwrapper.Int numberOfItems()
public void setTearOffMenuRepresentation(Id menuRep)
public Id delegate()
public static void static_setMenuZone(NSZone aZone)
public void setAutoenablesItems(boolean flag)
public static void static_popUpContextMenu_withEvent_forView(NSMenu menu, NSEvent event, NSView view)
popUpContextMenu()
method of the NSMenu Objective-C class.menu
- event
- view
- public com.jniwrapper.Bool isAttached()
public void removeItemAtIndex(com.jniwrapper.Int index)
public static void static_popUpContextMenu_withEvent_forView_withFont(NSMenu menu, NSEvent event, NSView view, NSFont font)
popUpContextMenu()
method of the NSMenu Objective-C class.menu
- event
- view
- font
-