1 19 package org.netbeans.api.mdr.events; 20 21 import javax.jmi.reflect.RefAssociation; 22 import javax.jmi.reflect.RefObject; 23 24 42 public class AssociationEvent extends MDRChangeEvent { 43 44 public static final int POSITION_NONE = -1; 45 46 49 public static final int EVENTMASK_ASSOCIATION = 0x401FFFF; 50 51 54 public static final int EVENT_ASSOCIATION_SET = 0x4010001; 55 57 public static final int EVENT_ASSOCIATION_ADD = 0x4010002; 58 60 public static final int EVENT_ASSOCIATION_REMOVE = 0x4010004; 61 62 private final RefObject fixedElement; 64 private final String endName; 66 private final RefObject oldElement; 68 private final RefObject newElement; 70 private final int position; 72 73 82 public AssociationEvent(RefAssociation source, int type, RefObject fixedElement, String endName, RefObject oldElement, RefObject newElement, int position) { 83 super(source, type); 84 this.fixedElement = fixedElement; 85 this.endName = endName; 86 this.oldElement = oldElement; 87 this.newElement = newElement; 88 this.position = position; 89 } 90 91 94 public RefObject getFixedElement() { 95 return fixedElement; 96 } 97 98 101 public String getEndName() { 102 return endName; 103 } 104 105 108 public RefObject getOldElement() { 109 return oldElement; 110 } 111 112 115 public RefObject getNewElement() { 116 return newElement; 117 } 118 119 122 public int getPosition() { 123 return position; 124 } 125 } 126 | Popular Tags |