Oracle Fusion Middleware Tag Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81455-02 |
This tag makes a calendar component a drop target and can be used to declaratively initialize the drop target.
Name | Type | Supports EL? | Description |
---|
oracle.adf.view.rich.dnd.DnDAction method(oracle.adf.view.rich.event.DropEvent dropEvent)
called when a drop occurs on the component. This callback should check the
DropEvent to determine whether it will accept the drop or not. If the callback
accepts the drop, it should perform the drop and return the DnDAction it performed--
DnDAction.COPY
, DnDAction.MOVE
or DnDAction.LINK
,
otherwise it should return DnDAction.NONE
to indicate that the
drop was rejected. The target component is automatically redrawn in response
to a successful drop.
If the calendarDropTarget is attached to the calendar component, an implicit support for moving of activities is added by the framework. The drop transferable will contain the object of the following flavor: oracle.adf.view.rich.model.CalendarActivity. The dropSite for the drop event will be an object of instance: oracle.adf.view.rich.dnd.CalendarDropSite.
Please note that currently there is no CalendarDragSource tag and hence the drop target is responsible for moving the activities. Page authors are responsible for handling drop from external data sources in dropListener. This can be done by adding one or more af:dataFlovor tags to the af:calendarDropTarget tag.