OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.dnd
Class AdfCalendarDropTarget

Warning:

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

public class AdfCalendarDropTarget
extends AdfDropTarget
Calender version of AdfDropTarget, supporting drops onto calendar component.



Field Summary

private Object
_allowedActions
private Object
_allowedFlavors
public static Object
HINT_DROP_SITE
public static Object
HINT_DROP_SITE_DATA
public static Object
HINT_LAST_DROP_SITE
public static Object
HINT_LAST_DROP_SITE_DATA
private static Object
_SITE_HINTS


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

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfCalendarDropTarget(Number allowedActions, Object allowedFlavors)
Calender version of AdfDropTarget, supporting drops onto calendar component.


Method Summary

protected Object
AcceptDrag(Object dndContext, Object possibleActions, Object proposedAction, Object pageX, Object pageY)
Override to get the accept the drag based on the drop site combination
private Object
_cleanUpDragFeedback(Object dndContext, Object dragExit)
public Object
dragExit(Object dndContext)
Called while a drag operation is ongoing, when the mouse pointer has exited the operable part of the drop site for the AdfDropTarget.
public Object
drop(Object dndContext, Object proposedAction, Object pageX, Object pageY)
Overriden to queue the drop event on a drop operation
protected Object
GetAllowedActions(Object dndContext)
Override to use the actions specified by the developer
protected Object
GetAllowedFlavors(Object dndContext)
Returns the Array of allowed AdfDataFlavors.
protected Object
Init(Object allowedActions, Object allowedFlavors)
Initializes the instance.
public Object
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


_allowedActions

private Object _allowedActions

_allowedFlavors

private Object _allowedFlavors

HINT_DROP_SITE

public static Object HINT_DROP_SITE

HINT_DROP_SITE_DATA

public static Object HINT_DROP_SITE_DATA

HINT_LAST_DROP_SITE

public static Object HINT_LAST_DROP_SITE

HINT_LAST_DROP_SITE_DATA

public static Object HINT_LAST_DROP_SITE_DATA

_SITE_HINTS

private static Object _SITE_HINTS

Constructor Detail


AdfCalendarDropTarget

public AdfCalendarDropTarget(Number allowedActions,
                             Object allowedFlavors)

Calender version of AdfDropTarget, supporting drops onto calendar component.

Parameters:
allowedActions  -  that can be performed by this drop target
allowedFlavors    

Method Detail


AcceptDrag

protected Object AcceptDrag(Object dndContext,
                            Object possibleActions,
                            Object proposedAction,
                            Object pageX,
                            Object pageY)

Override to get the accept the drag based on the drop site combination

Parameters:
dndContext    
possibleActions    
proposedAction    
pageX    
pageY    
Return:
Object
Overrides:
AdfDropTarget.AcceptDrag(Object, Object, Object, Object, Object)

_cleanUpDragFeedback

private Object _cleanUpDragFeedback(Object dndContext,
                                    Object dragExit)

Parameters:
dndContext    
dragExit    
Return:
Object

dragExit

public Object dragExit(Object dndContext)

Called while a drag operation is ongoing, when the mouse pointer has exited the operable part of the drop site for the AdfDropTarget.

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

drop

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

Overriden to queue the drop event on a drop operation

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)

Returns the Array of allowed AdfDataFlavors. If subclasses plan to use the default implementation of AcceptDrag, they must override this method to return their support AdfDataFlavors.

Parameters:
dndContext    
Return:
Object
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()

toDebugString

public Object toDebugString()

Return:
Object
Overrides:
AdfObject.toDebugString()

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

 

Generated on 2012.08.25 02:16 UTC
Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.