1 11 package org.eclipse.swt.dnd; 12 13 import org.eclipse.swt.events.TypedEvent; 14 import org.eclipse.swt.widgets.Widget; 15 16 19 public class DropTargetEvent extends TypedEvent { 20 23 public int x; 24 25 28 public int y; 29 30 37 public int detail; 38 39 48 public int operations; 49 50 63 public int feedback; 64 65 69 public Widget item; 70 71 74 public TransferData currentDataType; 75 76 80 public TransferData[] dataTypes; 81 82 static final long serialVersionUID = 3256727264573338678L; 83 84 90 public DropTargetEvent(DNDEvent e) { 91 super(e); 92 this.data = e.data; 93 this.x = e.x; 94 this.y = e.y; 95 this.detail = e.detail; 96 this.currentDataType = e.dataType; 97 this.dataTypes = e.dataTypes; 98 this.operations = e.operations; 99 this.feedback = e.feedback; 100 this.item = e.item; 101 } 102 void updateEvent(DNDEvent e) { 103 e.widget = this.widget; 104 e.time = this.time; 105 e.data = this.data; 106 e.x = this.x; 107 e.y = this.y; 108 e.detail = this.detail; 109 e.dataType = this.currentDataType; 110 e.dataTypes = this.dataTypes; 111 e.operations = this.operations; 112 e.feedback = this.feedback; 113 e.item = this.item; 114 } 115 } 116 | Popular Tags |