1 7 8 package java.awt.dnd; 9 10 26 27 public class DragSourceDropEvent extends DragSourceEvent { 28 29 private static final long serialVersionUID = -5571321229470821891L; 30 31 53 54 public DragSourceDropEvent(DragSourceContext dsc, int action, boolean success) { 55 super(dsc); 56 57 dropSuccess = success; 58 dropAction = action; 59 } 60 61 81 public DragSourceDropEvent(DragSourceContext dsc, int action, 82 boolean success, int x, int y) { 83 super(dsc, x, y); 84 85 dropSuccess = success; 86 dropAction = action; 87 } 88 89 102 103 public DragSourceDropEvent(DragSourceContext dsc) { 104 super(dsc); 105 106 dropSuccess = false; 107 } 108 109 119 120 public boolean getDropSuccess() { return dropSuccess; } 121 122 131 132 public int getDropAction() { return dropAction; } 133 134 137 138 143 private boolean dropSuccess; 144 145 150 private int dropAction = DnDConstants.ACTION_NONE; 151 } 152 | Popular Tags |