Interface CustomEvent
- All Superinterfaces:
 Event
Represents a custom DOM event
- 
Method Summary
Modifier and TypeMethodDescriptionGet a set of all property names@Nullable ObjectgetProperty(@NotNull String propertyName) Get a property value<T> TgetPropertyAs(@NotNull String propertyName, Class<T> type) Get a property value and cast it to a specifiedtypevoidinitEvent(@Nullable Element target, boolean bubbles, boolean cancellable, @Nullable Map<String, Object> properties) Initializes the event, this must be called before dispatching the event.Methods inherited from interface com.juliewoolie.dom.event.Event
getCurrentTarget, getDocument, getPhase, getTarget, getType, isBubbling, isCancellable, isCancelled, isComposed, isPropagationStopped, preventDefault, stopPropagation 
- 
Method Details
- 
getProperty
Get a property value- Parameters:
 propertyName- Property name- Returns:
 - Property value, or 
null, if the property isn't set - Throws:
 NullPointerException- IfpropertyNameisnull
 - 
getPropertyAs
Get a property value and cast it to a specifiedtype- Parameters:
 propertyName- Property nametype- Property type- Returns:
 - Property value casted to the specified type, or 
null, if the property isn't set, or if the property's type wasn't an instance of the specified type. - Throws:
 NullPointerException- IfpropertyNameortypeisnull
 - 
getProperties
 - 
initEvent
void initEvent(@Nullable @Nullable Element target, boolean bubbles, boolean cancellable, @Nullable @Nullable Map<String, Object> properties) Initializes the event, this must be called before dispatching the event.- Parameters:
 target- Target elementbubbles- Whether the event bubbles up through the document treecancellable- Whether the event can be cancelledproperties- Map of event properties, ornull, if no extra properties are required.
 
 -