removeFromHistory(e);
}
EventListener[] list = listenerList.getListeners(DataMapListener.class);
for (int i = 0; i < list.length; i++) {
DataMapListener listener = (DataMapListener) list[i];
switch (e.getId()) {
case MapEvent.ADD:
listener.dataMapAdded(e);
break;
case MapEvent.CHANGE:
listener.dataMapChanged(e);
break;
case MapEvent.REMOVE:
listener.dataMapRemoved(e);
break;
default:
throw new IllegalArgumentException("Invalid DataMapEvent type: "
+ e.getId());
}