![]() |
API
0.9.7
|
#import <CPButton.h>
Class Methods | |
(id) | + buttonWithTitle: |
(id) | + buttonWithTitle:theme: |
(CPString) | + defaultThemeClass |
(CPDictionary) | + themeAttributes |
![]() | |
(void) | + initialize |
CPButton is a subclass of CPControl that intercepts mouse-down events and sends an action message to a target object when it's clicked or pressed.
Definition at line 2 of file CPButton.h.
|
implementation |
Returns a Boolean value indicating whether the button allows a mixed state.
YES
if the button has a 'mixed' state in addition to on and off. Definition at line 202 of file CPButton.j.
|
implementation |
Returns the image used when the button is in an alternate state.
Reimplemented in CPRadio, and CPCheckBox.
Definition at line 383 of file CPButton.j.
|
implementation |
Definition at line 356 of file CPButton.j.
|
implementation |
Definition at line 605 of file CPButton.j.
|
implementation |
Provided by category CPButton(NS).
Definition at line 906 of file CPButton.j.
|
implementation |
Definition at line 125 of file CPButton.j.
|
implementation |
Definition at line 130 of file CPButton.j.
|
implementation |
Definition at line 598 of file CPButton.j.
Definition at line 669 of file CPButton.j.
|
implementation |
Reimplemented in CPRadio, CPPopUpButton, and CPCheckBox.
Definition at line 141 of file CPButton.j.
|
implementation |
Archives this button into the provided coder.
aCoder | the coder to which the button's instance data will be written. |
Reimplemented from CPControl.
Reimplemented in CPRadio.
Provided by category CPButton(CPCoding).
Definition at line 987 of file CPButton.j.
|
implementation |
Definition at line 436 of file CPButton.j.
|
implementation |
Reimplemented in CPRadio, and CPCheckBox.
Definition at line 366 of file CPButton.j.
|
implementation |
Definition at line 507 of file CPButton.j.
|
implementation |
Definition at line 393 of file CPButton.j.
|
implementation |
Initializes the button by unarchiving data from aCoder
.
aCoder | the coder containing the archived CPButton. |
Reimplemented from CPControl.
Reimplemented in CPRadio, and CPPopUpButton.
Provided by category CPButton(CPCoding).
Definition at line 935 of file CPButton.j.
|
implementation |
Initializes and returns a newly allocated CPButton object with a specified frame rectangle.
aFrame | The frame rectangle for the created button object. |
Reimplemented from CPControl.
Reimplemented in CPRadio, CPDisclosureButton, CPPopUpButton, and CPCheckBox.
Definition at line 162 of file CPButton.j.
|
implementation |
Definition at line 583 of file CPButton.j.
|
implementation |
Definition at line 765 of file CPButton.j.
|
implementation |
Returns the keyboard shortcut for this button.
Definition at line 805 of file CPButton.j.
|
implementation |
Sets the mask to be used with this button's key equivalent.
Definition at line 821 of file CPButton.j.
|
implementation |
Definition at line 683 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Reimplemented in CPPopUpButton.
Definition at line 518 of file CPButton.j.
|
implementation |
Returns the button's next state.
CPOffState
(the normal or unpressed state) or CPOnState
(the alternate or pressed state). If it has three, this value can be CPOnState
(the feature is in effect everywhere), CPOffState
(the feature is in effect nowhere), or CPMixedState
(the feature is in effect somewhere). Reimplemented from CPControl.
Reimplemented in CPRadio.
Definition at line 276 of file CPButton.j.
|
implementation |
Definition at line 534 of file CPButton.j.
|
implementation |
Perform a click on the receiver.
sender | - The sender object |
Reimplemented from CPControl.
Definition at line 849 of file CPButton.j.
|
implementation |
Checks the button's key equivalent against that in the event, and if they match simulates a button click.
Definition at line 830 of file CPButton.j.
|
implementation |
Definition at line 658 of file CPButton.j.
|
implementation |
Sets whether the button can have a 'mixed' state.
aFlag | specifies whether a 'mixed' state is allowed or not |
Definition at line 211 of file CPButton.j.
|
implementation |
Sets the button's image which is used in its alternate state.
anImage | the image to be used while the button is in an alternate state |
Definition at line 375 of file CPButton.j.
|
implementation |
Definition at line 345 of file CPButton.j.
|
implementation |
Provided by category CPButton(NS).
Definition at line 889 of file CPButton.j.
|
implementation |
Definition at line 757 of file CPButton.j.
|
implementation |
Definition at line 441 of file CPButton.j.
|
implementation |
Definition at line 422 of file CPButton.j.
|
implementation |
Reimplemented in CPPopUpButton.
Definition at line 361 of file CPButton.j.
|
implementation |
Definition at line 491 of file CPButton.j.
|
implementation |
Definition at line 388 of file CPButton.j.
|
implementation |
Sets the keyboard shortcut for this button. For special keys see CPEvent.j CP...FunctionKey and CPText.j CP...Character.
aString | the keyboard shortcut as a string |
Definition at line 776 of file CPButton.j.
|
implementation |
Returns the mask used with this button's key equivalent.
Definition at line 813 of file CPButton.j.
|
implementation |
Sets the button's state to the next available state.
aState | Possible states are any of the CPButton globals: CPOffState , CPOnState , CPMixedState |
Definition at line 293 of file CPButton.j.
|
implementation |
Sets the value of the button using an Objective-J object.
anObjectValue | The value of the button interpreted as an Objective-J object. |
Reimplemented from CPControl.
Reimplemented in CPRadio, and CPPopUpButton.
Definition at line 228 of file CPButton.j.
|
implementation |
Definition at line 512 of file CPButton.j.
|
implementation |
Definition at line 398 of file CPButton.j.
|
implementation |
Sets the button's state to aState
.
aState | Possible states are any of the CPButton globals: CPOffState , CPOnState , CPMixedState |
Reimplemented from CPControl.
Reimplemented in CPDisclosureButton.
Definition at line 306 of file CPButton.j.
|
implementation |
Sets the title displayed by the button when in its normal state.
aTitle | The string to set as the button's title. This title is always shown on buttons that don’t use their alternate contents when highlighting or displaying their alternate state. |
Reimplemented in CPPopUpButton.
Definition at line 324 of file CPButton.j.
|
implementation |
Definition at line 417 of file CPButton.j.
|
implementation |
Adjust the size of the button to fit the title and surrounding button image.
Definition at line 648 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Reimplemented in CPRadio, and CPCheckBox.
Definition at line 540 of file CPButton.j.
|
implementation |
Returns the button's current state
Definition at line 314 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 564 of file CPButton.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 146 of file CPButton.j.
|
implementation |
Returns the title displayed on the button when it’s in its normal state.
Definition at line 340 of file CPButton.j.
|
implementation |
Definition at line 788 of file CPButton.j.