![]() |
API 0.9.5
|
#import <CPStepper.h>
Instance Methods | |
(void) | - encodeWithCoder: |
(int) | - increment |
(id) | - initWithCoder: |
(id) | - initWithFrame: |
(void) | - layoutSubviews |
(int) | - maxValue |
(int) | - minValue |
(IBAction) | - performClickDown: |
(IBAction) | - performClickUp: |
(void) | - setAutorepeat: |
(void) | - setDoubleValue: |
(void) | - setEnabled: |
(void) | - setFrame: |
(void) | - setIncrement: |
(void) | - setMaxValue: |
(void) | - setMinValue: |
(void) | - setValueWraps: |
(BOOL) | - valueWraps |
Class Methods | |
(CPString) | + defaultThemeClass |
(CPStepper) | + stepper |
(CPStepper) | + stepperWithInitialValue:minValue:maxValue: |
(id) | + themeAttributes |
CPStepper is an implementation of Cocoa NSStepper.
This control displays a two part button that can be used to increase or decrease a value with a given interval.
Definition at line 2 of file CPStepper.h.
+ (CPString) defaultThemeClass |
Reimplemented from CPView.
Definition at line 222 of file CPStepper.j.
- (void) encodeWithCoder: | (CPCoder) | aCoder |
Archives the view to a coder.
aCoder | the object into which the view's data will be archived. |
Reimplemented from CPControl.
Definition at line 251 of file CPStepper.j.
- (int) increment |
Synthesized accessor method.
Definition at line 285 of file CPStepper.j.
- (id) initWithCoder: | (CPCoder) | aCoder |
Initializes the view from an archive.
aCoder | the coder from which to initialize |
Reimplemented from CPControl.
Definition at line 238 of file CPStepper.j.
- (id) initWithFrame: | (CGRect) | aFrame |
Initializes a CPStepper.
aFrame | the frame of the control |
Reimplemented from CPControl.
Definition at line 80 of file CPStepper.j.
- (void) layoutSubviews |
Reimplemented from CPView.
Definition at line 140 of file CPStepper.j.
- (int) maxValue |
Synthesized accessor method.
Definition at line 301 of file CPStepper.j.
- (int) minValue |
Synthesized accessor method.
Definition at line 317 of file CPStepper.j.
- (IBAction) performClickDown: | (id) | aSender |
Perform a programatic click on down button.
aSender | sender of the action |
Definition at line 213 of file CPStepper.j.
- (IBAction) performClickUp: | (id) | aSender |
Perform a programatic click on up button.
aSender | sender of the action |
Definition at line 204 of file CPStepper.j.
- (void) setAutorepeat: | (BOOL) | shouldAutoRepeat |
Set if CPStepper should autorepeat.
shouldAutoRepeat | if YES, the first mouse down does one increment (decrement) and, after each delay of 0.5 seconds |
Definition at line 162 of file CPStepper.j.
- (void) setDoubleValue: | (float) | aValue |
Set the current value of the stepper.
aValue | a float containing the value |
Definition at line 172 of file CPStepper.j.
- (void) setEnabled: | (BOOL) | shouldEnabled |
Set if the CPStepper is enabled or not.
shouldEnabled | BOOL that define if stepper is enabled or not. |
Reimplemented from CPControl.
Definition at line 118 of file CPStepper.j.
- (void) setFrame: | (CGRect) | aFrame |
Sets the frame size of the receiver to the dimensions and origin of the provided rectangle in the coordinate system of the superview. The method also posts an CPViewFrameDidChangeNotification to the notification center if the receiver is configured to do so. If the frame is the same as the current frame, the method simply returns (and no notification is posted).
aFrame | the rectangle specifying the new origin and size of the receiver |
Reimplemented from CPView.
Definition at line 127 of file CPStepper.j.
- (void) setIncrement: | (int) | aValue |
Synthesized accessor method.
Definition at line 293 of file CPStepper.j.
- (void) setMaxValue: | (int) | aValue |
Synthesized accessor method.
Definition at line 309 of file CPStepper.j.
- (void) setMinValue: | (int) | aValue |
Synthesized accessor method.
Definition at line 325 of file CPStepper.j.
- (void) setValueWraps: | (BOOL) | aValue |
Synthesized accessor method.
Definition at line 277 of file CPStepper.j.
+ (CPStepper) stepper |
Initializes a CPStepper with default values:
Definition at line 70 of file CPStepper.j.
+ (CPStepper) stepperWithInitialValue: | (float) | aValue | |
minValue: | (float) | aMinValue | |
maxValue: | (float) | aMaxValue | |
Initializes a CPStepper with given values.
aValue | the initial value of the CPStepper |
minValue | the minimal acceptable value of the stepper |
maxValue | the maximal acceptable value of the stepper |
Definition at line 52 of file CPStepper.j.
+ (id) themeAttributes |
Reimplemented from CPControl.
Definition at line 227 of file CPStepper.j.
- (BOOL) valueWraps |
Synthesized accessor method.
Definition at line 269 of file CPStepper.j.