#import <CPToolbarItem.h>
A representation of an item in a CPToolbar.
Definition at line 2 of file CPToolbarItem.h.
Returns the action that is triggered when the user clicks this item.
Definition at line 236 of file CPToolbarItem.j.
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.
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 |
Initializes the receiver
- Returns
- the initialized receiver
Reimplemented from CPObject.
Definition at line 71 of file CPToolbarItem.j.
- (id) initWithCoder: |
|
(CPCoder) |
aCoder |
|
|
implementation |
- (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 82 of file CPToolbarItem.j.
- (void) setAction: |
|
(SEL) |
anAction |
|
|
implementation |
Sets the action that is triggered when the user clicks this item.
- Parameters
-
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
-
anImage | the new alternate image |
Definition at line 325 of file CPToolbarItem.j.
- (void) setAutovalidates: |
|
(BOOL) |
shouldAutovalidate |
|
|
implementation |
- (void) setEnabled: |
|
(BOOL) |
shouldBeEnabled |
|
|
implementation |
Sets whether the item is enabled.
- Parameters
-
aFlag | YES enables the item |
Definition at line 272 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.
Sets the item's label.
- Parameters
-
aLabel | the 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
-
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 155 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 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
-
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
-
aToolTip | the new item tool tip |
Definition at line 177 of file CPToolbarItem.j.
- (void) setView: |
|
(CPView) |
aView |
|
|
implementation |
- (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.
Returns the toolbar of which this item is a part.
Definition at line 115 of file CPToolbarItem.j.
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.
- (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: