1 11 package org.eclipse.swt.events; 12 13 14 import org.eclipse.swt.widgets.*; 15 16 25 26 public class SelectionEvent extends TypedEvent { 27 28 31 public Widget item; 32 33 54 public int detail; 55 56 59 public int x; 60 61 64 public int y; 65 66 69 public int width; 70 71 74 public int height; 75 76 80 public int stateMask; 81 82 90 public String text; 91 92 97 public boolean doit; 98 99 static final long serialVersionUID = 3976735856884987953L; 100 101 107 public SelectionEvent(Event e) { 108 super(e); 109 this.item = e.item; 110 this.x = e.x; 111 this.y = e.y; 112 this.width = e.width; 113 this.height = e.height; 114 this.detail = e.detail; 115 this.stateMask = e.stateMask; 116 this.text = e.text; 117 this.doit = e.doit; 118 } 119 120 126 public String toString() { 127 String string = super.toString (); 128 return string.substring (0, string.length() - 1) + " item=" + item 130 + " detail=" + detail 131 + " x=" + x 132 + " y=" + y 133 + " width=" + width 134 + " height=" + height 135 + " stateMask=" + stateMask 136 + " text=" + text 137 + " doit=" + doit 138 + "}"; 139 } 140 } 141 142 | Popular Tags |