API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPTabView Class Reference

#import <CPTabView.h>

+ Inheritance diagram for CPTabView:

Instance Methods

(void) - addTabViewItem:
 
(void) - awakeFromCib
 
(CPColor- backgroundColor
 
(id) - delegate
 
(void) - encodeWithCoder:
 
(CPFont- font
 
(int) - indexOfTabViewItem:
 
(int) - indexOfTabViewItemWithIdentifier:
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(void) - insertTabViewItem:atIndex:
 
(void) - layoutSubviews
 
(void) - mouseDown:
 
(unsigned) - numberOfTabViewItems
 
(void) - removeTabViewItem:
 
(CPTabViewItem- selectedTabViewItem
 
(void) - selectFirstTabViewItem:
 
(void) - selectLastTabViewItem:
 
(void) - selectNextTabViewItem:
 
(void) - selectPreviousTabViewItem:
 
(void) - selectTabViewItem:
 
(BOOL) - selectTabViewItemAtIndex:
 
(void) - setBackgroundColor:
 
(void) - setDelegate:
 
(void) - setFont:
 
(void) - setTabViewType:
 
(CPTabViewItem- tabViewItemAtIndex:
 
(CPArray) - tabViewItems
 
(CPTabViewType) - tabViewType
 

Detailed Description

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.

Method Documentation

- (void) addTabViewItem: (CPTabViewItem aTabViewItem
implementation

Adds a CPTabViewItem to the tab view.

Parameters
aTabViewItemthe item to add

Definition at line 96 of file CPTabView.j.

- (void) awakeFromCib
implementation

Provided by category CPTabView(CPCoding).

Definition at line 512 of file CPTabView.j.

- (CPColor) backgroundColor
implementation

Definition at line 431 of file CPTabView.j.

- (id) delegate
implementation

Returns the receiver's delegate.

Returns
the receiver's delegate

Definition at line 395 of file CPTabView.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Provided by category CPTabView(CPCoding).

Definition at line 531 of file CPTabView.j.

- (CPFont) font
implementation

Returns the font for tab label text.

Returns
the font for tab label text

Definition at line 308 of file CPTabView.j.

- (int) indexOfTabViewItem: (CPTabViewItem aTabViewItem
implementation

Returns the index of the specified item

Parameters
aTabViewItemthe item to find the index for
Returns
the index of aTabViewItem or CPNotFound

Definition at line 150 of file CPTabView.j.

- (int) indexOfTabViewItemWithIdentifier: (CPString anIdentifier
implementation

Returns the index of the CPTabViewItem with the specified identifier.

Parameters
anIdentifierthe identifier of the item
Returns
the index of the tab view item identified by anIdentifier, or CPNotFound

Definition at line 160 of file CPTabView.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Provided by category CPTabView(CPCoding).

Definition at line 491 of file CPTabView.j.

- (id) initWithFrame: (CGRect)  aFrame
implementation

Definition at line 61 of file CPTabView.j.

- (void) insertTabViewItem: (CPTabViewItem aTabViewItem
atIndex: (CPUInteger)  anIndex 
implementation

Inserts a CPTabViewItem into the tab view at the specified index.

Parameters
aTabViewItemthe item to insert
anIndexthe index for the item

Definition at line 106 of file CPTabView.j.

- (void) layoutSubviews
implementation

Definition at line 361 of file CPTabView.j.

- (void) mouseDown: (CPEvent anEvent
implementation

Definition at line 436 of file CPTabView.j.

- (unsigned) numberOfTabViewItems
implementation

Returns the number of items in the tab view.

Returns
the number of tab view items in the receiver

Definition at line 173 of file CPTabView.j.

- (void) removeTabViewItem: (CPTabViewItem aTabViewItem
implementation

Removes the specified tab view item from the tab view.

Parameters
aTabViewItemthe item to remove

Definition at line 123 of file CPTabView.j.

- (CPTabViewItem) selectedTabViewItem
implementation

Returns the current item being displayed.

Returns
the tab view item currenly being displayed by the receiver

Definition at line 295 of file CPTabView.j.

- (void) selectFirstTabViewItem: (id)  aSender
implementation

Sets the first tab view item in the array to be displayed to the user.

Parameters
aSenderthe object making this request

Definition at line 201 of file CPTabView.j.

- (void) selectLastTabViewItem: (id)  aSender
implementation

Sets the last tab view item in the array to be displayed to the user.

Parameters
aSenderthe object making this request

Definition at line 213 of file CPTabView.j.

- (void) selectNextTabViewItem: (id)  aSender
implementation

Sets the next tab item in the array to be displayed.

Parameters
aSenderthe object making this request

Definition at line 225 of file CPTabView.j.

- (void) selectPreviousTabViewItem: (id)  aSender
implementation

Selects the previous item in the array for display.

Parameters
aSenderthe object making this request

Definition at line 243 of file CPTabView.j.

- (void) selectTabViewItem: (CPTabViewItem aTabViewItem
implementation

Displays the specified item in the tab view.

Parameters
aTabViewItemthe item to display

Definition at line 260 of file CPTabView.j.

- (BOOL) selectTabViewItemAtIndex: (CPUInteger)  anIndex
implementation

Selects the item at the specified index.

Parameters
anIndexthe index of the item to display.

Definition at line 269 of file CPTabView.j.

- (void) setBackgroundColor: (CPColor aColor
implementation

Definition at line 426 of file CPTabView.j.

- (void) setDelegate: (id)  aDelegate
implementation

Sets the delegate for this tab view.

Parameters
aDelegatethe tab view's delegate

Definition at line 404 of file CPTabView.j.

- (void) setFont: (CPFont font
implementation

Sets the font for tab label text to font.

Parameters
fontthe font the receiver should use for tab label text

Definition at line 317 of file CPTabView.j.

- (void) setTabViewType: (CPTabViewType)  aTabViewType
implementation

Sets the tab view type.

Parameters
aTabViewTypethe view type

Definition at line 331 of file CPTabView.j.

- (CPTabViewItem) tabViewItemAtIndex: (CPUInteger)  anIndex
implementation

Returns the CPTabViewItem at the specified index.

Returns
a tab view item, or nil

Definition at line 182 of file CPTabView.j.

- (CPArray) tabViewItems
implementation

Returns the array of items that backs this tab view.

Returns
a copy of the array of items in the receiver

Definition at line 191 of file CPTabView.j.

- (CPTabViewType) tabViewType
implementation

Returns the tab view type.

Returns
the tab view type of the receiver

Definition at line 386 of file CPTabView.j.


The documentation for this class was generated from the following files: