|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<UserPrompter.UserPromptResponse>
ca.sqlpower.architect.UserPrompter.UserPromptResponse
public static enum UserPrompter.UserPromptResponse
An enumeration of all the possible responses from the user.
| Enum Constant Summary | |
|---|---|
CANCEL
Denotes that the user wants to cancel the entire operation. |
|
NOT_OK
Denotes a negative response from the user, meaning that the current part of the operation should not proceed. |
|
OK
Denotes an affirmative response from the user, meaning the current part of the operation should proceed. |
|
| Method Summary | |
|---|---|
static UserPrompter.UserPromptResponse |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static UserPrompter.UserPromptResponse[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final UserPrompter.UserPromptResponse OK
public static final UserPrompter.UserPromptResponse NOT_OK
public static final UserPrompter.UserPromptResponse CANCEL
The difference between NOT_OK and this response is
that, for instance, if the entire operation consists of writing
a series of 7 files, and the 3rd file already exists, if the
user response is NOT_OK, the process will skip the 3rd file and
continue to the 4th (possibly prompting again for that file if
necessary) whereas if the user response is CANCEL, the process
will stop completely and there will be no additional prompts.
Another example is the typical sequence of events when the user tries to quit the program when their work is not saved: A response of NOT_OK would mean to not save the project but quit the program anyway (thus losing work); a response of CANCEL would mean to not save the work, but also not quit the program.
| Method Detail |
|---|
public static final UserPrompter.UserPromptResponse[] values()
for(UserPrompter.UserPromptResponse c : UserPrompter.UserPromptResponse.values())
System.out.println(c);
public static UserPrompter.UserPromptResponse valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||