*/
public void newReplyFound(Reply reply);
+ /**
+ * Notifies a listener that the given Sone is now marked as known.
+ *
+ * @param sone
+ * The known Sone
+ */
+ public void markSoneKnown(Sone sone);
+
}
}
}
+ /**
+ * Notifies all listeners that the given Sone is now marked as known.
+ *
+ * @see CoreListener#markSoneKnown(Sone)
+ * @param sone
+ * The known Sone
+ */
+ void fireMarkSoneKnown(Sone sone) {
+ for (CoreListener coreListener : getListeners()) {
+ coreListener.markSoneKnown(sone);
+ }
+ }
+
}
}
/**
+ * {@inheritDoc}
+ */
+ @Override
+ public void markSoneKnown(Sone sone) {
+ newSoneNotification.removeSone(sone);
+ if (newSoneNotification.isEmpty()) {
+ newSoneNotification.dismiss();
+ }
+ }
+
+ /**
* Template provider implementation that uses
* {@link WebInterface#createReader(String)} to load templates for
* inclusion.