/** * Returns a clone of the annotation. * * @return A clone. * * @throws CloneNotSupportedException this class will not throw this * exception, but subclasses (if any) might. */ @Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
/** * Sets a flag that indicates whether listeners should be notified about * changes of an annotation. * * @param flag the flag * * @see #getNotify() */ public void setNotify(boolean flag){ this.notify = flag; if (notify) { fireAnnotationChanged(); } }
/** * Notifies all registered listeners that the annotation has changed. * * @see #addChangeListener(AnnotationChangeListener) */ protected void fireAnnotationChanged() { if (notify) { notifyListeners(new AnnotationChangeEvent(this, this)); } }
/** * Notifies all registered listeners that the annotation has changed. * * @see #addChangeListener(AnnotationChangeListener) */ protected void fireAnnotationChanged() { if (notify) { notifyListeners(new AnnotationChangeEvent(this, this)); } }
/** * Returns a clone of the annotation. * * @return A clone. * * @throws CloneNotSupportedException this class will not throw this * exception, but subclasses (if any) might. */ public Object clone() throws CloneNotSupportedException { return super.clone(); }
/** * Sets a flag that indicates whether listeners should be notified about * changes of an annotation. * * @param flag the flag * * @see #getNotify() */ public void setNotify(boolean flag){ this.notify = flag; if (notify) { fireAnnotationChanged(); } }