public static class PromptAt.Field
extends java.lang.Object
Constructor and Description |
---|
PromptAt.Field(java.lang.String label)
Constructor for a field in a prompt dialog that displays a message.
|
PromptAt.Field(java.lang.String label,
boolean initial)
Constructor for a field in a prompt dialog that chooses between Yes and No.
|
PromptAt.Field(java.lang.String label,
java.awt.Color initial)
Constructor for a field in a prompt dialog that edits a color value.
|
PromptAt.Field(java.lang.String id,
javax.swing.JButton but)
Constructor for a field in a prompt dialog that places a button.
|
PromptAt.Field(java.lang.String label,
java.lang.String initial)
Constructor for a field in a prompt dialog that edits a string.
|
PromptAt.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 PromptAt.Field(java.lang.String label)
label
- the question to ask.public PromptAt.Field(java.lang.String label, boolean initial)
label
- the question to ask.initial
- the default response.public PromptAt.Field(java.lang.String label, java.lang.String initial)
label
- the label of the string.initial
- the initial string value.public PromptAt.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 PromptAt.Field(java.lang.String label, java.awt.Color initial)
label
- the label of the color.initial
- the initial Color value.public PromptAt.Field(java.lang.String id, javax.swing.JButton but)
id
- the returned value of the dialog if the button is pressed.but
- the button.