CPColorPanel Class Reference

List of all members.

Public Member Functions

(id) - init [implementation]
(void) - setColor: [implementation]
(void) - setColor:updatePicker: [implementation]
(CPColor) - color [implementation]
(void) - setTarget: [implementation]
(id) - target [implementation]
(void) - setAction: [implementation]
(selector) - action [implementation]
(void) - setMode: [implementation]
(CPColorPanelMode) - mode [implementation]
(void) - orderFront: [implementation]

Static Public Member Functions

(void) + provideColorPickerClass: [implementation]
(CPColorPanel+ sharedColorPanel [implementation]
(void) + setPickerMode: [implementation]


Detailed Description

CPColorPanel provides a reusable panel that can be used displayed on screen to prompt the user for a color selection. To obtain the panel, call the sharedColorPanel method.

Definition at line 61 of file CPColorPanel.j.


Member Function Documentation

- (selector) action   [implementation]

Returns the current target action.

Definition at line 205 of file CPColorPanel.j.

- (CPColor) color   [implementation]

Returns the panel's currently selected color.

Definition at line 169 of file CPColorPanel.j.

- (id) init   [implementation]

Definition at line 115 of file CPColorPanel.j.

- (CPColorPanelMode) mode   [implementation]

Returns the color panel's current display mode.

Definition at line 253 of file CPColorPanel.j.

- (void) orderFront: (id)  aSender   [implementation]

Definition at line 258 of file CPColorPanel.j.

+ (void) provideColorPickerClass: (Class)  aColorPickerSubclass   [implementation]

A list of color pickers is collected here, and any color panel created will contain any picker in this list up to this point. In other words, call before creating a color panel.

Definition at line 85 of file CPColorPanel.j.

- (void) setAction: (selector)  anAction   [implementation]

Sets the action that gets sent to the target. This action is sent whenever a color is selected in the panel.

Parameters:
anAction the action that will be sent

Definition at line 197 of file CPColorPanel.j.

- (void) setColor: (CPColor)  aColor   [implementation]

Sets the color of the panel, and updates the picker. Also posts a CPColorPanelDidChangeNotification.

Definition at line 138 of file CPColorPanel.j.

- (void) setColor: (CPColor)  aColor
updatePicker: (BOOL)  bool 
[implementation]

Sets the selected color of the panel and optionally updates the picker.

Parameters:
bool whether or not to update the picker

Definition at line 158 of file CPColorPanel.j.

- (void) setMode: (CPColorPanelMode)  mode   [implementation]

Sets the mode (look) of the color panel.

Parameters:
mode the mode in which to display the color panel

Definition at line 214 of file CPColorPanel.j.

+ (void) setPickerMode: (CPColorPanelMode)  mode   [implementation]

Sets the mode for the shared color panel.

Parameters:
mode the mode to which the color panel will be set

Definition at line 105 of file CPColorPanel.j.

- (void) setTarget: (id)  aTarget   [implementation]

Sets the target for the color panel. Messages are sent to the target when colors are selected in the panel.

Definition at line 178 of file CPColorPanel.j.

+ (CPColorPanel) sharedColorPanel   [implementation]

Returns (and if necessary, creates) the shared color panel.

Definition at line 93 of file CPColorPanel.j.

- (id) target   [implementation]

Returns the current target. The target receives messages when colors are selected in the panel.

Definition at line 187 of file CPColorPanel.j.


The documentation for this class was generated from the following file:

Generated on Thu Dec 11 01:55:49 2008 for Cappuccino by  doxygen 1.5.7.1