Class ClientListener

ClientFunction
org.eclipse.rap.rwt.scripting.ClientListener
All Implemented Interfaces:
Listener

public class ClientListener extends ClientFunction implements 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

    Constructors
    Constructor
    Description
    ClientListener(String scriptCode)
    Creates a ClientListener instance with the specified JavaScript code.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method will NOT be called on a ClientListener.
  • Constructor Details

    • ClientListener

      public ClientListener(String scriptCode)
      Creates a ClientListener instance with the specified JavaScript code. The JavaScript code must contain a method named handleEvent. This method will be called with a single argument, event.
      Parameters:
      scriptCode - the JavaScript code of the event handler
  • Method Details

    • handleEvent

      public void handleEvent(Event event)
      This method will NOT be called on a ClientListener.
      Specified by:
      handleEvent in interface Listener
      Parameters:
      event - the event which occurred

Copyright (c) EclipseSource and others 2002, 2022.All rights reserved. This program and the accompanying materialsare made available under the terms of theEclipse Public License v1.0