1 23 24 package org.enhydra.kelp.common.event; 25 26 import java.util.EventObject ; 27 28 public class WriteEvent extends EventObject { 30 public static final int OUTPUT = 0; 31 public static final int ERROR = 1; 32 public static final int CLEAR = -1; 33 34 private int type = OUTPUT; 35 private String string = new String (); 36 37 45 public WriteEvent(Object source, int t, String s) { 46 super(source); 47 48 type = t; 49 string = s; 50 } 51 52 58 public String getString() { 59 return string; 60 } 61 62 68 public int getType() { 69 return type; 70 } 71 72 } 73 74 | Popular Tags |