|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectro.sync.exml.workspace.api.options.WSOptionsStorageImpl
public class WSOptionsStorageImpl
Options storage implementation.
Constructor Summary | |
---|---|
WSOptionsStorageImpl()
|
Method Summary | |
---|---|
void |
addOptionListener(WSOptionListener listener)
Adds an OptionListener to the current set of options. |
java.lang.String |
getOption(java.lang.String key,
java.lang.String defaultValue)
Provides the value of the option associated with the specified key. |
void |
removeAllListeners()
Removes all options listeners. |
void |
removeOptionListener(WSOptionListener listener)
Removes an option listener from the current set of option listeners. |
void |
setOption(java.lang.String key,
java.lang.String value)
Modifies the value of an option. |
void |
setOptionsDoctypePrefix(java.lang.String optionsDoctypePrefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WSOptionsStorageImpl()
Method Detail |
---|
public void addOptionListener(WSOptionListener listener)
WSOptionsStorage
OptionListener
to the current set of options.
The listener is notified when the value of its associated option changes.
addOptionListener
in interface WSOptionsStorage
listener
- The OptionListener
to be added.OptionsStorage.addOptionListener(ro.sync.ecss.extensions.api.OptionListener)
public java.lang.String getOption(java.lang.String key, java.lang.String defaultValue)
WSOptionsStorage
getOption
in interface WSOptionsStorage
key
- The key that uniquely identifies an option.defaultValue
- The default value for the specified option.
OptionsStorage.getOption(java.lang.String, java.lang.String)
public void removeOptionListener(WSOptionListener listener)
WSOptionsStorage
removeOptionListener
in interface WSOptionsStorage
listener
- The OptionListener
to be removed.OptionsStorage.removeOptionListener(ro.sync.ecss.extensions.api.OptionListener)
public void setOption(java.lang.String key, java.lang.String value)
WSOptionsStorage
null
The option will be removed from storage.
setOption
in interface WSOptionsStorage
key
- The key of the option whose value is to be modified.value
- The new value of the option. If null
the option will be removed from the storage.OptionsStorage.setOption(java.lang.String, java.lang.String)
public void removeAllListeners()
public void setOptionsDoctypePrefix(java.lang.String optionsDoctypePrefix)
optionsDoctypePrefix
- The document type prefix used to build the options keys.
This should not be null
.
|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |