001package react4j.dom.events;
002
003import akasha.Element;
004import akasha.Event;
005import akasha.core.JsDate;
006import jsinterop.annotations.JsOverlay;
007import jsinterop.annotations.JsPackage;
008import jsinterop.annotations.JsType;
009
010@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" )
011@SuppressWarnings( "unused" )
012public class SyntheticEvent<E extends Event>
013{
014  private boolean bubbles;
015  private boolean cancelable;
016  private Element currentTarget;
017  private boolean defaultPrevented;
018  private int eventPhase;
019  private boolean isTrusted;
020  private E nativeEvent;
021  private Element target;
022  private JsDate timeStamp;
023  private String type;
024
025  public native void preventDefault();
026
027  public native boolean isDefaultPrevented();
028
029  public native boolean isPropagationStopped();
030
031  public native void stopPropagation();
032
033  public native void persist();
034
035  @JsOverlay
036  public final boolean isBubbles()
037  {
038    return bubbles;
039  }
040
041  @JsOverlay
042  public final boolean isCancelable()
043  {
044    return cancelable;
045  }
046
047  @JsOverlay
048  public final Element getCurrentTarget()
049  {
050    return currentTarget;
051  }
052
053  @JsOverlay
054  public final int getEventPhase()
055  {
056    return eventPhase;
057  }
058
059  @JsOverlay
060  public final boolean isTrusted()
061  {
062    return isTrusted;
063  }
064
065  @JsOverlay
066  public final E getNativeEvent()
067  {
068    return nativeEvent;
069  }
070
071  @JsOverlay
072  public final Element getTarget()
073  {
074    return target;
075  }
076
077  @JsOverlay
078  public final JsDate getTimeStamp()
079  {
080    return timeStamp;
081  }
082
083  @JsOverlay
084  public final String getType()
085  {
086    return type;
087  }
088}