|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 11g Release 2 (11.1.2.3.0) E17489-04 |
||||||||
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.event.AdfBaseEvent |
AddMarshalledProperties, forceFullSubmit, getClearMessages, getProperties, getRoot, getShowMessages, getSource, getType, isBubblingStopped, isCanceled, IsDeleveryDiscrete, isFullSubmitForced, isImmediate, isPartial, isResponseAnnounced, isResponseExpected, IsUserInputPrevented, isValidationNeeded, noResponseExpected, preventUserInput, propagatesToServer, setPartial, setRoot, stopBubbling |
Methods inherited from oracle.adf.view.js.base.AdfObject |
adopt, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toString |
Field Detail |
---|
public static Object TOUCH_CANCEL_EVENT_TYPE
public static Object TOUCH_END_EVENT_TYPE
public static Object TOUCH_MOVE_EVENT_TYPE
public 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_FLAG
AdfUIInputEvent.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_TYPE
AdfBaseEvent.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()
Object
public 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 11g Release 2 (11.1.2.3.0) E17489-04 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |