public void fireCallbackMethodEvent(CallbackMethodEvent e) {
setDirty(true);
for (EventListener listener : listenerList
.getListeners(CallbackMethodListener.class)) {
CallbackMethodListener temp = (CallbackMethodListener) listener;
switch (e.getId()) {
case MapEvent.ADD:
temp.callbackMethodAdded(e);
break;
case MapEvent.CHANGE:
temp.callbackMethodChanged(e);
break;
case MapEvent.REMOVE:
temp.callbackMethodRemoved(e);
break;
default:
throw new IllegalArgumentException("Invalid CallbackEvent type: "
+ e.getId());
}