1 11 package org.eclipse.swt.dnd; 12 13 import org.eclipse.swt.events.TypedEvent; 14 import org.eclipse.swt.graphics.*; 15 16 21 public class DragSourceEvent extends TypedEvent { 22 30 public int detail; 31 32 46 public boolean doit; 47 48 53 public int x; 54 59 public int y; 60 61 65 public TransferData dataType; 66 67 74 public Image image; 75 76 static final long serialVersionUID = 3257002142513770808L; 77 78 84 public DragSourceEvent(DNDEvent e) { 85 super(e); 86 this.data = e.data; 87 this.detail = e.detail; 88 this.doit = e.doit; 89 this.dataType = e.dataType; 90 this.x = e.x; 91 this.y = e.y; 92 this.image = e.image; 93 } 94 void updateEvent(DNDEvent e) { 95 e.widget = this.widget; 96 e.time = this.time; 97 e.data = this.data; 98 e.detail = this.detail; 99 e.doit = this.doit; 100 e.dataType = this.dataType; 101 e.x = this.x; 102 e.y = this.y; 103 e.image = this.image; 104 } 105 } 106 | Popular Tags |