public class SimpleDialogHandler extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
SimpleDialogHandler() |
Modifier and Type | Method and Description |
---|---|
void |
makeErrorDialog(String message)
Show an error dialog.
|
Double |
makeInputDialog(NumberField.DoubleField field)
Show an input dialog that gets a double within a certain range.
|
Integer |
makeInputDialog(NumberField.IntegerField field)
Show an input dialog that gets an integer within a certain range.
|
void |
makeMessageDialog(Object message)
Show a message dialog.
|
void |
makeMessageDialog(String msg)
Show a message dialog.
|
String |
makeThreeChoicesDialog(Object message)
Show a dialog that gives the user one of three choices to make.
|
String |
makeThreeChoicesDialog(String msg)
Show a dialog that gives the user one of three choices to make.
|
String |
makeTwoChoicesDialog(Object message)
Show a dialog that gives the user one of two choices to make.
|
String |
makeTwoChoicesDialog(String msg)
Show a dialog that gives the user one of two choices to make.
|
void |
makeWarningDialog(String message)
Show a warning dialog.
|
private static final long serialVersionUID
public void makeErrorDialog(String message)
message
- The message on the dialog.public Double makeInputDialog(NumberField.DoubleField field)
field
- The double input field.public Integer makeInputDialog(NumberField.IntegerField field)
field
- The integer input field.public void makeMessageDialog(Object message)
message
- The message on the dialog.public void makeMessageDialog(String msg)
msg
- The message on the dialog.public String makeThreeChoicesDialog(Object message)
message
- The message on the dialog.public String makeThreeChoicesDialog(String msg)
msg
- The message on the dialog.public String makeTwoChoicesDialog(Object message)
message
- The message on the dialog.public String makeTwoChoicesDialog(String msg)
msg
- The message on the dialog.public void makeWarningDialog(String message)
message
- The message on the dialog.