OracleJavaScript API Reference for Oracle ADF Faces

 

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

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.


Field Summary

private Object
_checkIfNeedsValidate
private Object
_propertyName

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

constructor, superclass

Fields inherited from org.ecmascript.object.Object

prototype

Constructor Summary

public
AdfAttributeDropTarget(Object propertyName)
AdfDropTarget supporting dropping a property in copy mode.

Method Summary

public Object
drop(Object dndContext, Object proposedAction, Object pageX, Object pageY)
Override to set the property value of the specified property
protected Number
GetAllowedActions(Object dndContext)
Override to only allow ACTION_COPY
protected Object
GetAllowedFlavors(Object dndContext)
Returns the Array of allowed AdfDataFlavors.
private AdfDataFlavor
_getTargetFlavor()
Return the AdfDataFlavor that we are looking for
protected Object
Init(Object propertyName, Object allowedActions, Object defaultAction)
Initializes the instance.
public Object
toDebugString()

Methods inherited from oracle.adf.view.js.dnd.AdfDropTarget

AcceptDrag, acceptDragEnter, acceptDragOver, acceptDropActionChanged, AcceptedDragEnter, CalculateFlavorAcceptance, dragExit, getComponent, __setComponent

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

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

Field Detail


_checkIfNeedsValidate

private Object _checkIfNeedsValidate

_propertyName

private Object _propertyName

Constructor Detail


AdfAttributeDropTarget

public AdfAttributeDropTarget(Object propertyName)

AdfDropTarget supporting dropping a property in copy mode.

Parameters:
propertyName  

Method Detail


drop

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)

GetAllowedActions

protected Number GetAllowedActions(Object dndContext)

Override to only allow ACTION_COPY

Parameters:
dndContext  
Return:
Number - Bitmask of allowed actions
Overrides:
AdfDropTarget.GetAllowedActions(Object)

GetAllowedFlavors

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:
dndContext  
Return:
Object
Overrides:
AdfDropTarget.GetAllowedFlavors(Object)

_getTargetFlavor

private AdfDataFlavor _getTargetFlavor()

Return the AdfDataFlavor that we are looking for

Return:
AdfDataFlavor - null

Init

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()

toDebugString

public Object toDebugString()

Return:
Object
Overrides:
AdfObject.toDebugString()

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

 

Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.