1 package com.ca.directory.jxplorer.event; 2 3 import java.util.EventObject ; 4 5 13 14 public class JXplorerEvent extends EventObject { 15 16 17 21 22 private String DN; 23 private EventType type; 24 25 26 34 public JXplorerEvent(Object source, EventType type, String DN) 35 { 36 super(source); 37 this.type = type; 38 this.DN = DN; 39 } 40 41 42 47 public String getDN() { 48 return DN; 49 } 50 51 52 57 public EventType getEventType() 58 { 59 return type; 60 } 61 62 63 67 public static final class EventType 68 { 69 private String typeString; 70 71 private EventType(String s) 72 { 73 typeString = s; 74 } 75 76 79 public static final EventType DNSELECTED = new EventType("DNSELECTED"); 80 81 86 public String toString() 87 { 88 return typeString; 89 } 90 91 } 92 93 94 } | Popular Tags |