public class BooleanCallback extends Object implements Callback, Serializable
| Constructor and Description |
|---|
BooleanCallback(String prompt)
Construct a
BooleanCallback with a prompt. |
BooleanCallback(String prompt,
boolean defaultValue)
Construct a
NameCallback with a prompt and default name. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDefaultValue()
Get the default value.
|
String |
getPrompt()
Get the prompt.
|
boolean |
getValue()
Get the retrieved value.
|
void |
setValue(boolean val)
Set the retrieved name.
|
public BooleanCallback(String prompt)
BooleanCallback with a prompt.
prompt - the prompt used to request the boolean value.IllegalArgumentException - if prompt is null or if prompt
has a length of 0.public BooleanCallback(String prompt, boolean defaultValue)
NameCallback with a prompt and default name.
prompt - the prompt used to request the information.
defaultValue - the value to be used as the default value displayed with the
prompt.IllegalArgumentException - if prompt is null.public String getPrompt()
public boolean getDefaultValue()
BooleanCallback was
not instantiated with a defaultValue.public void setValue(boolean val)
val - the retrieved value true or false.getValue()public boolean getValue()
true or false.setValue(boolean)Copyright © 2004–2020 Eclipse Foundation. All rights reserved.