Class NativeEventHandler

java.lang.Object
org.opencms.ade.contenteditor.widgetregistry.client.NativeEventHandler
All Implemented Interfaces:
com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.logical.shared.ValueChangeHandler<String>, com.google.gwt.event.shared.EventHandler

public class NativeEventHandler extends Object implements com.google.gwt.event.logical.shared.ValueChangeHandler<String>, com.google.gwt.event.dom.client.FocusHandler
Handler to delegate events to a native java script connector.

  • Constructor Details

    • NativeEventHandler

      Constructor.

      Parameters:
      connector - the native connector object that needs to provide an onChange method
  • Method Details

    • onValueChange

      public void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event)
      Specified by:
      onValueChange in interface com.google.gwt.event.logical.shared.ValueChangeHandler<String>
      See Also:
      • ValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)
    • onFocus

      public void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
      Specified by:
      onFocus in interface com.google.gwt.event.dom.client.FocusHandler
      See Also:
      • FocusHandler.onFocus(com.google.gwt.event.dom.client.FocusEvent)