API 0.9.5
CPTabView Class Reference

#import <CPTabView.h>

Inheritance diagram for CPTabView:

List of all members.

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

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

Adds a CPTabViewItem to the tab view.

Parameters:
aTabViewItemthe 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.

Returns:
the receiver's delegate

Definition at line 361 of file CPTabView.j.

- (void) encodeWithCoder: (CPCoder aCoder

Archives the view to a coder.

Parameters:
aCoderthe 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.

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

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

Definition at line 130 of file CPTabView.j.

- (int) indexOfTabViewItemWithIdentifier: (CPString anIdentifier

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 140 of file CPTabView.j.

- (id) initWithCoder: (CPCoder aCoder

Initializes the view from an archive.

Parameters:
aCoderthe coder from which to initialize
Returns:
the initialized view

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

Returns:
the initialized view

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.

Parameters:
aTabViewItemthe item to insert
anIndexthe 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.

Parameters:
anEventcontains 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.

Returns:
the number of tab view items in the receiver

Definition at line 153 of file CPTabView.j.

- (void) removeTabViewItem: (CPTabViewItem aTabViewItem

Removes the specified tab view item from the tab view.

Parameters:
aTabViewItemthe item to remove

Definition at line 103 of file CPTabView.j.

- (CPTabViewItem) selectedTabViewItem

Returns the current item being displayed.

Returns:
the tab view item currenly being displayed by the receiver

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.

Parameters:
aSenderthe 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.

Parameters:
aSenderthe 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.

Parameters:
aSenderthe 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.

Parameters:
aSenderthe object making this request

Definition at line 223 of file CPTabView.j.

- (void) selectTabViewItem: (CPTabViewItem aTabViewItem

Displays the specified item in the tab view.

Parameters:
aTabViewItemthe item to display

Definition at line 240 of file CPTabView.j.

- (void) selectTabViewItemAtIndex: (unsigned)  anIndex

Selects the item at the specified index.

Parameters:
anIndexthe 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.

Parameters:
aColorthe 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.

Parameters:
aDelegatethe 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.

Parameters:
fontthe 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.

Parameters:
aTabViewTypethe view type

Definition at line 308 of file CPTabView.j.

- (CPTabViewItem) tabViewItemAtIndex: (unsigned)  anIndex

Returns the CPTabViewItem at the specified index.

Returns:
a tab view item, or nil

Definition at line 162 of file CPTabView.j.

- (CPArray) tabViewItems

Returns the array of items that backs this tab view.

Returns:
a copy of the array of items in the receiver

Definition at line 171 of file CPTabView.j.

- (CPTabViewType) tabViewType

Returns the tab view type.

Returns:
the tab view type of the receiver

Definition at line 352 of file CPTabView.j.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines