Package org.eclipse.rap.rwt.scripting
Class ClientListener
- java.lang.Object
-
- ClientFunction
-
- org.eclipse.rap.rwt.scripting.ClientListener
-
-
Constructor Summary
Constructors Constructor Description ClientListener(java.lang.String scriptCode)
Creates a ClientListener instance with the specified JavaScript code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleEvent(Event event)
This method will NOT be called on a ClientListener.
-
-
-
Constructor Detail
-
ClientListener
public ClientListener(java.lang.String scriptCode)
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 Detail
-
handleEvent
public void handleEvent(Event event)
This method will NOT be called on a ClientListener.- Specified by:
handleEvent
in interfaceListener
- Parameters:
event
- the event which occurred
-
-