API 0.9.5
CPTokenField Class Reference

#import <CPTokenField.h>

Inheritance diagram for CPTokenField:

List of all members.

Instance Methods

(CPTableView- autocompleteView
(BOOL) - becomeFirstResponder
(NSTimeInterval) - completionDelay
(void) - encodeWithCoder:
(id) - initWithCoder:
(id) - initWithFrame:
(void) - layoutSubviews
(void) - mouseDown:
(void) - mouseDownOnToken:withEvent:
(void) - mouseUp:
(void) - mouseUpOnToken:withEvent:
(int) - numberOfRowsInTableView:
(id) - objectValue
(void) - removeFromSuperview
(BOOL) - resignFirstResponder
(void) - sendAction:to:
(void) - setCompletionDelay:
(void) - setObjectValue:
(void) - setTokenizingCharacterSet:
(CPString- stringValue
(void) - tableView:objectValueForTableColumn:row:
(void) - tableViewSelectionDidChange:
(CPArray- tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem:
(CPString- tokenField:displayStringForRepresentedObject:
(CPArray- tokenField:shouldAddObjects:atIndex:
(CPCharacterSet- tokenizingCharacterSet
(void) - viewDidMoveToWindow

Class Methods

(NSTimeInterval) + defaultCompletionDelay
(CPString+ defaultThemeClass
(CPCharacterSet+ defaultTokenizingCharacterSet

Detailed Description

Definition at line 2 of file CPTokenField.h.


Method Documentation

- (CPTableView) autocompleteView

Definition at line 1135 of file CPTokenField.j.

- (BOOL) becomeFirstResponder

Notifies the receiver that it will become the first responder. The receiver can reject first responder if it returns NO. The default implementation always returns YES.

Returns:
YES if the receiver accepts first responder status.

Reimplemented from CPTextField.

Definition at line 322 of file CPTokenField.j.

- (NSTimeInterval) completionDelay

Definition at line 905 of file CPTokenField.j.

+ (NSTimeInterval) defaultCompletionDelay

Definition at line 910 of file CPTokenField.j.

+ (CPString) defaultThemeClass

Reimplemented from CPTextField.

Definition at line 82 of file CPTokenField.j.

+ (CPCharacterSet) defaultTokenizingCharacterSet

Definition at line 77 of file CPTokenField.j.

- (void) encodeWithCoder: (CPCoder aCoder

Encodes the data of this textfield into the provided coder.

Parameters:
aCoderthe coder into which the data will be written

Reimplemented from CPTextField.

Definition at line 1359 of file CPTokenField.j.

- (id) initWithCoder: (CPCoder aCoder

Initializes the textfield with data from a coder.

Parameters:
aCoderthe coder from which to read the textfield data
Returns:
the initialized textfield

Reimplemented from CPTextField.

Definition at line 1341 of file CPTokenField.j.

- (id) initWithFrame: (CPRect)  frame

Definition at line 87 of file CPTokenField.j.

- (void) layoutSubviews

Reimplemented from CPTextField.

Definition at line 949 of file CPTokenField.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 CPTextField.

Definition at line 442 of file CPTokenField.j.

- (void) mouseDownOnToken: (_CPTokenFieldToken)  aToken
withEvent: (CPEvent anEvent 

Definition at line 458 of file CPTokenField.j.

- (void) mouseUp: (CPEvent anEvent

Notifies the receiver that the user has released the left mouse button.

Parameters:
anEventcontains information about the release

Reimplemented from CPTextField.

Definition at line 452 of file CPTokenField.j.

- (void) mouseUpOnToken: (_CPTokenFieldToken)  aToken
withEvent: (CPEvent anEvent 

Definition at line 464 of file CPTokenField.j.

- (int) numberOfRowsInTableView: (CPTableView tableView

Definition at line 1113 of file CPTokenField.j.

- (id) objectValue

Returns the string in the text field.

Reimplemented from CPTextField.

Definition at line 491 of file CPTokenField.j.

- (void) removeFromSuperview

Removes the receiver from it's container view and window. Does nothing if there's no container view.

Reimplemented from CPView.

Definition at line 614 of file CPTokenField.j.

- (BOOL) resignFirstResponder

Notifies the receiver that it has been asked to give up first responder status.

Returns:
YES if the receiver is willing to give up first responder status.

Reimplemented from CPTextField.

Definition at line 388 of file CPTokenField.j.

- (void) sendAction: (SEL)  anAction
to: (id)  anObject 

Causes anAction to be sent to anObject.

Parameters:
anActionthe action to send
anObjectthe object to which the action will be sent

Reimplemented from CPControl.

Definition at line 590 of file CPTokenField.j.

- (void) setCompletionDelay: (CPTimeInterval)  delay

Definition at line 900 of file CPTokenField.j.

- (void) setObjectValue: (id)  anObject

Sets the receiver's object value.

Reimplemented from CPTextField.

Definition at line 514 of file CPTokenField.j.

- (void) setTokenizingCharacterSet: (CPCharacterSet aValue

Synthesized accessor method.

Definition at line 1382 of file CPTokenField.j.

- (CPString) stringValue

Returns the receiver's string value.

Reimplemented from CPControl.

Definition at line 486 of file CPTokenField.j.

- (void) tableView: (CPTableView tableView
objectValueForTableColumn: (CPTableColumn tableColumn
row: (int)  row 

Definition at line 1118 of file CPTokenField.j.

- (void) tableViewSelectionDidChange: (CPNotification notification

Definition at line 1123 of file CPTokenField.j.

- (CPArray) tokenField: (CPTokenField tokenField
completionsForSubstring: (CPString substring
indexOfToken: (int)  tokenIndex
indexOfSelectedItem: (int)  selectedIndex 

Definition at line 1148 of file CPTokenField.j.

- (CPString) tokenField: (CPTokenField tokenField
displayStringForRepresentedObject: (id)  representedObject 

Definition at line 1160 of file CPTokenField.j.

- (CPArray) tokenField: (CPTokenField tokenField
shouldAddObjects: (CPArray tokens
atIndex: (int)  index 

Definition at line 1178 of file CPTokenField.j.

- (CPCharacterSet) tokenizingCharacterSet

Synthesized accessor method.

Definition at line 1374 of file CPTokenField.j.

- (void) viewDidMoveToWindow

Called when the receiver has been moved to a new CPWindow.

Reimplemented from CPView.

Definition at line 605 of file CPTokenField.j.


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