home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / awt / dnd / DragSourceDragEvent.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  721 b   |  31 lines

  1. package java.awt.dnd;
  2.  
  3. public class DragSourceDragEvent extends DragSourceEvent {
  4.    private int targetActions = 0;
  5.    private int dropAction = 0;
  6.    private int gestureModifiers = 0;
  7.  
  8.    public DragSourceDragEvent(DragSourceContext var1, int var2, int var3, int var4) {
  9.       super(var1);
  10.       this.targetActions = var3;
  11.       this.gestureModifiers = var4;
  12.       this.dropAction = var2;
  13.    }
  14.  
  15.    public int getTargetActions() {
  16.       return this.targetActions;
  17.    }
  18.  
  19.    public int getGestureModifiers() {
  20.       return this.gestureModifiers;
  21.    }
  22.  
  23.    public int getUserAction() {
  24.       return this.dropAction;
  25.    }
  26.  
  27.    public int getDropAction() {
  28.       return this.dropAction & this.targetActions & ((DragSourceEvent)this).getDragSourceContext().getSourceActions();
  29.    }
  30. }
  31.