public class BooleanOption extends Option
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
defaultValue
The option's default value.
|
protected boolean |
value
The option's current value.
|
| Constructor and Description |
|---|
BooleanOption(HashMap<String,String> entry)
Constructs a boolean option with the parameters from the given map.
|
BooleanOption(String key,
boolean save,
String label,
String info,
boolean defaultValue)
Constructs a boolean option with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDefault()
Gets the default value of the option.
|
boolean |
getValue()
Gets the current value of the option.
|
void |
loadOption()
Loads the option's value from the ImageJ preferences file.
|
void |
parseOption(String arg)
Parses the option's value from the given argument string.
|
void |
saveOption()
Saves the option's value to the ImageJ preferences file.
|
void |
setValue(boolean value)
Sets the current value of the option.
|
protected boolean defaultValue
protected boolean value
public BooleanOption(HashMap<String,String> entry)
public boolean getDefault()
public boolean getValue()
public void setValue(boolean value)
public void parseOption(String arg)
OptionparseOption in class Optionpublic void loadOption()
OptionloadOption in class Optionpublic void saveOption()
OptionsaveOption in class OptionCopyright © 2017 Open Microscopy Environment