|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.plugin.AbstractPlugin
org.openbp.jaspira.option.OptionMgr
public final class OptionMgr
Singleton class that manages all options of the application.
| Nested Class Summary | |
|---|---|
class |
OptionMgr.Events
Event module. |
| Nested classes/interfaces inherited from class org.openbp.jaspira.plugin.AbstractPlugin |
|---|
AbstractPlugin.StandardPluginEvents |
| Field Summary | |
|---|---|
static java.lang.String |
OPTIONROOT
root of all otions in the optiontree |
| Fields inherited from class org.openbp.jaspira.plugin.AbstractPlugin |
|---|
PROPERTY_CONDITION, PROPERTY_DESCRIPTION, PROPERTY_ICON, PROPERTY_NAME, PROPERTY_SEQUENCE, PROPERTY_TITLE, PROPERTY_VENDOR, PROPERTY_VERSION |
| Fields inherited from interface org.openbp.jaspira.plugin.Plugin |
|---|
ID_DELIMETER, LEVEL_APPLICATION, LEVEL_FRAME, LEVEL_PAGE, LEVEL_PLUGIN |
| Method Summary | |
|---|---|
void |
addOption(Option option)
Adds an option to the option manager. |
boolean |
getBooleanOption(java.lang.String optionName,
boolean dfltValue)
Gets a boolean option (convenience method). |
static OptionMgr |
getInstance()
Gets the singleton instance of the option manager. |
int |
getIntegerOption(java.lang.String optionName,
int dfltValue)
Gets a integer option (convenience method). |
Option |
getOption(java.lang.String optionName)
Gets an option. |
java.lang.String |
getResourceCollectionContainerName()
Gets the name of the resource component the default resource of the plugin belongs to. |
java.lang.String |
getStringOption(java.lang.String optionName,
java.lang.String dfltValue)
Gets a string option (convenience method). |
void |
removeOption(Option option)
Removes a option from the manager. |
void |
saveOptions()
Saves the option values to persistent storage. |
void |
setOption(Option option,
java.lang.Object newValue)
Sets an option value and fires an option event. |
void |
setOption(java.lang.String optionName,
java.lang.Object optionValue)
Sets an option value and fires an option event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OPTIONROOT
| Method Detail |
|---|
public static OptionMgr getInstance()
public java.lang.String getResourceCollectionContainerName()
AbstractPlugin
getResourceCollectionContainerName in class AbstractPluginpublic Option getOption(java.lang.String optionName)
optionName - Name of the option
public java.lang.String getStringOption(java.lang.String optionName,
java.lang.String dfltValue)
optionName - Name of the optiondfltValue - Default value of the option
public boolean getBooleanOption(java.lang.String optionName,
boolean dfltValue)
optionName - Name of the optiondfltValue - Default value of the option
public int getIntegerOption(java.lang.String optionName,
int dfltValue)
optionName - Name of the optiondfltValue - Default value of the option
public void setOption(java.lang.String optionName,
java.lang.Object optionValue)
optionName - Name of the option to setoptionValue - New value of the option
public void setOption(Option option,
java.lang.Object newValue)
option - Option to setnewValue - New value of the optionpublic void addOption(Option option)
public void removeOption(Option option)
public void saveOptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||