JavaScript API Reference for Oracle ADF Faces
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.3) E80085-01 |
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||
org.ecmascript.object.Object
|
+--oracle.adf.view.js.base.AdfObject
|
+--oracle.adf.view.js.event.AdfBaseEvent
|
+--oracle.adf.view.js.event.AdfPhasedEvent
|
+--oracle.adf.view.js.event.AdfComponentEvent
|
+--oracle.adf.view.js.event.AdfUIInputEvent
|
+--oracle.adf.view.js.event.AdfDomUIInputEvent
|
+--oracle.adf.view.js.event.AdfComponentTouchEvent
public class AdfComponentTouchEvent extends AdfDomUIInputEvent
AdfUIComponent event that redistributes native touch events. The touch event is fired as fingers touch and move across a surface. A touch event provides a snapshot of all touches during a multi-touch sequence that are new or have changed for a particular target. Valid "AdfBaseEvent#type" values are as follows:
All of the event types listed above will bubble except for TOUCH_MOVE_EVENT_TYPE.
Field Summary |
|
|---|---|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
Fields inherited from oracle.adf.view.js.event.AdfDomUIInputEvent |
Event |
Fields inherited from oracle.adf.view.js.event.AdfBaseEvent |
AT_TARGET_PHASE, BUBBLING_PHASE, CAPTURING_PHASE |
Fields inherited from oracle.adf.view.js.base.AdfObject |
constructor, superclass |
Fields inherited from org.ecmascript.object.Object |
prototype |
Constructor Summary |
|
|---|---|
public |
|
Method Summary |
|
|---|---|
public void |
|
public static AdfComponentEvent |
|
public Number |
|
public Number |
|
public Number |
|
public AdfUIComponent |
|
public boolean |
|
static Touch |
|
private Object |
|
public Number |
|
public Number |
|
public Number |
|
public Number |
|
public Number |
|
public Number |
|
Methods inherited from oracle.adf.view.js.event.AdfDomUIInputEvent |
clone, getKeyModifiers, getNativeEvent, getNativeEventTarget, getOffsetX, getOffsetY, GetSourceDomElement, Init, toDebugString |
Methods inherited from oracle.adf.view.js.event.AdfUIInputEvent |
getKeyStroke, isLeftButtonPressed, isRightButtonPressed |
Methods inherited from oracle.adf.view.js.event.AdfComponentEvent |
queue |
Methods inherited from oracle.adf.view.js.event.AdfPhasedEvent |
getEventPhase, isCancelable, nextEventPhase, setCurrentTarget |
Methods inherited from oracle.adf.view.js.base.AdfObject |
adopt, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toString |
Field Detail |
|---|
public static Object TOUCH_CANCEL_EVENT_TYPEpublic static Object TOUCH_END_EVENT_TYPEpublic static Object TOUCH_MOVE_EVENT_TYPEpublic static Object TOUCH_START_EVENT_TYPE
Constructor Detail |
|---|
public AdfComponentTouchEvent(AdfComponent source,
Object type,
Object event)AdfUIComponent event that redistributes native touch events. The touch event is fired as fingers touch and move across a surface. A touch event provides a snapshot of all touches during a multi-touch sequence that are new or have changed for a particular target. Valid "AdfBaseEvent#type" values are as follows:
All of the event types listed above will bubble except for TOUCH_MOVE_EVENT_TYPE.source |
- | component of native event target |
type |
||
event |
Method Detail |
|---|
public void cancel()void - nullAdfBaseEvent.cancel()public static AdfComponentEvent deriveContextMenuEvent(Object componentEvent)AdfComponentEvent.CONTEXT_MENU_EVENT_TYPE from a touch even type. The resultant event will share the same "AdfComponentTouchEvent#getNativeEvent" and "AdfComponentTouchEvent#getSource" properties.componentEvent |
AdfComponentEvent - component event of type AdfComponentEvent.CONTEXT_MENU_EVENT_TYPE or null if the componentEvent is not of the correct "AdfComponentTouchEvent#getType()".AdfAgent.createContextMenuEventGenerator()AdfTouchContextMenuManager.deriveContextMenuEvent(AdfComponentEvent)public Number getButtons()Number - Treat all touches as the left mouse button, AdfUIInputEvent.LEFT_BUTTON_FLAGAdfUIInputEvent.getButtons()public Number getClientX()Number - Returns the horizontal coordinate of the first touch eventAdfUIInputEvent.getClientX()public Number getClientY()Number - Returns the vertical coordinate of the first touch eventAdfUIInputEvent.getClientY()public AdfUIComponent getCurrentTarget()AdfUIComponent - if the "#getType" equals TOUCH_MOVE_EVENT_TYPE, the event doesn't bubble and the "#getSource" is returned; otherwise, delegate on to the super to return the component that this event is currently broadcast on.AdfBaseEvent.getCurrentTarget()public boolean getDoesBubbles()boolean - returns false if the event type is TOUCH_MOVE_EVENT_TYPEAdfBaseEvent.getDoesBubbles()static Touch __getFirstTouch(TouchEvent evt)Called by this class and AdfSafariMobileAgent.
evt |
- | the native touch event |
Touch - the first native touch object if present, otherwise null.private Object _getFirstTouch()Objectpublic Number getKeyCode()Number - returns 0 because events have no keys.AdfUIInputEvent.getKeyCode()public Number getPageX()Number - Retuns the horizontal (x-coordinate) within the webpage of the first touch eventAdfUIInputEvent.getPageX()public Number getPageY()Number - Retuns the vertical (y-coordinate) within the webpage of the first touch eventAdfUIInputEvent.getPageY()public Number getScreenX()Number - Returns the horizontal coordinate (according to the users computer screen) of the first touch event.AdfUIInputEvent.getScreenX()public Number getScreenY()Number - Returns the vertical coordinate (according to the users computer screen) of the first touch event.AdfUIInputEvent.getScreenY()public Number getTouchCount()Number - number of point of contact currently touching the surface (for touchend events, this includes the fingers that are being released).
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.3) E80085-01 |
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||