Package loci.plugins.prefs
Class BooleanOption
java.lang.Object
loci.plugins.prefs.Option
loci.plugins.prefs.BooleanOption
A boolean option for one of the plugins.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanThe option's default value.protected booleanThe option's current value. -
Constructor Summary
ConstructorsConstructorDescriptionBooleanOption(String key, boolean save, String label, String info, boolean defaultValue) Constructs a boolean option with the given parameters.BooleanOption(HashMap<String, String> entry) Constructs a boolean option with the parameters from the given map. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the default value of the option.booleangetValue()Gets the current value of the option.voidLoads the option's value from the ImageJ preferences file.voidparseOption(String arg) Parses the option's value from the given argument string.voidSaves the option's value to the ImageJ preferences file.voidsetValue(boolean value) Sets the current value of the option.
-
Field Details
-
defaultValue
protected boolean defaultValueThe option's default value. -
value
protected boolean valueThe option's current value.
-
-
Constructor Details
-
BooleanOption
Constructs a boolean option with the parameters from the given map. -
BooleanOption
Constructs a boolean option with the given parameters.
-
-
Method Details
-
getDefault
public boolean getDefault()Gets the default value of the option. -
getValue
public boolean getValue()Gets the current value of the option. -
setValue
public void setValue(boolean value) Sets the current value of the option. -
parseOption
Description copied from class:OptionParses the option's value from the given argument string.- Specified by:
parseOptionin classOption
-
loadOption
public void loadOption()Description copied from class:OptionLoads the option's value from the ImageJ preferences file.- Specified by:
loadOptionin classOption
-
saveOption
public void saveOption()Description copied from class:OptionSaves the option's value to the ImageJ preferences file.- Specified by:
saveOptionin classOption
-