#import <CPComboBox.h>
Definition at line 2 of file CPComboBox.h.
- (void) addItemsWithObjectValues: |
|
(CPArray) |
objects |
|
|
implementation |
- (void) addItemWithObjectValue: |
|
(id) |
anObject |
|
|
implementation |
- (id *< CPComboBoxDataSource > *) dataSource |
|
|
|
|
implementation |
- (id *< CPComboBoxDelegate > *) delegate |
|
|
|
|
implementation |
- (void) deselectItemAtIndex: |
|
(int) |
index |
|
|
implementation |
- (void) encodeWithCoder: |
|
(CPCoder) |
aCoder |
|
|
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 |
- (int) indexOfItemWithObjectValue: |
|
(id) |
anObject |
|
|
implementation |
- (int) indexOfSelectedItem |
|
|
|
|
implementation |
- (id) initWithCoder: |
|
(CPCoder) |
aCoder |
|
|
implementation |
- (id) initWithFrame: |
|
(CGRect) |
aFrame |
|
|
implementation |
- (void) insertItemWithObjectValue: |
|
(id) |
anObject |
atIndex: |
|
(int) |
anIndex |
|
|
| |
|
implementation |
- (CGSize) intercellSpacing |
|
|
|
|
implementation |
- (void) interpretKeyEvents: |
|
(CPArray) |
events |
|
|
implementation |
- (BOOL) isButtonBordered |
|
|
|
|
implementation |
- (id) itemObjectValueAtIndex: |
|
(int) |
index |
|
|
implementation |
The receiver receives this notification when an item in the list is clicked.
Definition at line 535 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.
The receiver receives this notification when the list is closed.
Definition at line 526 of file CPComboBox.j.
- (void) noteNumberOfItemsChanged |
|
|
|
|
implementation |
- (int) numberOfVisibleItems |
|
|
|
|
implementation |
- (id) objectValueOfSelectedItem |
|
|
|
|
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 |
- (BOOL) performKeyEquivalent: |
|
(CPEvent) |
anEvent |
|
|
implementation |
- (CGRect) popupButtonRectForBounds: |
|
(CGRect) |
bounds |
|
|
implementation |
- (CGRect) rectForEphemeralSubviewNamed: |
|
(CPString) |
aName |
|
|
implementation |
- (void) reloadDataSourceForSelector: |
|
(SEL) |
cmd |
|
|
implementation |
- (void) removeItemAtIndex: |
|
(int) |
index |
|
|
implementation |
- (void) removeItemWithObjectValue: |
|
(id) |
anObject |
|
|
implementation |
- (BOOL) resignFirstResponder |
|
|
|
|
implementation |
- (void) scrollItemAtIndexToTop: |
|
(int) |
index |
|
|
implementation |
- (void) scrollItemAtIndexToVisible: |
|
(int) |
index |
|
|
implementation |
- (void) selectItemAtIndex: |
|
(int) |
index |
|
|
implementation |
- (void) selectItemWithObjectValue: |
|
(id) |
anObject |
|
|
implementation |
- (BOOL) sendAction: |
|
(SEL) |
anAction |
to: |
|
(id) |
anObject |
|
|
| |
|
implementation |
- (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 |
- (void) setCompletes: |
|
(BOOL) |
flag |
|
|
implementation |
- (void) setContent: |
|
(CPArray) |
anArray |
|
|
implementation |
- (void) setContentValues: |
|
(CPArray) |
anArray |
|
|
implementation |
- (void) setDataSource: |
|
(id /*< CPComboBoxDataSource >*/) |
aSource |
|
|
implementation |
- (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 |
- (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 |
- (void) setIntercellSpacing: |
|
(CGSize) |
aSize |
|
|
implementation |
- (void) setItemHeight: |
|
(float) |
itemHeight |
|
|
implementation |
- (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 |
- (void) setObjectValue: |
|
(id) |
object |
|
|
implementation |
- (void) setUsesDataSource: |
|
(BOOL) |
flag |
|
|
implementation |
- (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.
The documentation for this class was generated from the following files: