public class OptionsList extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INI_TYPE
INI key indicating option's type.
|
protected HashMap<String,Option> |
options
Table of options defining this set of preferences.
|
static String |
TYPE_BOOLEAN
String indicating option is of type boolean.
|
static String |
TYPE_STRING
String indicating option is of type string.
|
Constructor and Description |
---|
OptionsList(loci.common.IniList ini) |
OptionsList(String path,
Class<?> c) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
BooleanOption |
getBooleanOption(String key)
Gets the boolean option with the given key.
|
String |
getDefaultValue(String key)
Gets the default value of the string option with the given key.
|
String |
getInfo(String key)
Gets the documentation for the option with the given key.
|
String |
getLabel(String key)
Gets the label for the option with the given key.
|
Option |
getOption(String key)
Gets the option with the given key.
|
String[] |
getPossible(String key)
Gets the possible values for the string option with the given key.
|
StringOption |
getStringOption(String key)
Gets the string option with the given key.
|
String |
getValue(String key)
Gets the value of the string option with the given key.
|
int |
hashCode() |
boolean |
isPossible(String key,
String value)
Gets whether the specified value is a possible one
for the string option with the given key.
|
boolean |
isSaved(String key)
Gets whether the option with the given key
is saved to the ImageJ preferences file.
|
boolean |
isSet(String key)
Gets the value of the boolean option with the given key.
|
boolean |
isSetByDefault(String key)
Gets the default value of the boolean option with the given key.
|
void |
loadOptions()
Loads option values from the ImageJ preferences file.
|
void |
parseOptions(String arg)
Parses option values from the given argument string.
|
void |
saveOptions()
Saves option values to the ImageJ preferences file.
|
void |
setValue(String key,
boolean value)
Sets the value of the boolean option with the given key.
|
void |
setValue(String key,
String value)
Sets the value of the string option with the given key.
|
public static final String INI_TYPE
public static final String TYPE_BOOLEAN
public static final String TYPE_STRING
public OptionsList(String path, Class<?> c) throws IOException
IOException
public OptionsList(loci.common.IniList ini)
public void parseOptions(String arg)
public void loadOptions()
public void saveOptions()
public boolean isSaved(String key)
public String[] getPossible(String key)
public boolean isPossible(String key, String value)
public boolean isSetByDefault(String key)
public String getDefaultValue(String key)
public boolean isSet(String key)
public void setValue(String key, boolean value)
public void setValue(String key, String value)
public BooleanOption getBooleanOption(String key)
public StringOption getStringOption(String key)
Copyright © 2017 Open Microscopy Environment