A
- public abstract class AnnotationManager extends PropertyChangeSource
Modifier and Type | Field and Description |
---|---|
protected Annotation |
annotation |
protected java.lang.Object |
delegate |
protected AnnotationDisplayMode |
displayMode |
protected int |
position |
changeSupport
Modifier | Constructor and Description |
---|---|
protected |
AnnotationManager() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
createDelegate(AnnotationDisplayMode displayMode) |
void |
first() |
Annotation |
getAnnotation() |
abstract ContentType |
getAnnotationType() |
int |
getDisplayedAnnotationCount()
Returns the total number of 'hits' the underlying
annotation currently represents.
|
AnnotationDisplayMode |
getDisplayMode() |
int |
getMaxPosition() |
int |
getPosition() |
boolean |
hasAnnotation() |
boolean |
isFirst() |
boolean |
isLast() |
void |
last() |
void |
next() |
void |
previous() |
void |
setAnnotation(Annotation annotation) |
void |
setDisplayMode(AnnotationDisplayMode displayMode) |
void |
setPosition(int position) |
boolean |
supportsAnnotation(ContentType contentType) |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
protected Annotation annotation
protected AnnotationDisplayMode displayMode
protected int position
protected java.lang.Object delegate
public Annotation getAnnotation()
public void setAnnotation(Annotation annotation)
public AnnotationDisplayMode getDisplayMode()
public void setDisplayMode(AnnotationDisplayMode displayMode)
protected java.lang.Object createDelegate(AnnotationDisplayMode displayMode)
public boolean hasAnnotation()
public int getPosition()
public void setPosition(int position)
public int getMaxPosition()
public void previous()
public void next()
public void first()
public void last()
public boolean isLast()
public boolean isFirst()
public abstract ContentType getAnnotationType()
public boolean supportsAnnotation(ContentType contentType)
public int getDisplayedAnnotationCount()
displayMode
this number may vary.
Note:Since it is possible that multiple 'hits' point to the same object (form) in an annotated data object the returned number should be used as upper bound (the actual number of items to be visually annotated can be smaller).