/** Notifies all listeners of the change(add, remove) and does the change. */
public void fireObjRelationshipEvent(RelationshipEvent e) {
setDirty(true);
for (EventListener listener : listenerList.getListeners(ObjRelationshipListener.class)) {
ObjRelationshipListener temp = (ObjRelationshipListener) listener;
switch (e.getId()) {
case MapEvent.ADD:
temp.objRelationshipAdded(e);
break;
case MapEvent.CHANGE:
temp.objRelationshipChanged(e);
break;
case MapEvent.REMOVE:
temp.objRelationshipRemoved(e);
break;
default:
throw new IllegalArgumentException("Invalid RelationshipEvent type: " + e.getId());
}
}