Example usage for java.awt.dnd DragSourceContext getSourceActions

List of usage examples for java.awt.dnd DragSourceContext getSourceActions

Introduction

In this page you can find the example usage for java.awt.dnd DragSourceContext getSourceActions.

Prototype

public int getSourceActions() 

Source Link

Document

Returns a bitwise mask of DnDConstants that represent the set of drop actions supported by the drag source for the drag operation associated with this DragSourceContext .

Usage

From source file:Main.java

public void dragEnter(DragSourceDragEvent e) {
    DragSourceContext ctx = e.getDragSourceContext();

    System.out.println(ctx.getSourceActions());
}