API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPTabView Class Reference

#import <CPTabView.h>

+ Inheritance diagram for CPTabView:

Instance Methods

(void) - addTabViewItem:
 
(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
 
- Instance Methods inherited from CPView
(BOOL) - acceptsFirstMouse:
 
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(CGRect) - bounds
 
(CGPoint) - boundsOrigin
 
(CGSize) - boundsSize
 
(BOOL) - canBecomeKeyView
 
(CGPoint) - center
 
(BOOL) - clipsToBounds
 
(CGPoint) - convertPoint:fromView:
 
(CGPoint) - convertPoint:toView:
 
(CGPoint) - convertPointFromBase:
 
(CGPoint) - convertPointToBase:
 
(CGRect) - convertRect:fromView:
 
(CGRect) - convertRect:toView:
 
(CGRect) - convertRectFromBase:
 
(CGRect) - convertRectToBase:
 
(CGSize) - convertSize:fromView:
 
(CGSize) - convertSize:toView:
 
(CPView- createEphemeralSubviewNamed:
 
(id) - currentValueForThemeAttribute:
 
(void) - didAddSubview:
 
(void) - display
 
(void) - displayIfNeeded
 
(void) - displayIfNeededInRect:
 
(void) - displayRect:
 
(void) - displayRectIgnoringOpacity:inContext:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(void) - drawRect:
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGSize) - frameSize
 
(BOOL) - hasThemeAttribute:
 
(BOOL) - hasThemeState:
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reflectScrolledClipView:
 
(CPArray- registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - registerThemeValues:
 
(void) - registerThemeValues:inherit:
 
(void) - removeFromSuperview
 
(void) - replaceSubview:with:
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(void) - rightMouseDown:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setTheme:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray- subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(CPTheme- theme
 
(CPString- themeClass
 
(unsigned) - themeState
 
(CPString- toolTip
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(id) - valueForThemeAttribute:
 
(id) - valueForThemeAttribute:inState:
 
(void) - viewDidChangeTheme
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 
- Instance Methods inherited from CPResponder
(BOOL) - acceptsFirstResponder
 
(BOOL) - becomeFirstResponder
 
(void) - doCommandBySelector:
 
(void) - flagsChanged:
 
(void) - insertBackTab:
 
(void) - insertLineBreak:
 
(void) - insertNewline:
 
(void) - insertTab:
 
(void) - insertText:
 
(void) - interpretKeyEvents:
 
(void) - keyDown:
 
(void) - keyUp:
 
(CPMenu- menu
 
(void) - mouseDragged:
 
(void) - mouseEntered:
 
(void) - mouseExited:
 
(void) - mouseMoved:
 
(void) - mouseUp:
 
(CPResponder- nextResponder
 
(void) - noResponderFor:
 
(BOOL) - resignFirstResponder
 
(void) - rightMouseUp:
 
(void) - scrollWheel:
 
(void) - setMenu:
 
(void) - setNextResponder:
 
(BOOL) - tryToPerform:with:
 
(CPUndoManager- undoManager
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray- exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Additional Inherited Members

- Class Methods inherited from CPView
(CPMenu+ defaultMenu
 
(CPString+ defaultThemeClass
 
(void) + initialize
 
(CPSet+ keyPathsForValuesAffectingBounds
 
(CPSet+ keyPathsForValuesAffectingFrame
 
(CPDictionary+ themeAttributes
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(Class) + class
 
(void) + exposeBinding:
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 
- Instance Variables inherited from CPObject
Class isa
 

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.

- (CPColor) backgroundColor
implementation

Returns the background color of the receiver

Reimplemented from CPView.

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

Archives the view to a coder.

Parameters
aCoderthe object into which the view's data will be archived.

Reimplemented from CPView.

Provided by category CPTabView(CPCoding).

Definition at line 519 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

Initializes the view from an archive.

Parameters
aCoderthe coder from which to initialize
Returns
the initialized view

Reimplemented from CPView.

Provided by category CPTabView(CPCoding).

Definition at line 491 of file CPTabView.j.

- (id) initWithFrame: (CGRect)  aFrame
implementation

Initializes the receiver for usage with the specified bounding rectangle

Returns
the initialized view

Reimplemented from CPView.

Definition at line 61 of file CPTabView.j.

- (void) insertTabViewItem: (CPTabViewItem aTabViewItem
atIndex: (unsigned)  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

Reimplemented from CPView.

Definition at line 361 of file CPTabView.j.

- (void) mouseDown: (CPEvent anEvent
implementation

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 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: (unsigned)  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

Sets the background color of the receiver.

Parameters
aColorthe new color for the receiver's background

Reimplemented from CPView.

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: (unsigned)  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: