API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPToolbarItem Class Reference

#import <CPToolbarItem.h>

+ Inheritance diagram for CPToolbarItem:

Instance Methods

(SEL) - action
 
(CPImage- alternateImage
 
(BOOL) - autovalidates
 
(id) - copy
 
(void) - encodeWithCoder:
 
(CPImage- image
 
(id) - init
 
(id) - initWithCoder:
 
(id) - initWithItemIdentifier:
 
(BOOL) - isEnabled
 
(CPString- itemIdentifier
 
(CPString- label
 
(CGSize) - maxSize
 
(CGSize) - minSize
 
(CPString- paletteLabel
 
(void) - setAction:
 
(void) - setAlternateImage:
 
(void) - setAutovalidates:
 
(void) - setEnabled:
 
(void) - setImage:
 
(void) - setLabel:
 
(void) - setMaxSize:
 
(void) - setMinSize:
 
(void) - setPaletteLabel:
 
(void) - setTag:
 
(void) - setTarget:
 
(void) - setToolTip:
 
(void) - setView:
 
(void) - setVisibilityPriority:
 
(int) - tag
 
(id) - target
 
(CPToolbar- toolbar
 
(CPString- toolTip
 
(void) - validate
 
(CPView- view
 
(int) - visibilityPriority
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray- exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Additional Inherited Members

- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(Class) + class
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 
- Instance Variables inherited from CPObject
Class isa
 

Detailed Description

A representation of an item in a CPToolbar.

Definition at line 2 of file CPToolbarItem.h.

Method Documentation

- (SEL) action
implementation

Returns the action that is triggered when the user clicks this item.

Definition at line 236 of file CPToolbarItem.j.

- (CPImage) alternateImage
implementation

Returns the alternate image. This image is displayed on the item when the user is clicking it.

Definition at line 336 of file CPToolbarItem.j.

- (BOOL) autovalidates
implementation

Definition at line 504 of file CPToolbarItem.j.

- (id) copy
implementation

Makes a deep copy of the receiver. The copy should be functionally equivalent to the receiver.

Returns
the copy of the receiver

Reimplemented from CPObject.

Provided by category CPToolbarItem(CPCopying).

Definition at line 598 of file CPToolbarItem.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Provided by category CPToolbarItem(CPCoding).

Definition at line 567 of file CPToolbarItem.j.

- (CPImage) image
implementation

Returns the item's image

Definition at line 286 of file CPToolbarItem.j.

- (id) init
implementation

Initializes the receiver

Returns
the initialized receiver

Reimplemented from CPObject.

Definition at line 71 of file CPToolbarItem.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Provided by category CPToolbarItem(CPCoding).

Definition at line 534 of file CPToolbarItem.j.

- (id) initWithItemIdentifier: (CPString anItemIdentifier
implementation

Initializes the toolbar item with a specified identifier.

Parameters
anItemIdentifierthe item's identifier
Returns
the initialized toolbar item

Definition at line 82 of file CPToolbarItem.j.

- (BOOL) isEnabled
implementation

Returns YES if the item is enabled.

Definition at line 260 of file CPToolbarItem.j.

- (CPString) itemIdentifier
implementation

Returns the item's identifier.

Definition at line 107 of file CPToolbarItem.j.

- (CPString) label
implementation

Returns the item's label

Definition at line 129 of file CPToolbarItem.j.

- (CGSize) maxSize
implementation

Returns the item's maximum size.

Definition at line 400 of file CPToolbarItem.j.

- (CGSize) minSize
implementation

Returns the item's minimum size.

Definition at line 377 of file CPToolbarItem.j.

- (CPString) paletteLabel
implementation

Returns the palette label.

Definition at line 146 of file CPToolbarItem.j.

- (void) setAction: (SEL)  anAction
implementation

Sets the action that is triggered when the user clicks this item.

Parameters
anActionthe new action

Definition at line 248 of file CPToolbarItem.j.

- (void) setAlternateImage: (CPImage anImage
implementation

Sets the alternate image. This image is displayed on the item when the user is clicking it.

Parameters
anImagethe new alternate image

Definition at line 325 of file CPToolbarItem.j.

- (void) setAutovalidates: (BOOL)  shouldAutovalidate
implementation

Definition at line 509 of file CPToolbarItem.j.

- (void) setEnabled: (BOOL)  shouldBeEnabled
implementation

Sets whether the item is enabled.

Parameters
aFlagYES enables the item

Definition at line 272 of file CPToolbarItem.j.

- (void) setImage: (CPImage anImage
implementation

Sets the item's image.

Parameters
anImagethe new item image

Definition at line 298 of file CPToolbarItem.j.

- (void) setLabel: (CPString aLabel
implementation

Sets the item's label.

Parameters
aLabelthe new label for the item

Definition at line 138 of file CPToolbarItem.j.

- (void) setMaxSize: (CGSize)  aMaxSize
implementation

Sets the item's new maximum size.

Parameters
aMaxSizethe new maximum size

Definition at line 409 of file CPToolbarItem.j.

- (void) setMinSize: (CGSize)  aMinSize
implementation

Sets the item's minimum size.

Parameters
aMinSizethe new minimum size

Definition at line 386 of file CPToolbarItem.j.

- (void) setPaletteLabel: (CPString aPaletteLabel
implementation

Sets the palette label

Parameters
aPaletteLabelthe new palette label

Definition at line 155 of file CPToolbarItem.j.

- (void) setTag: (int)  aTag
implementation

Sets the item's tag.

Parameters
aTagthe new tag for the item

Definition at line 200 of file CPToolbarItem.j.

- (void) setTarget: (id)  aTarget
implementation

Sets the target of the action that is triggered when the user clicks this item. nil will cause the action to be passed on to the first responder.

Parameters
aTargetthe new target

Definition at line 224 of file CPToolbarItem.j.

- (void) setToolTip: (CPString aToolTip
implementation

Sets the item's tooltip. A tooltip pops up next to the cursor when the user hovers over the item with the mouse.

Parameters
aToolTipthe new item tool tip

Definition at line 177 of file CPToolbarItem.j.

- (void) setView: (CPView aView
implementation

Sets the item's view

Parameters
aViewthe item's new view

Definition at line 356 of file CPToolbarItem.j.

- (void) setVisibilityPriority: (int)  aVisibilityPriority
implementation

Sets the item's visibility priority. The value must be one of:

CPToolbarItemVisibilityPriorityStandard
CPToolbarItemVisibilityPriorityLow
CPToolbarItemVisibilityPriorityHigh
CPToolbarItemVisibilityPriorityUser
Parameters
aVisiblityPrioritythe priority

Definition at line 445 of file CPToolbarItem.j.

- (int) tag
implementation

Returns the item's tag.

Definition at line 188 of file CPToolbarItem.j.

- (id) target
implementation

Returns the item's action target.

Definition at line 211 of file CPToolbarItem.j.

- (CPToolbar) toolbar
implementation

Returns the toolbar of which this item is a part.

Definition at line 115 of file CPToolbarItem.j.

- (CPString) toolTip
implementation

Returns the item's tooltip. A tooltip pops up next to the cursor when the user hovers over the item with the mouse.

Definition at line 165 of file CPToolbarItem.j.

- (void) validate
implementation

Definition at line 450 of file CPToolbarItem.j.

- (CPView) view
implementation

Returns the item's view.

Definition at line 347 of file CPToolbarItem.j.

- (int) visibilityPriority
implementation

Returns the item's visibility priority. The value will be one of:

CPToolbarItemVisibilityPriorityStandard
CPToolbarItemVisibilityPriorityLow
CPToolbarItemVisibilityPriorityHigh
CPToolbarItemVisibilityPriorityUser

Definition at line 430 of file CPToolbarItem.j.


The documentation for this class was generated from the following files: