Public Member Functions | |
(id) | - initWithFrame: [implementation] |
(void) | - setDelegate: [implementation] |
(id) | - delegate [implementation] |
(void) | - setBezeled: [implementation] |
(BOOL) | - isBezeled [implementation] |
(void) | - setBezelStyle: [implementation] |
(CPTextFieldBezelStyle) | - bezelStyle [implementation] |
(void) | - setBordered: [implementation] |
(BOOL) | - isBordered [implementation] |
(void) | - setDrawsBackground: [implementation] |
(BOOL) | - drawsBackground [implementation] |
(void) | - setTextFieldBackgroundColor: [implementation] |
(BOOL) | - textFieldBackgroundColor [implementation] |
(BOOL) | - acceptsFirstResponder [implementation] |
(BOOL) | - becomeFirstResponder [implementation] |
(BOOL) | - resignFirstResponder [implementation] |
(void) | - mouseUp: [implementation] |
(void) | - setEditable: [implementation] |
(BOOL) | - isEditable [implementation] |
(void) | - setFrameSize: [implementation] |
(BOOL) | - isSelectable [implementation] |
(void) | - setSelectable: [implementation] |
(void) | - setAlignment: [implementation] |
(void) | - setLineBreakMode: [implementation] |
(id) | - objectValue [implementation] |
(void) | - setObjectValue: [implementation] |
(CPString) | - placeholderString [implementation] |
(void) | - setPlaceholderString: [implementation] |
(void) | - sizeToFit [implementation] |
(void) | - selectText: [implementation] |
(id) | - initWithCoder: [implementation] |
(void) | - encodeWithCoder: [implementation] |
Definition at line 100 of file CPTextField.j.
- (BOOL) acceptsFirstResponder | [implementation] |
Definition at line 373 of file CPTextField.j.
- (BOOL) becomeFirstResponder | [implementation] |
Definition at line 379 of file CPTextField.j.
- (CPTextFieldBezelStyle) bezelStyle | [implementation] |
Returns the textfield's bezel style.
Definition at line 247 of file CPTextField.j.
- (id) delegate | [implementation] |
Definition at line 202 of file CPTextField.j.
- (BOOL) drawsBackground | [implementation] |
Returns YES
if the textfield draws a background.
Definition at line 291 of file CPTextField.j.
- (void) encodeWithCoder: | (CPCoder) | aCoder | [implementation] |
Encodes the data of this textfield into the provided coder.
aCoder | the coder into which the data will be written |
Definition at line 762 of file CPTextField.j.
- (id) initWithCoder: | (CPCoder) | aCoder | [implementation] |
Initializes the textfield with data from a coder.
aCoder | the coder from which to read the textfield data |
Definition at line 718 of file CPTextField.j.
- (id) initWithFrame: | (CGRect) | aFrame | [implementation] |
Definition at line 149 of file CPTextField.j.
- (BOOL) isBezeled | [implementation] |
Returns YES
if the textfield draws a bezeled border.
Definition at line 225 of file CPTextField.j.
- (BOOL) isBordered | [implementation] |
Returns YES
if the textfield has a border.
Definition at line 269 of file CPTextField.j.
- (BOOL) isEditable | [implementation] |
Returns YES
if the textfield is currently editable by the user.
Definition at line 509 of file CPTextField.j.
- (BOOL) isSelectable | [implementation] |
Returns YES
if the field's text is selectable by the user.
Definition at line 526 of file CPTextField.j.
- (void) mouseUp: | (CPEvent) | anEvent | [implementation] |
Definition at line 490 of file CPTextField.j.
- (id) objectValue | [implementation] |
Returns the string the text field.
Definition at line 612 of file CPTextField.j.
- (CPString) placeholderString | [implementation] |
Returns the receiver's placeholder string
Definition at line 654 of file CPTextField.j.
- (BOOL) resignFirstResponder | [implementation] |
Definition at line 466 of file CPTextField.j.
- (void) selectText: | (id) | sender | [implementation] |
Select all the text in the CPTextField.
Definition at line 687 of file CPTextField.j.
- (void) setAlignment: | (CPTextAlignment) | anAlignment | [implementation] |
Sets the alignment of the text in the field.
anAlignment |
Definition at line 544 of file CPTextField.j.
- (void) setBezeled: | (BOOL) | shouldBeBezeled | [implementation] |
Sets whether the textfield will have a bezeled border.
shouldBeBezeled | YES means the textfield will draw a bezeled border |
Definition at line 212 of file CPTextField.j.
- (void) setBezelStyle: | (CPTextFieldBezelStyle) | aBezelStyle | [implementation] |
Sets the textfield's bezel style.
aBezelStyle | the constant for the desired bezel style |
Definition at line 234 of file CPTextField.j.
- (void) setBordered: | (BOOL) | shouldBeBordered | [implementation] |
Sets whether the textfield will have a border drawn.
shouldBeBordered | YES makes the textfield draw a border |
Definition at line 256 of file CPTextField.j.
- (void) setDelegate: | (id) | aDelegate | [implementation] |
Definition at line 179 of file CPTextField.j.
- (void) setDrawsBackground: | (BOOL) | shouldDrawBackground | [implementation] |
Sets whether the textfield will have a background drawn.
shouldDrawBackground | YES makes the textfield draw a background |
Definition at line 278 of file CPTextField.j.
- (void) setEditable: | (BOOL) | shouldBeEditable | [implementation] |
Sets whether or not the receiver text field can be edited
Definition at line 501 of file CPTextField.j.
- (void) setFrameSize: | (CGSize) | aSize | [implementation] |
Definition at line 514 of file CPTextField.j.
- (void) setLineBreakMode: | (CPLineBreakMode) | aLineBreakMode | [implementation] |
Sets the way line breaks occur in the text field.
aLineBreakMode | the line break style |
Definition at line 572 of file CPTextField.j.
- (void) setObjectValue: | (id) | aValue | [implementation] |
Definition at line 629 of file CPTextField.j.
- (void) setPlaceholderString: | (CPString) | aStringValue | [implementation] |
Sets a placeholder string for the receiver. The placeholder is displayed until editing begins, and after editing ends, if the text field has an empty string value
Definition at line 663 of file CPTextField.j.
- (void) setSelectable: | (BOOL) | aFlag | [implementation] |
Sets whether the field's text is selectable by the user.
aFlag | YES makes the text selectable |
Definition at line 535 of file CPTextField.j.
- (void) setTextFieldBackgroundColor: | (BOOL) | aColor | [implementation] |
Sets the background color, which is shown for non-bezeled text fields with drawsBackground set to YES
aColor | The background color |
Definition at line 300 of file CPTextField.j.
- (void) sizeToFit | [implementation] |
Adjusts the text field's size in the application.
Definition at line 675 of file CPTextField.j.
- (BOOL) textFieldBackgroundColor | [implementation] |
Returns the background color.
Definition at line 313 of file CPTextField.j.