API 0.9.5
CPStepper Class Reference

#import <CPStepper.h>

Inheritance diagram for CPStepper:

List of all members.

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

Detailed Description

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.


Method Documentation

+ (CPString) defaultThemeClass

Reimplemented from CPView.

Definition at line 222 of file CPStepper.j.

- (void) encodeWithCoder: (CPCoder aCoder

Archives the view to a coder.

Parameters:
aCoderthe 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.

Parameters:
aCoderthe coder from which to initialize
Returns:
the initialized view

Reimplemented from CPControl.

Definition at line 238 of file CPStepper.j.

- (id) initWithFrame: (CGRect)  aFrame

Initializes a CPStepper.

Parameters:
aFramethe frame of the control
Returns:
initialized CPStepper

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.

Parameters:
aSendersender of the action

Definition at line 213 of file CPStepper.j.

- (IBAction) performClickUp: (id)  aSender

Perform a programatic click on up button.

Parameters:
aSendersender of the action

Definition at line 204 of file CPStepper.j.

- (void) setAutorepeat: (BOOL)  shouldAutoRepeat

Set if CPStepper should autorepeat.

Parameters:
shouldAutoRepeatif 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.

Parameters:
aValuea float containing the value

Definition at line 172 of file CPStepper.j.

- (void) setEnabled: (BOOL)  shouldEnabled

Set if the CPStepper is enabled or not.

Parameters:
shouldEnabledBOOL 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).

Parameters:
aFramethe 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:

  • minValue = 0.0
  • maxValue = 59.0
  • value = 0.0
Returns:
Initialized CPStepper

Definition at line 70 of file CPStepper.j.

+ (CPStepper) stepperWithInitialValue: (float)  aValue
minValue: (float)  aMinValue
maxValue: (float)  aMaxValue 

Initializes a CPStepper with given values.

Parameters:
aValuethe initial value of the CPStepper
minValuethe minimal acceptable value of the stepper
maxValuethe maximal acceptable value of the stepper
Returns:
Initialized CPStepper

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.


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