CPObjectCPToolbarItem
@implementation CPToolbarItem : CPObject
A representation of an item in a CPToolbar
.
Global Variables |
---|
CPToolbarItemVisibilityPriorityStandard = 0 |
CPToolbarItemVisibilityPriorityUser = 2000 |
CPToolbarItemVisibilityPriorityLow = -1000 |
CPToolbarItemVisibilityPriorityHigh = 1000 |
Method Summary | |
---|---|
-(id) | initWithItemIdentifier:(CPString)anItemIdentifier Initializes the toolbar item with a specified identifier. |
-(SEL) | action Returns the action that is triggered when the user clicks this item. |
-(CPImage) | alternateImage Returns the alternate image. |
-(id) | copy Makes a deep copy of the receiver. |
-(CPImage) | image Returns the item's image. |
-(BOOL) | isEnabled Returns YES if the item is enabled. |
-(CPString) | itemIdentifier Returns the item's identifier. |
-(CPString) | label Returns the item's label. |
-(CGSize) | maxSize Returns the item's maximum size. |
-(CGSize) | minSize Returns the item's minimum size. |
-(CPString) | paletteLabel Returns the palette label. |
-(void) | setAction:(SEL)anAction Sets the action that is triggered when the user clicks this item. |
-(void) | setAlternateImage:(CPImage)anImage Sets the alternate image. |
-(void) | setEnabled:(BOOL)aFlag Sets whether the item is enabled. |
-(void) | setImage:(CPImage)anImage Sets the item's image. |
-(void) | setLabel:(CPString)aLabel Sets the item's label. |
-(void) | setMaxSize:(CGSize)aMaxSize Sets the item's new maximum size. |
-(void) | setMinSize:(CGSize)aMinSize Sets the item's minimum size. |
-(void) | setPaletteLabel:(CPString)aPaletteLabel Sets the palette label. |
-(void) | setTag:(int)aTag Sets the item's tag. |
-(void) | setTarget:(id)aTarget Sets the target of the action that is triggered when the user clicks this item. |
-(void) | setToolTip:(CPString)aToolTip Sets the item's tooltip. |
-(void) | setView:(CPView)aView Sets the item's view. |
-(void) | setVisibilityPriority:(int)aVisibilityPriority Sets the item's visibility priority. |
-(int) | tag Returns the item's tag. |
-(id) | target Returns the item's action target. |
-(CPString) | toolTip Returns the item's tooltip. |
-(CPToolbar) | toolbar Returns the toolbar of which this item is a part. |
-(CPView) | view Returns the item's view. |
-(int) | visibilityPriority Returns the item's visibility priority. |
Method Detail |
---|
-(id)initWithItemIdentifier:(CPString)anItemIdentifier
anItemIdentifier
- the item's identifier-(SEL)action
-(CPImage)alternateImage
-(id)copy
-(CPImage)image
-(BOOL)isEnabled
YES
if the item is enabled.-(CPString)itemIdentifier
-(CPString)label
-(CGSize)maxSize
-(CGSize)minSize
-(CPString)paletteLabel
-(void)setAction:(SEL)anAction
anAction
- the new action-(void)setAlternateImage:(CPImage)anImage
anImage
- the new alternate image-(void)setEnabled:(BOOL)aFlag
aFlag
- YES
enables the item-(void)setImage:(CPImage)anImage
anImage
- the new item image-(void)setLabel:(CPString)aLabel
aLabel
- the new label for the item-(void)setMaxSize:(CGSize)aMaxSize
aMaxSize
- the new maximum size-(void)setMinSize:(CGSize)aMinSize
aMinSize
- the new minimum size-(void)setPaletteLabel:(CPString)aPaletteLabel
aPaletteLabel
- the new palette label-(void)setTag:(int)aTag
aTag
- the new tag for the item-(void)setTarget:(id)aTarget
nil
will cause
the action to be passed on to the first responder.aTarget
- the new target-(void)setToolTip:(CPString)aToolTip
aToolTip
- the new item tool tip-(void)setView:(CPView)aView
aView
- the item's new view-(void)setVisibilityPriority:(int)aVisibilityPriority
CPToolbarItemVisibilityPriorityStandard CPToolbarItemVisibilityPriorityLow CPToolbarItemVisibilityPriorityHigh CPToolbarItemVisibilityPriorityUser
aVisibilityPriority
-(int)tag
-(id)target
-(CPString)toolTip
-(CPToolbar)toolbar
-(CPView)view
-(int)visibilityPriority
CPToolbarItemVisibilityPriorityStandard CPToolbarItemVisibilityPriorityLow CPToolbarItemVisibilityPriorityHigh CPToolbarItemVisibilityPriorityUser
Created on Sat Sep 13 14:15:43 PDT 2008