1 package org.ejen; 22 23 import java.util.EventObject ; 24 25 31 public class EjenEvent extends EventObject implements EjenConstants { 32 protected String _msg = null; 33 protected int _level = MSG_DEBUG; 34 35 41 public EjenEvent(Object source) { 42 this(source, null, MSG_DEBUG); 43 } 44 45 51 public EjenEvent(Object source, int level) { 52 this(source, null, level); 53 } 54 55 62 public EjenEvent(Object source, String msg) { 63 this(source, msg, MSG_INFO); 64 } 65 66 73 public EjenEvent(Object source, String msg, int level) { 74 super(source); 75 _msg = msg; 76 _level = level; 77 } 78 79 83 public String getMessage() { 84 return _msg; 85 } 86 87 91 public int getLevel() { 92 return _level; 93 } 94 95 99 public String toString() { 100 return _msg; 101 } 102 } 103 | Popular Tags |