OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adf.view.js.dnd.touch
Class AdfDragRecognizer

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.dnd.touch.AdfDragRecognizer
Direct Known Subclasses:
AdfInputNumberSliderDragRecognizer, AdfPanelBoxDragRecognizer

public class AdfDragRecognizer
extends AdfObject
Strategy Class for recognizing drags based on AdfComponentEvents. In general, programmers shouldn't have to deal with this class.



Field Summary

private Object
_isAndroid


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfDragRecognizer()
Strategy Class for recognizing drags based on AdfComponentEvents.


Method Summary

public Object
abortPrep(Object prepContext, Object inputEvent)
Returns true if the current prepped drag should be aborted
private Object
_clearDragReady(Object prepContext)
private Object
_hasMovedSufficientDistance(Object inputEvent, Object prepContext)
protected Object
Init()
Initializes the instance.
private Object
_prepContextDelayCallback(Object prepContext)
public Object
prepDrag(Object dndContext, Object dragSource, Object inputEvent)
Called by the AdfDnDContext when drag might be initiated.
public Object
recognizeDrag(Object prepContext, Object inputEvent)
Determine whether a possible drag has turned into a drag or not


Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString


Field Detail


_isAndroid

private Object _isAndroid

Constructor Detail


AdfDragRecognizer

public AdfDragRecognizer()

Strategy Class for recognizing drags based on AdfComponentEvents. In general, programmers shouldn't have to deal with this class.

Method Detail


abortPrep

public Object abortPrep(Object prepContext,
                        Object inputEvent)

Returns true if the current prepped drag should be aborted

Parameters:
prepContext    
inputEvent    
Return:
Object

_clearDragReady

private Object _clearDragReady(Object prepContext)

Parameters:
prepContext    
Return:
Object

_hasMovedSufficientDistance

private Object _hasMovedSufficientDistance(Object inputEvent,
                                           Object prepContext)

Parameters:
inputEvent    
prepContext    
Return:
Object

Init

protected Object Init()

Initializes the instance. Subclasses of AdfObject must call their superclass' Init

Return:
Object
Overrides:
AdfObject.Init()

_prepContextDelayCallback

private Object _prepContextDelayCallback(Object prepContext)

Parameters:
prepContext    
Return:
Object

prepDrag

public Object prepDrag(Object dndContext,
                       Object dragSource,
                       Object inputEvent)

Called by the AdfDnDContext when drag might be initiated. Returns a private prepContext object if this event could start a drag. The prepContext object will be passed back to the recognizeDrag and abortPrep callbacks.

Parameters:
dndContext    
dragSource    
inputEvent    
Return:
Object

recognizeDrag

public Object recognizeDrag(Object prepContext,
                            Object inputEvent)

Determine whether a possible drag has turned into a drag or not

Parameters:
prepContext    
inputEvent    
Return:
Object

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2012.08.25 02:16 UTC
Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.