public abstract class Annotatable extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROP_ANNOTATION_COUNT
Property name of the count of annotations
|
static String |
PROP_DELETED
Property name for the deleted attribute
|
static String |
PROP_TEXT
Property name for the content of the annotatable
|
Constructor and Description |
---|
Annotatable() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAnnotation(Annotation anno)
Add annotation to this Annotatable class
|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add listeners on changes of annotatable properties
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Fire property change to registered listeners.
|
int |
getAnnotationCount()
The count of already attached annotations.
|
abstract String |
getText()
Get content of the annotatable.
|
boolean |
isDeleted()
Whether this Annotatable object was removed or not.
|
protected void |
removeAnnotation(Annotation anno)
Remove annotation to this Annotatable class
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove listeners on changes of annotatable properties
|
public static final String PROP_ANNOTATION_COUNT
public static final String PROP_DELETED
public static final String PROP_TEXT
protected void addAnnotation(Annotation anno)
anno
- annotation which will be attached to this classprotected void removeAnnotation(Annotation anno)
anno
- annotation which will be detached from this classpublic final void addPropertyChangeListener(PropertyChangeListener l)
l
- change listenerpublic final void removePropertyChangeListener(PropertyChangeListener l)
l
- change listenerprotected final void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public final boolean isDeleted()
public abstract String getText()
public final int getAnnotationCount()