Class EventInit
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.dom.events.EventInit
-
- Direct Known Subclasses:
KeyboardEventInit
,MouseEventInit
,TouchEventInit
public class EventInit extends NativeObjectContainer
Initialization object for aNativeBaseEvent
.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description EventInit()
Creates an empty objectEventInit(boolean bubbles)
Creates an initialization object, setting the bubbles value.EventInit(boolean bubbles, boolean cancelable)
Creates an initialization object, setting the bubbles and cancelable values.EventInit(NativeBaseEvent source)
Creates an initialization object, cloning all source event data
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBubbles()
Returnstrue
indicates whether the event bubbles up through the DOM tree or not.boolean
isCancelable()
Returnstrue
indicates whether the event can be canceled, and therefore prevented as if the event never happened.
If the event is not cancelable, then its cancelable property will be false and the event listener cannot stop the event from occurring.void
setBubbles(boolean bubbles)
Setstrue
indicates whether the event bubbles up through the DOM tree or notvoid
setCancelable(boolean cancelable)
Setstrue
indicates whether the event can be canceled, and therefore prevented as if the event never happened.
If the event is not cancelable, then its cancelable property will be false and the event listener cannot stop the event from occurring.-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Constructor Detail
-
EventInit
public EventInit()
Creates an empty object
-
EventInit
public EventInit(boolean bubbles)
Creates an initialization object, setting the bubbles value.- Parameters:
bubbles
- bubbles initialization property.
-
EventInit
public EventInit(boolean bubbles, boolean cancelable)
Creates an initialization object, setting the bubbles and cancelable values.- Parameters:
bubbles
- bubbles initialization property.cancelable
- cancelable initialization property.
-
EventInit
public EventInit(NativeBaseEvent source)
Creates an initialization object, cloning all source event data- Parameters:
source
- source event to clone.
-
-
Method Detail
-
isBubbles
public final boolean isBubbles()
Returnstrue
indicates whether the event bubbles up through the DOM tree or not.- Returns:
true
indicates whether the event bubbles up through the DOM tree or not
-
setBubbles
public final void setBubbles(boolean bubbles)
Setstrue
indicates whether the event bubbles up through the DOM tree or not- Parameters:
bubbles
-true
indicates whether the event bubbles up through the DOM tree or not
-
isCancelable
public final boolean isCancelable()
Returnstrue
indicates whether the event can be canceled, and therefore prevented as if the event never happened.
If the event is not cancelable, then its cancelable property will be false and the event listener cannot stop the event from occurring.- Returns:
true
indicates whether the event can be canceled, and therefore prevented as if the event never happened
-
setCancelable
public final void setCancelable(boolean cancelable)
Setstrue
indicates whether the event can be canceled, and therefore prevented as if the event never happened.
If the event is not cancelable, then its cancelable property will be false and the event listener cannot stop the event from occurring.- Parameters:
cancelable
-true
indicates whether the event can be canceled, and therefore prevented as if the event never happened
-
-