public abstract class AbstractAnnotation extends Object implements Annotation, Cloneable, Serializable
Annotation
interface, containing a
mechanism for registering change listeners.Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(AnnotationChangeListener listener)
Registers an object to receive notification of changes to the
annotation.
|
Object |
clone()
Returns a clone of the annotation.
|
boolean |
getNotify()
Returns a flag that indicates whether listeners should be
notified about changes to the annotation.
|
boolean |
hasListener(EventListener listener)
Returns
true if the specified object is registered with
the annotation as a listener. |
void |
removeChangeListener(AnnotationChangeListener listener)
Deregisters an object so that it no longer receives notification of
changes to the annotation.
|
void |
setNotify(boolean flag)
Sets a flag that indicates whether listeners should be notified about
changes of an annotation.
|
public void addChangeListener(AnnotationChangeListener listener)
addChangeListener
in interface Annotation
listener
- the object to register.removeChangeListener(AnnotationChangeListener)
public void removeChangeListener(AnnotationChangeListener listener)
removeChangeListener
in interface Annotation
listener
- the object to deregister.addChangeListener(AnnotationChangeListener)
public boolean hasListener(EventListener listener)
true
if the specified object is registered with
the annotation as a listener. Most applications won't need to call this
method, it exists mainly for use by unit testing code.listener
- the listener.addChangeListener(AnnotationChangeListener)
,
removeChangeListener(AnnotationChangeListener)
public boolean getNotify()
setNotify(boolean)
public void setNotify(boolean flag)
flag
- the flaggetNotify()
public Object clone() throws CloneNotSupportedException
AnnotationChangeListener
references that have been
registered with this annotation.clone
in class Object
CloneNotSupportedException
- if the annotation does not support
cloning.Jas4pp 1.5 © Java Analysis Studio for Particle Physics