org.jppf.ui.options.event
Class ScriptedValueChangeListener

java.lang.Object
  extended by org.jppf.ui.options.event.ScriptedValueChangeListener
All Implemented Interfaces:
EventListener, ValueChangeListener

public class ScriptedValueChangeListener
extends Object
implements ValueChangeListener

Implementation of ValueChangeListener for script-based event listeners.

Author:
Laurent Cohen

Constructor Summary
ScriptedValueChangeListener(String language, String content)
          Initialize this listener with a specified scriot alnguage and script source.
 
Method Summary
 void valueChanged(ValueChangeEvent event)
          Method called when the value of an option has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptedValueChangeListener

public ScriptedValueChangeListener(String language,
                                   String content)
Initialize this listener with a specified scriot alnguage and script source.

Parameters:
language - the name of the scripting language to use.
content - the actual source of the script to execute.
Method Detail

valueChanged

public void valueChanged(ValueChangeEvent event)
Method called when the value of an option has changed. This method actually executes the script that is specified in the XML document fropm which the UI component was built.

Specified by:
valueChanged in interface ValueChangeListener
Parameters:
event - the event encapsulating the source of the event.
See Also:
ValueChangeListener.valueChanged(org.jppf.ui.options.event.ValueChangeEvent)


Copyright © 2005-2010 JPPF Team.