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

#import <CPComboBox.h>

+ Inheritance diagram for CPComboBox:

Instance Methods

(void) - addItemsWithObjectValues:
 
(void) - addItemWithObjectValue:
 
(CPString- comboBoxCompletedString:
 
(void) - comboBoxSelectionDidChange:
 
(void) - comboBoxSelectionIsChanging:
 
(void) - comboBoxWillDismiss:
 
(void) - comboBoxWillPopUp:
 
(CPString- completedString:
 
(BOOL) - completes
 
(CPView- createEphemeralSubviewNamed:
 
(id *< CPComboBoxDataSource > *) - dataSource
 
(id *< CPComboBoxDelegate > *) - delegate
 
(void) - deselectItemAtIndex:
 
(void) - encodeWithCoder:
 
(BOOL) - forceSelection
 
(BOOL) - hasVerticalScroller
 
(int) - indexOfItemWithObjectValue:
 
(int) - indexOfSelectedItem
 
(id) - initWithCoder:
 
(id) - initWithFrame:
 
(void) - insertItemWithObjectValue:atIndex:
 
(CGSize) - intercellSpacing
 
(void) - interpretKeyEvents:
 
(BOOL) - isButtonBordered
 
(float) - itemHeight
 
(id) - itemObjectValueAtIndex:
 
(void) - itemWasClicked:
 
(void) - layoutSubviews
 
(_CPPopUpList) - listDelegate
 
(void) - listDidDismiss:
 
(BOOL) - listIsVisible
 
(void) - noteNumberOfItemsChanged
 
(int) - numberOfItems
 
(int) - numberOfVisibleItems
 
(id) - objectValueOfSelectedItem
 
(CPArray) - objectValues
 
(void) - paste:
 
(BOOL) - performKeyEquivalent:
 
(CGRect) - popupButtonRectForBounds:
 
(void) - popUpList
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reloadData
 
(void) - reloadDataSourceForSelector:
 
(void) - removeAllItems
 
(void) - removeItemAtIndex:
 
(void) - removeItemWithObjectValue:
 
(BOOL) - resignFirstResponder
 
(void) - scrollItemAtIndexToTop:
 
(void) - scrollItemAtIndexToVisible:
 
(void) - selectItemAtIndex:
 
(void) - selectItemWithObjectValue:
 
(BOOL) - sendAction:to:
 
(void) - setAlignment:
 
(void) - setButtonBordered:
 
(void) - setCompletes:
 
(void) - setContent:
 
(void) - setContentValues:
 
(void) - setDataSource:
 
(void) - setDelegate:
 
(void) - setFont:
 
(void) - setForceSelection:
 
(void) - setHasVerticalScroller:
 
(void) - setIntercellSpacing:
 
(void) - setItemHeight:
 
(void) - setListDelegate:
 
(void) - setNumberOfVisibleItems:
 
(void) - setObjectValue:
 
(void) - setUsesDataSource:
 
(BOOL) - takeStringValueFromList
 
(void) - textDidChange:
 
(BOOL) - usesDataSource
 

Class Methods

(CPString+ defaultThemeClass
 
(CPDictionary+ themeAttributes
 

Detailed Description

Definition at line 2 of file CPComboBox.h.

Method Documentation

- (void) addItemsWithObjectValues: (CPArray)  objects
implementation

Definition at line 278 of file CPComboBox.j.

- (void) addItemWithObjectValue: (id)  anObject
implementation

Definition at line 285 of file CPComboBox.j.

- (CPString) comboBoxCompletedString: (CPString uncompletedString
implementation

Provided by category CPComboBox(CPComboBoxDataSource).

Definition at line 979 of file CPComboBox.j.

- (void) comboBoxSelectionDidChange: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 957 of file CPComboBox.j.

- (void) comboBoxSelectionIsChanging: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 951 of file CPComboBox.j.

- (void) comboBoxWillDismiss: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 969 of file CPComboBox.j.

- (void) comboBoxWillPopUp: (CPNotification aNotification
implementation

Provided by category CPComboBox(CPComboBoxDelegate).

Definition at line 963 of file CPComboBox.j.

- (CPString) completedString: (CPString substring
implementation

Definition at line 605 of file CPComboBox.j.

- (BOOL) completes
implementation

Definition at line 595 of file CPComboBox.j.

- (CPView) createEphemeralSubviewNamed: (CPString aName
implementation

Definition at line 850 of file CPComboBox.j.

- (id *< CPComboBoxDataSource > *) dataSource
implementation

Definition at line 231 of file CPComboBox.j.

+ (CPString) defaultThemeClass
implementation

Definition at line 53 of file CPComboBox.j.

- (id *< CPComboBoxDelegate > *) delegate
implementation

Definition at line 171 of file CPComboBox.j.

- (void) deselectItemAtIndex: (int)  index
implementation

Definition at line 543 of file CPComboBox.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Reimplemented from CPControl.

Provided by category CPComboBox(CPCoding).

Definition at line 1085 of file CPComboBox.j.

- (BOOL) forceSelection
implementation

Returns whether the combo box forces the user to enter or select an item that is in the item list.

Definition at line 621 of file CPComboBox.j.

- (BOOL) hasVerticalScroller
implementation

Definition at line 106 of file CPComboBox.j.

- (int) indexOfItemWithObjectValue: (id)  anObject
implementation

Definition at line 428 of file CPComboBox.j.

- (int) indexOfSelectedItem
implementation

Definition at line 554 of file CPComboBox.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Reimplemented from CPControl.

Provided by category CPComboBox(CPCoding).

Definition at line 1063 of file CPComboBox.j.

- (id) initWithFrame: (CGRect)  aFrame
implementation

Reimplemented from CPControl.

Definition at line 74 of file CPComboBox.j.

- (void) insertItemWithObjectValue: (id)  anObject
atIndex: (int)  anIndex 
implementation

Definition at line 292 of file CPComboBox.j.

- (CGSize) intercellSpacing
implementation

Definition at line 122 of file CPComboBox.j.

- (void) interpretKeyEvents: (CPArray)  events
implementation

Definition at line 667 of file CPComboBox.j.

- (BOOL) isButtonBordered
implementation

Definition at line 132 of file CPComboBox.j.

- (float) itemHeight
implementation

Definition at line 145 of file CPComboBox.j.

- (id) itemObjectValueAtIndex: (int)  index
implementation

Definition at line 436 of file CPComboBox.j.

- (void) itemWasClicked: (CPNotification aNotification
implementation

The receiver receives this notification when an item in the list is clicked.

Definition at line 535 of file CPComboBox.j.

- (void) layoutSubviews
implementation

Definition at line 862 of file CPComboBox.j.

- (_CPPopUpList) listDelegate
implementation

Returns the delegate to be used when creating the pop up list.

Definition at line 354 of file CPComboBox.j.

- (void) listDidDismiss: (CPNotification aNotification
implementation

The receiver receives this notification when the list is closed.

Definition at line 526 of file CPComboBox.j.

- (BOOL) listIsVisible
implementation

Definition at line 485 of file CPComboBox.j.

- (void) noteNumberOfItemsChanged
implementation

Definition at line 444 of file CPComboBox.j.

- (int) numberOfItems
implementation

Definition at line 341 of file CPComboBox.j.

- (int) numberOfVisibleItems
implementation

Definition at line 158 of file CPComboBox.j.

- (id) objectValueOfSelectedItem
implementation

Definition at line 559 of file CPComboBox.j.

- (CPArray) objectValues
implementation

Returns the internal array of items. NOTE: Unlike Cocoa the array is mutable, since all arrays in Objective-J are mutable. But you should treat it as an immutable array. Do NOT attempt to change the returned array in any way.

If usesDataSource is YES, a warning is logged and an empty array is returned.

Definition at line 309 of file CPComboBox.j.

- (void) paste: (id)  sender
implementation

Definition at line 689 of file CPComboBox.j.

- (BOOL) performKeyEquivalent: (CPEvent anEvent
implementation

Override of CPView -performKeyEquivalent

Definition at line 737 of file CPComboBox.j.

- (CGRect) popupButtonRectForBounds: (CGRect)  bounds
implementation

Definition at line 828 of file CPComboBox.j.

- (void) popUpList
implementation

Definition at line 465 of file CPComboBox.j.

- (CGRect) rectForEphemeralSubviewNamed: (CPString aName
implementation

Definition at line 842 of file CPComboBox.j.

- (void) reloadData
implementation

Definition at line 459 of file CPComboBox.j.

- (void) reloadDataSourceForSelector: (SEL)  cmd
implementation

Definition at line 491 of file CPComboBox.j.

- (void) removeAllItems
implementation

Definition at line 317 of file CPComboBox.j.

- (void) removeItemAtIndex: (int)  index
implementation

Definition at line 324 of file CPComboBox.j.

- (void) removeItemWithObjectValue: (id)  anObject
implementation

Definition at line 334 of file CPComboBox.j.

- (BOOL) resignFirstResponder
implementation

Definition at line 772 of file CPComboBox.j.

- (void) scrollItemAtIndexToTop: (int)  index
implementation

Definition at line 449 of file CPComboBox.j.

- (void) scrollItemAtIndexToVisible: (int)  index
implementation

Definition at line 454 of file CPComboBox.j.

- (void) selectItemAtIndex: (int)  index
implementation

Definition at line 574 of file CPComboBox.j.

- (void) selectItemWithObjectValue: (id)  anObject
implementation

Definition at line 585 of file CPComboBox.j.

- (BOOL) sendAction: (SEL)  anAction
to: (id)  anObject 
implementation

Reimplemented from CPControl.

Definition at line 643 of file CPComboBox.j.

- (void) setAlignment: (CPTextAlignment)  alignment
implementation

Sets the text alignment of the control.

CPLeftTextAlignment
CPCenterTextAlignment
CPRightTextAlignment
CPJustifiedTextAlignment
CPNaturalTextAlignment

Reimplemented from CPControl.

Definition at line 820 of file CPComboBox.j.

- (void) setButtonBordered: (BOOL)  flag
implementation

Definition at line 137 of file CPComboBox.j.

- (void) setCompletes: (BOOL)  flag
implementation

Definition at line 600 of file CPComboBox.j.

- (void) setContent: (CPArray)  anArray
implementation

Provided by category CPComboBox(Bindings).

Definition at line 1032 of file CPComboBox.j.

- (void) setContentValues: (CPArray)  anArray
implementation

Provided by category CPComboBox(Bindings).

Definition at line 1024 of file CPComboBox.j.

- (void) setDataSource: (id /*< CPComboBoxDataSource >*/)  aSource
implementation

Definition at line 239 of file CPComboBox.j.

- (void) setDelegate: (id /*< CPComboBoxDelegate >*/)  aDelegate
implementation

Sets the CPComboBox delegate. Note that although the Cocoa docs say that the delegate must conform to the NSComboBoxDelegate protocol, in actual fact it doesn't. Also note that the same delegate may conform to the NSTextFieldDelegate protocol.

Definition at line 182 of file CPComboBox.j.

- (void) setFont: (CPFont aFont
implementation

Sets the font of the control.

Reimplemented from CPControl.

Definition at line 814 of file CPComboBox.j.

- (void) setForceSelection: (BOOL)  flag
implementation

Sets whether the combo box forces the user to enter or select an item that is in the item list. If flag is YES and the user enters a value that is not in the list, when the field loses focus it will revert to the previous value. If flag is NO, the user can enter any value they wish.

Note that this flag is ignored if setStringValue or setObjectValue are called directly.

Definition at line 635 of file CPComboBox.j.

- (void) setHasVerticalScroller: (BOOL)  flag
implementation

Definition at line 111 of file CPComboBox.j.

- (void) setIntercellSpacing: (CGSize)  aSize
implementation

Definition at line 127 of file CPComboBox.j.

- (void) setItemHeight: (float)  itemHeight
implementation

Definition at line 150 of file CPComboBox.j.

- (void) setListDelegate: (_CPPopUpList)  aDelegate
implementation

Sets the delegate to be used when creating the pop up list. By default this is _CPPopUpList. If you are using a subclass of _CPPopUpList, call this method with your subclass.

Definition at line 364 of file CPComboBox.j.

- (void) setNumberOfVisibleItems: (int)  visibleItems
implementation

Definition at line 163 of file CPComboBox.j.

- (void) setObjectValue: (id)  object
implementation

Reimplemented from CPControl.

Definition at line 659 of file CPComboBox.j.

- (void) setUsesDataSource: (BOOL)  flag
implementation

Definition at line 260 of file CPComboBox.j.

- (BOOL) takeStringValueFromList
implementation

If the list is non-empty, sets the value of the field from the currently selected value of the list and returns YES. If the list is empty or the list has no selected item, returns NO.

Definition at line 504 of file CPComboBox.j.

- (void) textDidChange: (CPNotification aNotification
implementation

Reimplemented from CPControl.

Definition at line 706 of file CPComboBox.j.

+ (CPDictionary) themeAttributes
implementation

Reimplemented from CPControl.

Definition at line 58 of file CPComboBox.j.

- (BOOL) usesDataSource
implementation

Definition at line 255 of file CPComboBox.j.


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