OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adf.view.js.dnd
Class AdfBasicDropTarget

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.dnd.AdfDropTarget
               |
               +--oracle.adf.view.js.dnd.AdfBasicDropTarget

public class AdfBasicDropTarget
extends AdfDropTarget
Basic, fully-specified AdfDropTarget, delegating drops anywhere in the Component that meet the allowedActions and allowedFlavors to the dropHandler callback



Field Summary

private Object
_allowedActions
private Object
_allowedFlavors
private Object
_dropHandler


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

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfBasicDropTarget(Object dropHandler, Object allowedActions, Object allowedFlavors)
Basic, fully-specified AdfDropTarget, delegating drops anywhere in the Component that meet the allowedActions and allowedFlavors to the dropHandler callback


Method Summary

public Object
drop(Object dndContext, Object proposedAction, Object pageX, Object pageY)
Called when the drag operation has terminated with a drop on the operable part of the drop site for the AdfDropTarget
protected Object
GetAllowedActions(Object dndContext)
Override to use the actions specified by the developer
protected Object
GetAllowedFlavors(Object dndContext)
Return our allowed AdfDataFlavors
protected Object
Init(Object dropHandler, Object allowedActions, Object allowedFlavors)
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, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toString


Field Detail


_allowedActions

private Object _allowedActions

_allowedFlavors

private Object _allowedFlavors

_dropHandler

private Object _dropHandler

Constructor Detail


AdfBasicDropTarget

public AdfBasicDropTarget(Object dropHandler,
                          Object allowedActions,
                          Object allowedFlavors)

Basic, fully-specified AdfDropTarget, delegating drops anywhere in the Component that meet the allowedActions and allowedFlavors to the dropHandler callback

Parameters:
dropHandler    
allowedActions    
allowedFlavors    

Method Detail


drop

public Object drop(Object dndContext,
                   Object proposedAction,
                   Object pageX,
                   Object pageY)

Called when the drag operation has terminated with a drop on the operable part of the drop site for the AdfDropTarget

Parameters:
dndContext    
proposedAction    
pageX    
pageY    
Return:
Object
Overrides:
AdfDropTarget.drop(AdfDnDContext, Object, Number, Number)

GetAllowedActions

protected Object GetAllowedActions(Object dndContext)

Override to use the actions specified by the developer

Parameters:
dndContext    
Return:
Object
Overrides:
AdfDropTarget.GetAllowedActions(Object)

GetAllowedFlavors

protected Object GetAllowedFlavors(Object dndContext)

Return our allowed AdfDataFlavors

Parameters:
dndContext    
Return:
Object
Overrides:
AdfDropTarget.GetAllowedFlavors(Object)

Init

protected Object Init(Object dropHandler,
                      Object allowedActions,
                      Object allowedFlavors)

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

Parameters:
dropHandler    
allowedActions    
allowedFlavors    
Return:
Object
Overrides:
AdfObject.Init()

toDebugString

public Object toDebugString()

Return:
Object
Overrides:
AdfObject.toDebugString()

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

 

Generated on 2011.10.24 21:45 UTC
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.