API  1.0.0
CPTabView Class Reference

#import <CPTabView.h>

+ Inheritance diagram for CPTabView:

Instance Methods

(BOOL) - acceptsFirstMouse:
 
(void) - addTabViewItem:
 
(void) - awakeFromCib
 
(CPColor- backgroundColor
 
(CPBinder- binderForBinding:
 
(id) - delegate
 
(void) - encodeWithCoder:
 
(CPFont- font
 
(int) - indexOfTabViewItem:
 
(int) - indexOfTabViewItemWithIdentifier:
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(void) - insertTabViewItem:atIndex:
 
(CPArray) - items
 
(void) - layoutSubviews
 
(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) - setItems:
 
(void) - setTabViewType:
 
(CPTabViewItem- tabViewItemAtIndex:
 
(CPArray) - tabViewItems
 
(CPTabViewType) - tabViewType
 
(void) - tileWithChangedItem:
 
- Instance Methods inherited from CPView
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(void) - addTrackingArea:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(CAAnimation- animationForKey:
 
(CPDictionary- animations
 
(id) - animator
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(BOOL) - becomeFirstResponder
 
(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:
 
(CPString- debug_description
 
(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:
 
(CPAppearance- effectiveAppearance
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGRect) - frameRectOfView:inSuperviewSize:
 
(CGSize) - frameSize
 
(CGRect) - frameWithNewSuperviewSize:
 
(BOOL) - hasCustomDrawRect
 
(BOOL) - hasCustomLayoutSubviews
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(void) - layout
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(void) - mouseDown:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsLayout
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(void) - objectDidChangeTheme
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reflectScrolledClipView:
 
(CPArray) - registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - removeFromSuperview
 
(void) - removeTrackingArea:
 
(void) - replaceSubview:with:
 
(BOOL) - resignFirstResponder
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(void) - rightMouseDown:
 
(CGSize) - scaleSize
 
(void) - scaleUnitSquareToSize:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAnimations:
 
(void) - setAppearance:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setDOMClassName:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNeedsLayout:
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setScaleSize:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray) - subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(void) - updateTrackingAreas
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidLayout
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillLayout
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 

Class Methods

(BOOL) + isBindingExclusive:
 
- Class Methods inherited from CPView
(Class) + animatorClass
 
(CAAnimation+ defaultAnimationForKey:
 
(CPMenu+ defaultMenu
 
(CPString+ defaultThemeClass
 
(void) + initialize
 
(BOOL) + isHighDPIDrawingEnabled
 
(CPSet) + keyPathsForValuesAffectingBounds
 
(CPSet) + keyPathsForValuesAffectingFrame
 
(void) + setHighDPIDrawingEnabled:
 
(CPDictionary+ themeAttributes
 

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

◆ acceptsFirstMouse:()

- (BOOL) acceptsFirstMouse: (CPEvent anEvent
implementation

Enabled controls accept first mouse by default.

Reimplemented from CPView.

Provided by category CPTabView(BindingSupport).

Definition at line 670 of file CPTabView.j.

◆ addTabViewItem:()

- (void) addTabViewItem: (CPTabViewItem aTabViewItem
implementation

Adds a CPTabViewItem to the tab view.

Parameters
aTabViewItemthe item to add

Definition at line 116 of file CPTabView.j.

◆ awakeFromCib()

- (void) awakeFromCib
implementation

Provided by category CPTabView(CPCoding).

Definition at line 804 of file CPTabView.j.

◆ backgroundColor()

- (CPColor) backgroundColor
implementation

Returns the background color of the receiver

Reimplemented from CPView.

Definition at line 517 of file CPTabView.j.

◆ binderForBinding:()

- (CPBinder) binderForBinding: (CPString aBinding
implementation

Provided by category CPTabView(BindingSupport).

Definition at line 604 of file CPTabView.j.

◆ delegate()

- (id) delegate
implementation

Returns the receiver's delegate.

Returns
the receiver's delegate

Definition at line 481 of file CPTabView.j.

◆ encodeWithCoder:()

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

◆ font()

- (CPFont) font
implementation

Returns the font for tab label text.

Returns
the font for tab label text

Definition at line 386 of file CPTabView.j.

◆ indexOfTabViewItem:()

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

◆ indexOfTabViewItemWithIdentifier:()

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

◆ initWithCoder:()

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

◆ initWithFrame:()

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

◆ insertTabViewItem:atIndex:()

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

◆ isBindingExclusive:()

+ (BOOL) isBindingExclusive: (CPString aBinding
implementation

Provided by category CPTabView(BindingSupport).

Definition at line 580 of file CPTabView.j.

◆ items()

- (CPArray) items
implementation

Definition at line 106 of file CPTabView.j.

◆ layoutSubviews()

- (void) layoutSubviews
implementation

Reimplemented from CPView.

Definition at line 447 of file CPTabView.j.

◆ numberOfTabViewItems()

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

◆ removeTabViewItem:()

- (void) removeTabViewItem: (CPTabViewItem aTabViewItem
implementation

Removes the specified tab view item from the tab view.

Parameters
aTabViewItemthe item to remove

Definition at line 152 of file CPTabView.j.

◆ selectedTabViewItem()

- (CPTabViewItem) selectedTabViewItem
implementation

Returns the current item being displayed.

Returns
the tab view item currenly being displayed by the receiver

Definition at line 376 of file CPTabView.j.

◆ selectFirstTabViewItem:()

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

◆ selectLastTabViewItem:()

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

◆ selectNextTabViewItem:()

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

◆ selectPreviousTabViewItem:()

- (void) selectPreviousTabViewItem: (id)  aSender
implementation

Selects the previous item in the array for display.

Parameters
aSenderthe object making this request

Definition at line 287 of file CPTabView.j.

◆ selectTabViewItem:()

- (void) selectTabViewItem: (CPTabViewItem aTabViewItem
implementation

Displays the specified item in the tab view.

Parameters
aTabViewItemthe item to display

Definition at line 304 of file CPTabView.j.

◆ selectTabViewItemAtIndex:()

- (BOOL) selectTabViewItemAtIndex: (CPUInteger)  anIndex
implementation

Selects the item at the specified index.

Parameters
anIndexthe index of the item to display.

Definition at line 313 of file CPTabView.j.

◆ setBackgroundColor:()

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

◆ setDelegate:()

- (void) setDelegate: (id <CPTabViewDelegate>)  aDelegate
implementation

Sets the delegate for this tab view.

Parameters
aDelegatethe tab view's delegate

Definition at line 490 of file CPTabView.j.

◆ setFont:()

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

◆ setItems:()

- (void) setItems: (CPArray)  tabViewItems
implementation

Provided by category CPTabView(BindingSupport).

Definition at line 615 of file CPTabView.j.

◆ setTabViewType:()

- (void) setTabViewType: (CPTabViewType)  aTabViewType
implementation

Sets the tab view type.

Parameters
aTabViewTypethe view type

Definition at line 409 of file CPTabView.j.

◆ tabViewItemAtIndex:()

- (CPTabViewItem) tabViewItemAtIndex: (CPUInteger)  anIndex
implementation

Returns the CPTabViewItem at the specified index.

Returns
a tab view item, or nil

Definition at line 226 of file CPTabView.j.

◆ tabViewItems()

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

◆ tabViewType()

- (CPTabViewType) tabViewType
implementation

Returns the tab view type.

Returns
the tab view type of the receiver

Definition at line 472 of file CPTabView.j.

◆ tileWithChangedItem:()

- (void) tileWithChangedItem: (CPTabViewItem aTabViewItem
implementation

Definition at line 439 of file CPTabView.j.


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