Class WSOptionListener
java.lang.Object
ro.sync.exml.workspace.api.options.WSOptionListener
The listener which is notified about the value changes of
an author extension level option.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the option listener.WSOptionListener
(String key) Constructor for the option listener. -
Method Summary
-
Constructor Details
-
WSOptionListener
Constructor for the option listener.- Parameters:
key
- The key of the option whose value modification triggers the listener notification.
-
WSOptionListener
public WSOptionListener()Default constructor for the option listener. IMPORTANT, this default constructor is mostly intended to facilitate creating such objects from Javascript Rhino code. You must set a an option key using the "setKey" method after you are using this implicit constructor.- Since:
- 21
-
-
Method Details
-
optionValueChanged
This method is called when the value of the option associated with this listener has been modified.- Parameters:
event
- AnWSOptionChangedEvent
which indicates that the value of the associated option has been changed.
-
setKey
Set the key to listen to. The key must be set before the listener is added.- Parameters:
key
- The key of the option whose value modification triggers the listener notification.- Since:
- 21
-
getKey
- Returns:
- The key of the option this listener is notified about.
-