OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.dnd
Class AdfMasonryLayoutDropTarget

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.AdfMasonryLayoutDropTarget

public class AdfMasonryLayoutDropTarget
extends AdfStampedDropTarget
AdfMasonryLayoutDropTarget for supporting drops onto the masonryLayout component.


Field Summary


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
AdfMasonryLayoutDropTarget(AdfDropTarget dropTarget)
AdfMasonryLayoutDropTarget for supporting drops onto the masonryLayout 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 dropTarget)
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, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toString

Field Detail


Constructor Detail


AdfMasonryLayoutDropTarget

public AdfMasonryLayoutDropTarget(AdfDropTarget dropTarget)

AdfMasonryLayoutDropTarget for supporting drops onto the masonryLayout component.

Parameters:
dropTarget - original dropTarget to replace

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

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

Parameters:
dropTarget  
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

 

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