Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 2 (11.1.2.2.0)
E17488-03


oracle.adf.view.rich.dnd
Class DragSource

java.lang.Object
  extended by oracle.adf.view.rich.dnd.DragSource

All Implemented Interfaces:
java.io.Serializable

public class DragSource
extends java.lang.Object
implements java.io.Serializable

Object representing a drag source for a component.

See Also:
Serialized Form

Constructor Summary
DragSource(java.util.Set<DnDAction> allowedActions)
          Constructs a DragSource

 

Method Summary
 void dragDropEnd(DropEvent event, DnDAction action)
          Called at the end of a drag and drop operation to inform the dragSource of the choice so that it can clean up.
 java.util.Set<DnDAction> getAllowedActions()
          Returns the drag and drop actions supported by this drag source.
 void preDrop(DropEvent event)
          This method called right before a DropEvent occurs.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DragSource

public DragSource(java.util.Set<DnDAction> allowedActions)
Constructs a DragSource
Parameters:
allowedActions - a non-null Set of DnDAction items.
Throws:
java.lang.IllegalArgumentException - if allowedActions is null.

Method Detail

getAllowedActions

public java.util.Set<DnDAction> getAllowedActions()
Returns the drag and drop actions supported by this drag source.
Returns:
Set<DnDAction>

preDrop

public void preDrop(DropEvent event)
This method called right before a DropEvent occurs. This method should be overridden by custom DragSource implementations for e.g., to give the DragSource a chance to convert the Transferable.
Parameters:
event - DropEvent

dragDropEnd

public void dragDropEnd(DropEvent event,
                        DnDAction action)
Called at the end of a drag and drop operation to inform the dragSource of the choice so that it can clean up.
Parameters:
event - DropEvent
action - the DnDAction that was performed.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 2 (11.1.2.2.0)
E17488-03


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