org.apache.cocoon.woody.event.impl
Class JavaScriptWidgetListenerBuilder
java.lang.Object
org.apache.cocoon.woody.event.impl.JavaScriptWidgetListenerBuilder
- All Implemented Interfaces:
- WidgetListenerBuilder
public class JavaScriptWidgetListenerBuilder
- extends Object
- implements WidgetListenerBuilder
Builds a WidgetListener
based on a JavaScript snippet.
The syntax for this listener is as follows :
<javascript>
var widget = event.sourceWidget;
sourceWidget.setValue("Yeah");
</javascript>
As shown above, the event that fired this listener is published as the event
variable.
- Version:
- CVS $Id: JavaScriptWidgetListenerBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Sylvain Wallez
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final JavaScriptWidgetListenerBuilder INSTANCE
JavaScriptWidgetListenerBuilder
public JavaScriptWidgetListenerBuilder()
buildListener
public WidgetListener buildListener(Element element,
Class listenerClass)
throws Exception
- Specified by:
buildListener
in interface WidgetListenerBuilder
- Throws:
Exception
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.