Package org.jppf.ui.options.event
Class ScriptedValueChangeListener
java.lang.Object
org.jppf.ui.options.event.ScriptedValueChangeListener
- All Implemented Interfaces:
EventListener,ValueChangeListener
Implementation of ValueChangeListener for script-based event listeners.
- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionScriptedValueChangeListener(String language, String content) Initialize this listener with a specified script language and script source. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalueChanged(ValueChangeEvent event) Method called when the value of an option has changed.
-
Constructor Details
-
ScriptedValueChangeListener
Initialize this listener with a specified script language and script source.- Parameters:
language- the name of the scripting language to use.content- the actual source of the script to execute.
-
-
Method Details
-
valueChanged
Method called when the value of an option has changed. This method actually executes the script that is specified in the XML document from which the UI component was built.- Specified by:
valueChangedin interfaceValueChangeListener- Parameters:
event- the event encapsulating the source of the event.- See Also:
-