Class NativeCustomEvent
- java.lang.Object
-
- org.pepstock.charba.client.dom.events.NativeBaseEvent
-
- org.pepstock.charba.client.dom.events.NativeCustomEvent
-
- All Implemented Interfaces:
IsJSType
,IsCastable
@JsType(isNative=true, name="CustomEvent", namespace="<global>") public class NativeCustomEvent extends NativeBaseEvent
Internal implementation of a custom native event.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NativeCustomEvent(String type)
Create a custom event by its type.protected
NativeCustomEvent(String type, NativeObject init)
Create a custom event by its type and initialization configuration.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NativeCustomEvent
createCustomEvent(String type)
Creates a new event object for a specific event type.static NativeCustomEvent
createCustomEvent(String type, EventInit init)
Creates a new event object for a specific event type with initial configuration.static NativeCustomEvent
createCustomEvent(IsEvent type)
Creates a new event object for a specific event type.static NativeCustomEvent
createCustomEvent(IsEvent type, EventInit init)
Creates a new event object for a specific event type with initial configuration.-
Methods inherited from class org.pepstock.charba.client.dom.events.NativeBaseEvent
createEvent, createEvent, createEvent, createEvent, getCurrentTarget, getEventPhase, getTarget, getType, isBubbles, isCancelable, isDefaultPrevented, preventDefault, stopImmediatePropagation, stopPropagation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.dom.IsCastable
as
-
-
-
-
Constructor Detail
-
NativeCustomEvent
protected NativeCustomEvent(String type)
Create a custom event by its type.- Parameters:
type
- type of the animation event
-
NativeCustomEvent
protected NativeCustomEvent(String type, NativeObject init)
Create a custom event by its type and initialization configuration.- Parameters:
type
- type of the custom eventinit
- event initialization dictionary to configure the event
-
-
Method Detail
-
createCustomEvent
@JsOverlay public static final NativeCustomEvent createCustomEvent(String type)
Creates a new event object for a specific event type.- Parameters:
type
- type of event- Returns:
- a new event object for a specific event type
-
createCustomEvent
@JsOverlay public static final NativeCustomEvent createCustomEvent(IsEvent type)
Creates a new event object for a specific event type.- Parameters:
type
- type of event- Returns:
- a new event object for a specific event type
-
createCustomEvent
@JsOverlay public static final NativeCustomEvent createCustomEvent(IsEvent type, EventInit init)
Creates a new event object for a specific event type with initial configuration.- Parameters:
type
- type of eventinit
- initial configuration of the event- Returns:
- a new event object for a specific event type
-
createCustomEvent
@JsOverlay public static final NativeCustomEvent createCustomEvent(String type, EventInit init)
Creates a new event object for a specific event type with initial configuration.- Parameters:
type
- type of eventinit
- initial configuration of the event- Returns:
- a new event object for a specific event type
-
-