1 19 20 package org.netbeans.api.registry; 21 22 23 28 public final class AttributeEvent extends ContextEvent { 29 30 31 public static final int ATTRIBUTE_ADDED = 1; 32 33 34 public static final int ATTRIBUTE_REMOVED = 2; 35 36 37 public static final int ATTRIBUTE_MODIFIED = 3; 38 39 private String attributeName; 40 private String bindingName; 41 private int type; 42 43 AttributeEvent(Context source, String bindingName, String attributeName, int type) { 44 super(source); 45 this.attributeName = attributeName; 46 this.bindingName = bindingName; 47 this.type = type; 48 } 49 50 56 public String getBindingName() { 57 return bindingName; 58 } 59 60 67 public String getAttributeName() { 68 return attributeName; 69 } 70 71 public int getType() { 72 return type; 73 } 74 75 public String toString() { 76 return "AttributeEvent: [bindingName="+bindingName+", attributeName="+attributeName+", type="+type+"] " + super.toString(); } 78 } 79 | Popular Tags |