< XAP_CocoaPlugin_MenuItem > Protocol Reference

A reference to a context menu item. More...

#import <xap_CocoaPlugin.h>

Inheritance diagram for < XAP_CocoaPlugin_MenuItem >:

AP_CocoaPlugin_ContextMenuItem

List of all members.

Public Member Functions

(void) - setLabel:
(NSString *) - label
(void) - setTag:
(int) - tag
(void) - setState:
(int) - state
(void) - setEnabled:
(BOOL) - isEnabled


Detailed Description

A reference to a context menu item.

Member Function Documentation

- (void) setLabel: (NSString *)  label  

Parameters:
label Set the label of the context menu item.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (NSString *) label  

Returns:
The label of the context menu item.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (void) setTag: (int)  anInt  

Parameters:
anInt An integer which can be used to identify this particular object.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (int) tag  

Returns:
The integer used to identify this particular object.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (void) setState: (int)  state  

Parameters:
state To have a check (tick) beside the menu item, set the state to NSOnState, otherwise set it to NSOffState. The default is NSOffState.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (int) state  

Returns:
Returns YES if the menu item is checked (ticked).

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (void) setEnabled: (BOOL)  enabled  

Parameters:
enabled YES if the menu item should be enabled, or NO if the menu item should be greyed (i.e., non-selectable). The default is YES.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (BOOL) isEnabled  

Returns:
Returns YES if the menu item is selectable.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.


The documentation for this protocol was generated from the following file:

Generated on Sun Dec 27 00:07:25 2009 for AbiWord by  doxygen 1.5.5