public abstract class Option extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
info
Documentation about the option, in HTML.
|
static String |
INI_DEFAULT
INI key indicating option's default value.
|
static String |
INI_INFO
INI key indicating option's info.
|
static String |
INI_KEY
INI key indicating option's key.
|
static String |
INI_LABEL
INI key indicating option's label.
|
static String |
INI_SAVE
INI key indicating whether option should be saved to prefs file.
|
protected String |
key
Key name for ImageJ preferences file.
|
static String |
KEY_PREFIX
Prefix to use for all plugins preferences.
|
protected String |
label
Label describing the option, for use with ImageJ dialogs.
|
protected boolean |
save
Whether option state should be saved to ImageJ preferences file.
|
Constructor and Description |
---|
Option(String key,
boolean save,
String label,
String info)
Constructs an option with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getInfo()
Gets documentation about the option.
|
String |
getKey()
Gets the option's key name.
|
String |
getLabel()
Gets label describing the option.
|
boolean |
isSaved()
Gets whether option should be saved to ImageJ preferences file.
|
abstract void |
loadOption()
Loads the option's value from the ImageJ preferences file.
|
abstract void |
parseOption(String arg)
Parses the option's value from the given argument string.
|
abstract void |
saveOption()
Saves the option's value to the ImageJ preferences file.
|
public static final String KEY_PREFIX
public static final String INI_KEY
public static final String INI_SAVE
public static final String INI_LABEL
public static final String INI_INFO
public static final String INI_DEFAULT
protected String key
protected boolean save
protected String label
protected String info
public String getKey()
public boolean isSaved()
public String getLabel()
public String getInfo()
public abstract void parseOption(String arg)
public abstract void loadOption()
public abstract void saveOption()
Copyright © 2016 Open Microscopy Environment