public class StringOption extends Option
Modifier and Type | Field and Description |
---|---|
protected String |
defaultValue
The option's default value.
|
static String |
INI_POSSIBLE
INI key indicating option's possible values.
|
protected Vector<String> |
possibleValues
List of possible values.
|
protected String |
value
The option's current value.
|
Constructor and Description |
---|
StringOption(HashMap<String,String> entry)
Constructs a string option with the parameters from the given map.
|
StringOption(String key,
boolean save,
String label,
String info,
String defaultValue,
Vector<String> possibleValues)
Constructs a string option with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addPossible(String val)
Adds a possible value to the list.
|
String |
getDefault()
Gets the default value of the option.
|
Vector<String> |
getPossible()
Gets the list of possible values.
|
String |
getValue()
Gets the current value of the option.
|
void |
loadOption()
Loads the option's value from the ImageJ preferences file.
|
static Vector<String> |
parseList(String s)
Parses a string of comma-separated values into a list of tokens.
|
void |
parseOption(String arg)
Parses the option's value from the given argument string.
|
void |
removePossible(String val)
Removes a possible value from the list.
|
void |
saveOption()
Saves the option's value to the ImageJ preferences file.
|
void |
setValue(String value)
Sets the current value of the option.
|
public static final String INI_POSSIBLE
protected String defaultValue
protected String value
public StringOption(HashMap<String,String> entry)
public static Vector<String> parseList(String s)
public void addPossible(String val)
public void removePossible(String val)
public String getDefault()
public String getValue()
public void setValue(String value)
public void parseOption(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