public abstract class Annotatable
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
PROP_ANNOTATION_COUNT |
Property name of the count of annotations
|
static java.lang.String |
PROP_DELETED |
Property name for the deleted attribute
|
static java.lang.String |
PROP_TEXT |
Property name for the content of the annotatable
|
| Constructor | Description |
|---|---|
Annotatable() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addAnnotation(Annotation anno) |
Add annotation to this Annotatable class
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l) |
Add listeners on changes of annotatable properties
|
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue) |
Fire property change to registered listeners.
|
int |
getAnnotationCount() |
The count of already attached annotations.
|
abstract java.lang.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(java.beans.PropertyChangeListener l) |
Remove listeners on changes of annotatable properties
|
public static final java.lang.String PROP_ANNOTATION_COUNT
public static final java.lang.String PROP_DELETED
public static final java.lang.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(java.beans.PropertyChangeListener l)
l - change listenerpublic final void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - change listenerprotected final void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
public final boolean isDeleted()
public abstract java.lang.String getText()
public final int getAnnotationCount()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.