1 20 21 package org.apache.directory.ldapstudio.browser.core.events; 22 23 24 30 import org.apache.directory.ldapstudio.browser.core.model.IConnection; 31 32 33 39 public class ConnectionUpdateEvent 40 { 41 42 45 public enum EventDetail 46 { 47 48 CONNECTION_OPENED, 49 50 51 CONNECTION_CLOSED, 52 53 54 SCHEMA_LOADED, 55 56 57 CONNECTION_ADDED, 58 59 60 CONNECTION_REMOVED, 61 62 66 CONNECTION_PARAMETER_UPDATED, 67 68 69 CONNECTION_RENAMED 70 } 71 72 73 private EventDetail detail; 74 75 76 private IConnection connection; 77 78 79 85 public ConnectionUpdateEvent( IConnection connection, EventDetail detail ) 86 { 87 this.connection = connection; 88 this.detail = detail; 89 } 90 91 92 97 public IConnection getConnection() 98 { 99 return connection; 100 } 101 102 103 108 public EventDetail getDetail() 109 { 110 return detail; 111 } 112 113 } 114 | Popular Tags |