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