Package com.jbstrap.core.event
Class TouchEvent
java.lang.Object
com.jbstrap.core.event.BaseEvent
com.jbstrap.core.event.BrowserEvent
com.jbstrap.core.event.TouchEvent
This class contains the data about the touch events.
These are the following:
- The client on which the event occurred
- The ID of the component on which the event occurred
- The event type
- The instance of the component, on which the event occurred
- The event's unique ID
- If the event is trusted
- The amount of mouse clicks
- The event phase
- If the event is bubbleable
- If the event can prevent the default operation
- Marks if the event had defaultPrevented() called
- If the event is composed or not
- The ID of the client, on which the event occurred
- If the ALT button was held down during the event
- If the CONTROL button was held down during the event
- If the Meta button was held down during the event
- If the SHIFT button was held down during the event
- Since:
- 4.0
- Author:
- JBStrap
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDetermines if the ALT key was held down when the event occurredDetermines if the CONTROL key was held down when the event occurredDetermines if the Meta key was held down when the event occurredDetermines if the SHIFT key was held down when the event occurredMethods inherited from class com.jbstrap.core.event.BrowserEvent
fireEvent, getBubbles, getCancelable, getClientId, getComposed, getDefaultPrevented, getDetail, getEventPhase, getIsTrusted, getType
Methods inherited from class com.jbstrap.core.event.BaseEvent
getClient, getComponent, getEventId, getEventType, getSenderId
-
Constructor Details
-
TouchEvent
public TouchEvent()
-
-
Method Details
-
getAltKey
Determines if the ALT key was held down when the event occurred- Returns:
true
, if the ALT button was held down when the event occurred, otherwisefalse
-
getCtrlKey
Determines if the CONTROL key was held down when the event occurred- Returns:
true
, if the CONTROL button was held down when the event occurred, otherwisefalse
-
getShiftKey
Determines if the SHIFT key was held down when the event occurred- Returns:
true
, if the SHIFT button was held down when the event occurred, otherwisefalse
-
getMetaKey
Determines if the Meta key was held down when the event occurred- Returns:
true
, if the Meta button was held down when the event occurred, otherwisefalse
-