CPAlert Class Reference

List of all members.

Public Member Functions

(id) - init [implementation]
(void) - setDelegate: [implementation]
(void) - delegate [implementation]
(void) - setAlertStyle: [implementation]
(CPAlertStyle) - alertStyle [implementation]
(void) - setMessageText: [implementation]
(CPString- messageText [implementation]
(void) - addButtonWithTitle: [implementation]
(void) - runModal [implementation]

Static Public Member Functions

(void) + initialize [implementation]


Detailed Description

Definition at line 79 of file CPAlert.j.


Member Function Documentation

- (void) addButtonWithTitle: (CPString title   [implementation]

Adds a button with a given title to the receiver. Buttons will be added starting from the right hand side of the

CPAlert
panel. The first button will have the index 0, the second button 1 and so on.

You really shouldn't need more than 3 buttons.

Definition at line 198 of file CPAlert.j.

- (CPAlertStyle) alertStyle   [implementation]

Gets the alert style.

Definition at line 169 of file CPAlert.j.

- (void) delegate   [implementation]

Gets the receiver's delegate.

Definition at line 152 of file CPAlert.j.

- (id) init   [implementation]

Initializes a

CPAlert
panel with the default alert style (
CPWarningAlertStyle
).

Definition at line 112 of file CPAlert.j.

+ (void) initialize   [implementation]

Definition at line 92 of file CPAlert.j.

- (CPString) messageText   [implementation]

Return's the receiver's message text body.

Definition at line 186 of file CPAlert.j.

- (void) runModal   [implementation]

Displays the

CPAlert
panel as a modal dialog. The user will not be able to interact with any other controls until s/he has dismissed the alert by clicking on one of the buttons.

Definition at line 218 of file CPAlert.j.

- (void) setAlertStyle: (CPAlertStyle)  style   [implementation]

Sets the alert style of the receiver.

Parameters:
style - Alert style for the alert.

Definition at line 161 of file CPAlert.j.

- (void) setDelegate: (id)  delegate   [implementation]

Sets the receiver’s delegate.

Parameters:
delegate - Delegate for the alert. nil removes the delegate.

Definition at line 144 of file CPAlert.j.

- (void) setMessageText: (CPString messageText   [implementation]

Set’s the receiver’s message text, or title, to a given text.

Parameters:
messageText - Message text for the alert.

Definition at line 178 of file CPAlert.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