![]() |
API 0.9.5
|
#import <CPTabView.h>
Instance Methods | |
(void) | - addTabViewItem: |
(CPColor) | - backgroundColor |
(id) | - delegate |
(void) | - encodeWithCoder: |
(CPFont) | - font |
(int) | - indexOfTabViewItem: |
(int) | - indexOfTabViewItemWithIdentifier: |
(id) | - initWithCoder: |
(id) | - initWithFrame: |
(void) | - insertTabViewItem:atIndex: |
(void) | - mouseDown: |
(unsigned) | - numberOfTabViewItems |
(void) | - removeTabViewItem: |
(CPTabViewItem) | - selectedTabViewItem |
(void) | - selectFirstTabViewItem: |
(void) | - selectLastTabViewItem: |
(void) | - selectNextTabViewItem: |
(void) | - selectPreviousTabViewItem: |
(void) | - selectTabViewItem: |
(void) | - selectTabViewItemAtIndex: |
(void) | - setBackgroundColor: |
(void) | - setDelegate: |
(void) | - setFont: |
(void) | - setTabViewType: |
(CPTabViewItem) | - tabViewItemAtIndex: |
(CPArray) | - tabViewItems |
(CPTabViewType) | - tabViewType |
A CPTabView object presents a tabbed interface where each page is one a complete view hiearchy of its own. The user can navigate between various pages by clicking on the tab headers.
Definition at line 2 of file CPTabView.h.
- (void) addTabViewItem: | (CPTabViewItem) | aTabViewItem |
Adds a CPTabViewItem to the tab view.
aTabViewItem | the item to add |
Definition at line 76 of file CPTabView.j.
- (CPColor) backgroundColor |
Returns the background color of the receiver
Reimplemented from CPView.
Definition at line 397 of file CPTabView.j.
- (id) delegate |
Returns the receiver's delegate.
Definition at line 361 of file CPTabView.j.
- (void) encodeWithCoder: | (CPCoder) | aCoder |
Archives the view to a coder.
aCoder | the object into which the view's data will be archived. |
Reimplemented from CPView.
Definition at line 485 of file CPTabView.j.
- (CPFont) font |
Returns the font for tab label text.
Definition at line 285 of file CPTabView.j.
- (int) indexOfTabViewItem: | (CPTabViewItem) | aTabViewItem |
Returns the index of the specified item
aTabViewItem | the item to find the index for |
Definition at line 130 of file CPTabView.j.
- (int) indexOfTabViewItemWithIdentifier: | (CPString) | anIdentifier |
Returns the index of the CPTabViewItem with the specified identifier.
anIdentifier | the identifier of the item |
Definition at line 140 of file CPTabView.j.
- (id) initWithCoder: | (CPCoder) | aCoder |
Initializes the view from an archive.
aCoder | the coder from which to initialize |
Reimplemented from CPView.
Definition at line 458 of file CPTabView.j.
- (id) initWithFrame: | (CGRect) | aFrame |
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPView.
Definition at line 39 of file CPTabView.j.
- (void) insertTabViewItem: | (CPTabViewItem) | aTabViewItem | |
atIndex: | (unsigned) | anIndex | |
Inserts a CPTabViewItem into the tab view at the specified index.
aTabViewItem | the item to insert |
anIndex | the index for the item |
Definition at line 86 of file CPTabView.j.
- (void) mouseDown: | (CPEvent) | anEvent |
Notifies the receiver that the user has clicked the mouse down in its area.
anEvent | contains information about the click |
Reimplemented from CPView.
Definition at line 402 of file CPTabView.j.
- (unsigned) numberOfTabViewItems |
Returns the number of items in the tab view.
Definition at line 153 of file CPTabView.j.
- (void) removeTabViewItem: | (CPTabViewItem) | aTabViewItem |
Removes the specified tab view item from the tab view.
aTabViewItem | the item to remove |
Definition at line 103 of file CPTabView.j.
- (CPTabViewItem) selectedTabViewItem |
Returns the current item being displayed.
Definition at line 275 of file CPTabView.j.
- (void) selectFirstTabViewItem: | (id) | aSender |
Sets the first tab view item in the array to be displayed to the user.
aSender | the object making this request |
Definition at line 181 of file CPTabView.j.
- (void) selectLastTabViewItem: | (id) | aSender |
Sets the last tab view item in the array to be displayed to the user.
aSender | the object making this request |
Definition at line 193 of file CPTabView.j.
- (void) selectNextTabViewItem: | (id) | aSender |
Sets the next tab item in the array to be displayed.
aSender | the object making this request |
Definition at line 205 of file CPTabView.j.
- (void) selectPreviousTabViewItem: | (id) | aSender |
Selects the previous item in the array for display.
aSender | the object making this request |
Definition at line 223 of file CPTabView.j.
- (void) selectTabViewItem: | (CPTabViewItem) | aTabViewItem |
Displays the specified item in the tab view.
aTabViewItem | the item to display |
Definition at line 240 of file CPTabView.j.
- (void) selectTabViewItemAtIndex: | (unsigned) | anIndex |
Selects the item at the specified index.
anIndex | the index of the item to display. |
Definition at line 249 of file CPTabView.j.
- (void) setBackgroundColor: | (CPColor) | aColor |
Sets the background color of the receiver.
aColor | the new color for the receiver's background |
Reimplemented from CPView.
Definition at line 392 of file CPTabView.j.
- (void) setDelegate: | (id) | aDelegate |
Sets the delegate for this tab view.
aDelegate | the tab view's delegate |
Definition at line 370 of file CPTabView.j.
- (void) setFont: | (CPFont) | font |
Sets the font for tab label text to font.
font | the font the receiver should use for tab label text |
Definition at line 294 of file CPTabView.j.
- (void) setTabViewType: | (CPTabViewType) | aTabViewType |
Sets the tab view type.
aTabViewType | the view type |
Definition at line 308 of file CPTabView.j.
- (CPTabViewItem) tabViewItemAtIndex: | (unsigned) | anIndex |
Returns the CPTabViewItem at the specified index.
Definition at line 162 of file CPTabView.j.
- (CPArray) tabViewItems |
Returns the array of items that backs this tab view.
Definition at line 171 of file CPTabView.j.
- (CPTabViewType) tabViewType |
Returns the tab view type.
Definition at line 352 of file CPTabView.j.