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(java.util.HashMap<java.lang.String,java.lang.String> entry)
Constructs a boolean option with the parameters from the given map.
|
BooleanOption(java.lang.String key,
boolean save,
java.lang.String label,
java.lang.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(java.lang.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(java.util.HashMap<java.lang.String,java.lang.String> entry)
public BooleanOption(java.lang.String key, boolean save, java.lang.String label, java.lang.String info, boolean defaultValue)
public boolean getDefault()
public boolean getValue()
public void setValue(boolean value)
public void parseOption(java.lang.String arg)
Option
parseOption
in class Option
public void loadOption()
Option
loadOption
in class Option
public void saveOption()
Option
saveOption
in class Option
Copyright © 2017 Open Microscopy Environment