public abstract class Option
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
info
Documentation about the option, in HTML.
|
static java.lang.String |
INI_DEFAULT
INI key indicating option's default value.
|
static java.lang.String |
INI_INFO
INI key indicating option's info.
|
static java.lang.String |
INI_KEY
INI key indicating option's key.
|
static java.lang.String |
INI_LABEL
INI key indicating option's label.
|
static java.lang.String |
INI_SAVE
INI key indicating whether option should be saved to prefs file.
|
protected java.lang.String |
key
Key name for ImageJ preferences file.
|
static java.lang.String |
KEY_PREFIX
Prefix to use for all plugins preferences.
|
protected java.lang.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(java.lang.String key,
boolean save,
java.lang.String label,
java.lang.String info)
Constructs an option with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInfo()
Gets documentation about the option.
|
java.lang.String |
getKey()
Gets the option's key name.
|
java.lang.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(java.lang.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 java.lang.String KEY_PREFIX
public static final java.lang.String INI_KEY
public static final java.lang.String INI_SAVE
public static final java.lang.String INI_LABEL
public static final java.lang.String INI_INFO
public static final java.lang.String INI_DEFAULT
protected java.lang.String key
protected boolean save
protected java.lang.String label
protected java.lang.String info
public Option(java.lang.String key, boolean save, java.lang.String label, java.lang.String info)
public java.lang.String getKey()
public boolean isSaved()
public java.lang.String getLabel()
public java.lang.String getInfo()
public abstract void parseOption(java.lang.String arg)
public abstract void loadOption()
public abstract void saveOption()
Copyright © 2023 Open Microscopy Environment