1 19 20 package org.netbeans.api.registry; 21 22 23 28 public final class SubcontextEvent extends ContextEvent { 29 30 31 public static final int SUBCONTEXT_ADDED = 1; 32 33 34 public static final int SUBCONTEXT_REMOVED = 2; 35 36 private int type; 37 private String subcontextName; 38 39 40 SubcontextEvent(Context source, String subcontextName, int type) { 41 super(source); 42 this.subcontextName = subcontextName; 43 this.type = type; 44 } 45 46 51 public String getSubcontextName() { 52 return subcontextName; 53 } 54 55 public int getType() { 56 return type; 57 } 58 59 public String toString() { 60 return "ContextEvent: [subcontextName="+subcontextName+", type="+type+"] " + super.toString(); } 62 63 } 64 | Popular Tags |