|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.gui.interaction.DropClientUtil
public class DropClientUtil
Utility methods for usage by drop clients.
| Method Summary | |
|---|---|
static void |
dragEnded(InteractionClient client,
java.awt.datatransfer.Transferable transferable)
called when a dragging has ended. |
static void |
dragStarted(InteractionClient client,
java.awt.datatransfer.Transferable transferable)
Called when a dragging has been started. |
static java.util.List |
getAllDropRegions(InteractionClient client,
java.util.List flavors,
java.awt.datatransfer.Transferable data,
java.awt.event.MouseEvent mouseEvent)
Returns a list of all regions of the given client AND possible sub clients. |
static java.util.List |
getAllImportersAt(InteractionClient client,
java.awt.Point p)
Returns all importers which will be accepted at the given point by the given client or one of its sub clients. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.List getAllDropRegions(InteractionClient client,
java.util.List flavors,
java.awt.datatransfer.Transferable data,
java.awt.event.MouseEvent mouseEvent)
client - Drop clientflavors - List of data flavors to checkdata - Transferable to importmouseEvent - Mouse event that initiated the drag action
DragAwareRegion object or null if the drop client
or one of its sub clients cannot satisfy at least one of the supplied data flavors
public static java.util.List getAllImportersAt(InteractionClient client,
java.awt.Point p)
client - Drop clientp - Current mouse position in screen coordinates
Importer objects or null
public static void dragStarted(InteractionClient client,
java.awt.datatransfer.Transferable transferable)
client - Drop clienttransferable - Transferable to be dragged
public static void dragEnded(InteractionClient client,
java.awt.datatransfer.Transferable transferable)
client - Drop clienttransferable - Transferable that has been dragged
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||