public static class PromptAt.Field
extends java.lang.Object
| Constructor and Description |
|---|
Field(java.lang.String label)
Constructor for a field in a prompt dialog that displays a message.
|
Field(java.lang.String label,
boolean initial)
Constructor for a field in a prompt dialog that chooses between Yes and No.
|
Field(java.lang.String label,
java.awt.Color initial)
Constructor for a field in a prompt dialog that edits a color value.
|
Field(java.lang.String id,
javax.swing.JButton but)
Constructor for a field in a prompt dialog that places a button.
|
Field(java.lang.String label,
java.lang.String initial)
Constructor for a field in a prompt dialog that edits a string.
|
Field(java.lang.String label,
java.lang.String[] choices,
java.lang.String initial)
Constructor for a field in a prompt dialog that selects among different choices.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getFinal()
Method to return the final value for a field, after the dialog has completed.
|
public Field(java.lang.String label)
label - the question to ask.public Field(java.lang.String label,
boolean initial)
label - the question to ask.initial - the default response.public Field(java.lang.String label,
java.lang.String initial)
label - the label of the string.initial - the initial string value.public Field(java.lang.String label,
java.lang.String[] choices,
java.lang.String initial)
label - the label of the choice.choices - the array of choices.initial - the default choice.public Field(java.lang.String label,
java.awt.Color initial)
label - the label of the color.initial - the initial Color value.public Field(java.lang.String id,
javax.swing.JButton but)
id - the returned value of the dialog if the button is pressed.but - the button.