1 19 20 package org.netbeans.api.registry; 21 22 23 32 public final class BindingEvent extends ContextEvent { 33 34 35 public static final int BINDING_ADDED = 1; 36 37 38 public static final int BINDING_REMOVED = 2; 39 40 41 public static final int BINDING_MODIFIED = 3; 42 43 private String bindingName; 44 private int type; 45 46 BindingEvent(Context source, String bindingName, int type) { 47 super(source); 48 this.bindingName = bindingName; 49 this.type = type; 50 } 51 52 59 public String getBindingName() { 60 return bindingName; 61 } 62 63 public int getType() { 64 return type; 65 } 66 67 public String toString() { 68 return "BindingEvent: [bindingName="+bindingName+", type="+type+"] " + super.toString(); } 70 } 71 | Popular Tags |