Class NativeUIEvent
- java.lang.Object
-
- org.pepstock.charba.client.dom.events.NativeBaseEvent
-
- org.pepstock.charba.client.dom.events.NativeUIEvent
-
- All Implemented Interfaces:
IsJSType
,IsCastable
- Direct Known Subclasses:
NativeAbstractMouseEvent
,NativeKeyboardEvent
,NativeTouchEvent
@JsType(isNative=true, name="UIEvent", namespace="<global>") public abstract class NativeUIEvent extends NativeBaseEvent
Represents simple user interface events, in DOM.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDetail()
When non-zero, provides the current (or next, depending on the event) click count.
For click events, is the current click count.
For mousedown or mouseup events, is 1 plus the current click count.
For all other, is always zero.boolean
getModifierState(KeyboardModifierKey modifier)
Returns the current state of the specified modifier key:true
if the modifier is active (that is the modifier key is pressed or locked), otherwise,false
.-
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
-
-
-
-
Method Detail
-
getDetail
@JsProperty public final int getDetail()
When non-zero, provides the current (or next, depending on the event) click count.
For click events, is the current click count.
For mousedown or mouseup events, is 1 plus the current click count.
For all other, is always zero.- Returns:
- When non-zero, provides the current (or next, depending on the event) click count.
For click events, is the current click count.
For mousedown or mouseup events, is 1 plus the current click count.
For all other, is always zero
-
getModifierState
@JsOverlay public final boolean getModifierState(KeyboardModifierKey modifier)
Returns the current state of the specified modifier key:true
if the modifier is active (that is the modifier key is pressed or locked), otherwise,false
.- Parameters:
modifier
- a modifier key- Returns:
- the current state of the specified modifier key:
true
if the modifier is active (that is the modifier key is pressed or locked), otherwise,false
-
-