public class InputDialog
extends java.lang.Object
Constructor and Description |
---|
InputDialog()
Construct dialog with default title and prompt.
|
InputDialog(java.lang.String title,
java.lang.String prompt)
Construct dialog with given title and prompt.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Boolean |
getBoolean()
Show the dialog with a yes/no button pair to get a boolean.
|
static java.lang.Double |
getDouble()
Show the dialog to get a double value.
|
static java.lang.Integer |
getInt()
Show the dialog to get an integer value.
|
static java.lang.Long |
getLong()
Show the dialog to get a long value.
|
static java.lang.String |
getString()
Show the dialog to get a string value (same as readString()).
|
static boolean |
readBoolean()
Show the dialog with a yes/no button pair to get a boolean.
|
static double |
readDouble()
Show the dialog to read a double value.
|
static int |
readInt()
Show the dialog to read an integer value.
|
static long |
readLong()
Show the dialog to read a long value.
|
static java.lang.String |
readString()
Show the dialog to get a string value (same as getString()).
|
public InputDialog()
public InputDialog(java.lang.String title, java.lang.String prompt)
public static java.lang.String getString()
public static java.lang.String readString()
public static java.lang.Integer getInt()
public static int readInt()
public static java.lang.Double getDouble()
public static double readDouble()
public static java.lang.Long getLong()
public static long readLong()
public static java.lang.Boolean getBoolean()
public static boolean readBoolean()