JavaScript API Reference for Oracle ADF Faces
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces
11g Release 1 (11.1.1)
E12046-06
PREV NEXT
FRAMES NO FRAMES All Classes Warning: private items are visible
oracle.adf.view.js.dnd
Class AdfAttributeDropTarget
org.ecmascript.object.Object
|
+--oracle.adf.view.js.base.AdfObject
|
+--oracle.adf.view.js.dnd.AdfDropTarget
|
+--oracle.adf.view.js.dnd.AdfAttributeDropTarget
public class AdfAttributeDropTarget
extends AdfDropTarget
AdfDropTarget supporting dropping a property in copy mode.
Methods inherited from oracle.adf.view.js.base.AdfObject
adopt , clone , createCallback , createInitializedObject , createSubclass , ensureClassInitialization , equals , getClass , GetLazyArrayProperty , GetLazyMapProperty , getTypeName , toString
private Object _checkIfNeedsValidate
private Object _propertyName
public AdfAttributeDropTarget (Object propertyName)
AdfDropTarget supporting dropping a property in copy mode.
Parameters:
public Object drop (Object dndContext,
Object proposedAction,
Object pageX,
Object pageY)
Override to set the property value of the specified property
Parameters:
dndContext
proposedAction
pageX
pageY
Return:
Object
- the chosen AdfDnDContext.ACTION, or DndContext.ACTION_NONE if no drop actually occurred.
Overrides:
AdfDropTarget .drop(AdfDnDContext, Object, Number, Number)
protected Number GetAllowedActions (Object dndContext)
Override to only allow ACTION_COPY
Parameters:
Return:
Number
- Bitmask of allowed actions
Overrides:
AdfDropTarget .GetAllowedActions(Object)
protected Object GetAllowedFlavors (Object dndContext)
Returns the Array of allowed AdfDataFlavors. If subclasses plan to use the default implementation of AcceptDrag, they must override this method to return thier support AdfDataFlavors.
Parameters:
Return:
Object
Overrides:
AdfDropTarget .GetAllowedFlavors(Object)
private AdfDataFlavor _getTargetFlavor ()
Return the AdfDataFlavor that we are looking for
Return:
AdfDataFlavor
- null
protected Object Init (Object propertyName,
Object allowedActions,
Object defaultAction)
Initializes the instance. Subclasses of AdfObject must call their superclass' Init
Parameters:
propertyName
allowedActions
defaultAction
Return:
Object
Overrides:
AdfObject .Init()
public Object toDebugString ()
Return:
Object
Overrides:
AdfObject .toDebugString()
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces
11g Release 1 (11.1.1)
E12046-06
PREV NEXT
FRAMES NO FRAMES All Classes Warning: private items are visible
Generated on 2011.04.05 23:36 UTC
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.