1 7 8 package java.awt.event; 9 10 import java.awt.AWTEvent ; 11 import java.awt.Event ; 12 13 35 36 public class TextEvent extends AWTEvent { 37 38 41 public static final int TEXT_FIRST = 900; 42 43 46 public static final int TEXT_LAST = 900; 47 48 51 public static final int TEXT_VALUE_CHANGED = TEXT_FIRST; 52 53 56 private static final long serialVersionUID = 6269902291250941179L; 57 58 70 public TextEvent(Object source, int id) { 71 super(source, id); 72 } 73 74 75 81 public String paramString() { 82 String typeStr; 83 switch(id) { 84 case TEXT_VALUE_CHANGED: 85 typeStr = "TEXT_VALUE_CHANGED"; 86 break; 87 default: 88 typeStr = "unknown type"; 89 } 90 return typeStr; 91 } 92 } 93 94 95 | Popular Tags |