All Downloads are FREE. Search and download functionalities are using the official Maven repository.

react4j.dom.events.SyntheticEvent Maven / Gradle / Ivy

The newest version!
package react4j.dom.events;

import akasha.Element;
import akasha.Event;
import akasha.core.JsDate;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" )
@SuppressWarnings( "unused" )
public class SyntheticEvent
{
  private boolean bubbles;
  private boolean cancelable;
  private Element currentTarget;
  private boolean defaultPrevented;
  private int eventPhase;
  private boolean isTrusted;
  private E nativeEvent;
  private Element target;
  private JsDate timeStamp;
  private String type;

  public native void preventDefault();

  public native boolean isDefaultPrevented();

  public native boolean isPropagationStopped();

  public native void stopPropagation();

  public native void persist();

  @JsOverlay
  public final boolean isBubbles()
  {
    return bubbles;
  }

  @JsOverlay
  public final boolean isCancelable()
  {
    return cancelable;
  }

  @JsOverlay
  public final Element getCurrentTarget()
  {
    return currentTarget;
  }

  @JsOverlay
  public final int getEventPhase()
  {
    return eventPhase;
  }

  @JsOverlay
  public final boolean isTrusted()
  {
    return isTrusted;
  }

  @JsOverlay
  public final E getNativeEvent()
  {
    return nativeEvent;
  }

  @JsOverlay
  public final Element getTarget()
  {
    return target;
  }

  @JsOverlay
  public final JsDate getTimeStamp()
  {
    return timeStamp;
  }

  @JsOverlay
  public final String getType()
  {
    return type;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy