CPToolbarItem Class Reference
[AppKit]

List of all members.

Public Member Functions

(SEL) - action [implementation]
(CPImage- alternateImage [implementation]
(BOOL) - autovalidates [implementation]
(id) - copy [implementation]
(void) - encodeWithCoder: [implementation]
(CPImage- image [implementation]
(id) - init [implementation]
(id) - initWithCoder: [implementation]
(id) - initWithItemIdentifier: [implementation]
(BOOL) - isEnabled [implementation]
(CPString- itemIdentifier [implementation]
(CPString- label [implementation]
(CGSize) - maxSize [implementation]
(CGSize) - minSize [implementation]
(CPString- paletteLabel [implementation]
(void) - setAction: [implementation]
(void) - setAlternateImage: [implementation]
(void) - setAutovalidates: [implementation]
(void) - setEnabled: [implementation]
(void) - setImage: [implementation]
(void) - setLabel: [implementation]
(void) - setMaxSize: [implementation]
(void) - setMinSize: [implementation]
(void) - setPaletteLabel: [implementation]
(void) - setTag: [implementation]
(void) - setTarget: [implementation]
(void) - setToolTip: [implementation]
(void) - setView: [implementation]
(void) - setVisibilityPriority: [implementation]
(int) - tag [implementation]
(id) - target [implementation]
(CPToolbar- toolbar [implementation]
(CPString- toolTip [implementation]
(void) - validate [implementation]
(CPView- view [implementation]
(int) - visibilityPriority [implementation]

Detailed Description

A representation of an item in a CPToolbar.

Definition at line 48 of file CPToolbarItem.j.


Member Function Documentation

- (SEL) action   [implementation]

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

Definition at line 239 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 482 of file CPToolbarItem.j.

- (id) copy   [implementation]

Definition at line 576 of file CPToolbarItem.j.

- (void) encodeWithCoder: (CPCoder aCoder   [implementation]

Definition at line 545 of file CPToolbarItem.j.

- (CPImage) image   [implementation]

Returns the item's image

Definition at line 286 of file CPToolbarItem.j.

- (id) init   [implementation]

Definition at line 74 of file CPToolbarItem.j.

- (id) initWithCoder: (CPCoder aCoder   [implementation]

Definition at line 512 of file CPToolbarItem.j.

- (id) initWithItemIdentifier: (CPString anItemIdentifier   [implementation]

Initializes the toolbar item with a specified identifier.

Parameters:
anItemIdentifier the item's identifier
Returns:
the initialized toolbar item

Definition at line 85 of file CPToolbarItem.j.

- (BOOL) isEnabled   [implementation]

Returns YES if the item is enabled.

Definition at line 263 of file CPToolbarItem.j.

- (CPString) itemIdentifier   [implementation]

Returns the item's identifier.

Definition at line 110 of file CPToolbarItem.j.

- (CPString) label   [implementation]

Returns the item's label

Definition at line 132 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 149 of file CPToolbarItem.j.

- (void) setAction: (SEL)  anAction   [implementation]

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

Parameters:
anAction the new action

Definition at line 251 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:
anImage the new alternate image

Definition at line 325 of file CPToolbarItem.j.

- (void) setAutovalidates: (BOOL)  shouldAutovalidate   [implementation]

Definition at line 487 of file CPToolbarItem.j.

- (void) setEnabled: (BOOL)  shouldBeEnabled   [implementation]

Sets whether the item is enabled.

Parameters:
aFlag YES enables the item

Definition at line 275 of file CPToolbarItem.j.

- (void) setImage: (CPImage anImage   [implementation]

Sets the item's image.

Parameters:
anImage the new item image

Definition at line 298 of file CPToolbarItem.j.

- (void) setLabel: (CPString aLabel   [implementation]

Sets the item's label.

Parameters:
aLabel the new label for the item

Definition at line 141 of file CPToolbarItem.j.

- (void) setMaxSize: (CGSize)  aMaxSize   [implementation]

Sets the item's new maximum size.

Parameters:
aMaxSize the new maximum size

Definition at line 409 of file CPToolbarItem.j.

- (void) setMinSize: (CGSize)  aMinSize   [implementation]

Sets the item's minimum size.

Parameters:
aMinSize the new minimum size

Definition at line 386 of file CPToolbarItem.j.

- (void) setPaletteLabel: (CPString aPaletteLabel   [implementation]

Sets the palette label

Parameters:
aPaletteLabel the new palette label

Definition at line 158 of file CPToolbarItem.j.

- (void) setTag: (int)  aTag   [implementation]

Sets the item's tag.

Parameters:
aTag the new tag for the item

Definition at line 203 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:
aTarget the new target

Definition at line 227 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:
aToolTip the new item tool tip

Definition at line 180 of file CPToolbarItem.j.

- (void) setView: (CPView aView   [implementation]

Sets the item's view

Parameters:
aView the 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:
aVisiblityPriority the priority

Definition at line 445 of file CPToolbarItem.j.

- (int) tag   [implementation]

Returns the item's tag.

Definition at line 191 of file CPToolbarItem.j.

- (id) target   [implementation]

Returns the item's action target.

Definition at line 214 of file CPToolbarItem.j.

- (CPToolbar) toolbar   [implementation]

Returns the toolbar of which this item is a part.

Definition at line 118 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 168 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 file:

Generated on Fri Apr 9 11:04:22 2010 for Cappuccino API by  doxygen 1.6.1