Package org.eclipse.rap.rwt.scripting
Class ClientListener
java.lang.Object
ClientFunction
org.eclipse.rap.rwt.scripting.ClientListener
- All Implemented Interfaces:
Listener
A special SWT event listener that is implemented in JavaScript and will be executed on a RAP
client. The
handleEvent() method of this type will never be called.- Since:
- 2.2
-
Constructor Summary
ConstructorsConstructorDescriptionClientListener(String scriptCode) Creates a ClientListener instance with the specified JavaScript code. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleEvent(Event event) This method will NOT be called on a ClientListener.
-
Constructor Details
-
ClientListener
Creates a ClientListener instance with the specified JavaScript code. The JavaScript code must contain a method namedhandleEvent. This method will be called with a single argument,event.- Parameters:
scriptCode- the JavaScript code of the event handler
-
-
Method Details
-
handleEvent
This method will NOT be called on a ClientListener.- Specified by:
handleEventin interfaceListener- Parameters:
event- the event which occurred
-