paramfeed - the feed to delete all entries for for (EntryEventListener listener : this.entryEventListener) { listener.fireDeleteAllEntries(feed); }
for (EntryEventListener listener : this.entryEventListener) { listener.fireDeleteAllEntries(feed); }
paramentry - the added entry for (EntryEventListener listener : this.entryEventListener) { listener.fireInsertEvent(entry); }
for (EntryEventListener listener : this.entryEventListener) { listener.fireInsertEvent(entry); }
paramentry - the deleted entry for (EntryEventListener listener : this.entryEventListener) { listener.fireDeleteEvent(entry); }
for (EntryEventListener listener : this.entryEventListener) { listener.fireDeleteEvent(entry); }
paramentry - the updated entry for (EntryEventListener listener : this.entryEventListener) { listener.fireUpdateEvent(entry); }
for (EntryEventListener listener : this.entryEventListener) { listener.fireUpdateEvent(entry); }
return- a entry event mediator instance
checks if the listener is already registered.paramlistner - the listener to checkreturntrue if and only if the given listener is already registered, otherwise false. return listner!=null&&this.entryEventListener.contains(listner);
true
false
return listner!=null&&this.entryEventListener.contains(listner);
Registers a {@link EntryEventListener}. This listener will be fired if an entry update, insert or delete occursparamlistener - listener to register if (listener == null || this.entryEventListener.contains(listener)) return; this.entryEventListener.add(listener);
if (listener == null || this.entryEventListener.contains(listener)) return; this.entryEventListener.add(listener);