Public Member Functions | |
(id) | - delegate [implementation] |
(void) | - encodeWithCoder: [implementation] |
(CPString) | - identifier [implementation] |
(id) | - init [implementation] |
(id) | - initWithCoder: [implementation] |
(id) | - initWithIdentifier: [implementation] |
(BOOL) | - isVisible [implementation] |
(CPArray) | - items [implementation] |
(CPArray) | - itemsSortedByVisibilityPriority [implementation] |
(void) | - setDelegate: [implementation] |
(void) | - setDisplayMode: [implementation] |
(void) | - setVisible: [implementation] |
(void) | - toolbarItemDidChange: [implementation] |
(void) | - validateVisibleToolbarItems [implementation] |
(CPArray) | - visibleItems [implementation] |
Static Public Member Functions | |
(void) | + initialize [implementation] |
A CPToolbar is displayed at the top of a window with multiple buttons (tools) that offer the user quick access to features.
-(CPArray)toolbarDefaultItemIdentifiers:(CPToolbar)toolbar; Called to obtain the toolbar's default item identifiers. Required.
toolbar | the toolbar to obtain identifiers for |
-(CPArray)toolbarAllowedItemIdentifiers:(CPToolbar)toolbar; Called to obtain the toolbar's default item identifiers. Required.
toolbar | the toolbar to obtain identifiers for |
- (CPToolbarItem)toolbar:(CPToolbar)toolbar itemForItemIdentifier:(CPString)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag; Called to obtain a toolbar item. Required.
toolbar | the toolbar the item belongs to | |
itemIdentifier | the identifier of the toolbar item | |
flag | YES means the item will be placed in the toolbar. NO means the item will be displayed for some other purpose (non-functional) |
nil
if no such item belongs in the toolbar Definition at line 85 of file CPToolbar.j.
- (id) delegate | [implementation] |
Returns the toolbar's delegate
Definition at line 180 of file CPToolbar.j.
- (void) encodeWithCoder: | (CPCoder) | aCoder | [implementation] |
Definition at line 479 of file CPToolbar.j.
- (CPString) identifier | [implementation] |
Returns the toolbar's identifier
Definition at line 172 of file CPToolbar.j.
- (id) init | [implementation] |
Definition at line 133 of file CPToolbar.j.
+ (void) initialize | [implementation] |
Definition at line 110 of file CPToolbar.j.
- (id) initWithCoder: | (CPCoder) | aCoder | [implementation] |
Definition at line 436 of file CPToolbar.j.
- (id) initWithIdentifier: | (CPString) | anIdentifier | [implementation] |
Initializes the toolbar with the specified identifier.
anIdentifier | the identifier for the toolbar |
Definition at line 143 of file CPToolbar.j.
- (BOOL) isVisible | [implementation] |
Returns YES
if the toolbar is currently visible
Definition at line 188 of file CPToolbar.j.
- (CPArray) items | [implementation] |
Returns all the items in this toolbar.
Definition at line 311 of file CPToolbar.j.
- (CPArray) itemsSortedByVisibilityPriority | [implementation] |
Returns the toolbar items sorted by their visibilityPriority(ies)
.
Definition at line 327 of file CPToolbar.j.
- (void) setDelegate: | (id) | aDelegate | [implementation] |
Sets the delegate for the toolbar.
aDelegate | the new toolbar delegate |
Definition at line 221 of file CPToolbar.j.
- (void) setDisplayMode: | (CPToolbarDisplayMode) | aDisplayMode | [implementation] |
Sets the toolbar's display mode. NOT YET IMPLEMENTED.
Definition at line 164 of file CPToolbar.j.
- (void) setVisible: | (BOOL) | aFlag | [implementation] |
Sets whether the toolbar should be visible.
aFlag | YES makes the toolbar visible |
Definition at line 197 of file CPToolbar.j.
- (void) toolbarItemDidChange: | (CPToolbarItem) | anItem | [implementation] |
Notifies the toolbar that an item has been changed. This will cause the toolbar to reload its items.
anItem | the item that has been changed |
Definition at line 394 of file CPToolbar.j.
- (void) validateVisibleToolbarItems | [implementation] |
Definition at line 332 of file CPToolbar.j.
- (CPArray) visibleItems | [implementation] |
Returns all the visible items in this toolbar
Definition at line 319 of file CPToolbar.j.