OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.dnd
Class AdfDashboardDropTarget

Warning:

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

public class AdfDashboardDropTarget
extends AdfStampedDropTarget
AdfDashboardDropTarget for supporting drops onto the panelDashboard component.



Field Summary

private Object
_allowedFlavors


Fields inherited from oracle.adfinternal.view.js.dnd.AdfStampedDropTarget

DROP_ORIENTATION, HINT_LAST_DROP_ORIENTATION, HINT_LAST_ROWKEY, HINT_LAST_ROWKEY_BOUNDS, ROW_KEY


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

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfDashboardDropTarget(Array<AdfDataFlavor> allowedFlavors)
AdfDashboardDropTarget for supporting drops onto the panelDashboard component.


Method Summary

protected Object
AcceptDragOverrideIfRejectedByFlavor(AdfDnDContext dndContext, Object originalProposedAction)
Override to accept drags of direct children for reordering purposes when data flavors are not compatible.
protected Object
DropOnRowKey(Object dndContext, Object proposedAction, Object dropX, Object dropY, Object desiredDropIndexString, Object dropOrientation)
Override for the subclassed drop target to perform an action on the drop of rowkey.
protected Array<AdfDataFlavor>
GetAllowedFlavors(Object dndContext)
Override to return the Array of allowed AdfDataFlavors.
protected Object
Init(Object allowedActions, Object allowedFlavors)
Initializes the instance.
protected Object
NeedsRowKeyCollectionCheck()
Returns whether a special check against the row keys is needed.


Methods inherited from oracle.adfinternal.view.js.dnd.AdfStampedDropTarget

AcceptDrag, dragExit, drop, GetAllowedActions, getRowKeyDataFlavor, toDebugString


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

acceptDragEnter, acceptDragOver, acceptDropActionChanged, AcceptedDragEnter, CalculateFlavorAcceptance, getComponent


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

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


Field Detail


_allowedFlavors

private Object _allowedFlavors

Constructor Detail


AdfDashboardDropTarget

public AdfDashboardDropTarget(Array<AdfDataFlavor> allowedFlavors)

AdfDashboardDropTarget for supporting drops onto the panelDashboard component.

Parameters:
allowedFlavors  -  used to identify this dropTarget

Method Detail


AcceptDragOverrideIfRejectedByFlavor

protected Object AcceptDragOverrideIfRejectedByFlavor(AdfDnDContext dndContext,
                                                      Object originalProposedAction)

Override to accept drags of direct children for reordering purposes when data flavors are not compatible.

Parameters:
dndContext  -  the AdfDnDContext
originalProposedAction  -  the originally-proposed AdfDnDContext action type
Return:
Object - an AdfDnDContext action type
Overrides:
AdfStampedDropTarget.AcceptDragOverrideIfRejectedByFlavor(AdfDnDContext, Object)

DropOnRowKey

protected Object DropOnRowKey(Object dndContext,
                              Object proposedAction,
                              Object dropX,
                              Object dropY,
                              Object desiredDropIndexString,
                              Object dropOrientation)

Override for the subclassed drop target to perform an action on the drop of rowkey. This implementation queues the drop event with "children" as the dropSite and the desired drop index as the drop side index.

Parameters:
dndContext    
proposedAction    
dropX    
dropY    
desiredDropIndexString    
dropOrientation    
Return:
Object
Overrides:
AdfStampedDropTarget.DropOnRowKey(Object, Object, Object, Object, Object, Object)

GetAllowedFlavors

protected Array<AdfDataFlavor> GetAllowedFlavors(Object dndContext)

Override to return 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:
Array<AdfDataFlavor> - null
Overrides:
AdfDropTarget.GetAllowedFlavors(Object)

Init

protected Object Init(Object allowedActions,
                      Object allowedFlavors)

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

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

NeedsRowKeyCollectionCheck

protected Object NeedsRowKeyCollectionCheck()

Returns whether a special check against the row keys is needed.

Return:
Object - true if a special check against the row keys is needed
Overrides:
AdfStampedDropTarget.NeedsRowKeyCollectionCheck()

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

 

Generated on 2010.03.26 00:15 UTC
Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.