public abstract class Annotation
extends java.lang.Object
See more - description of the way to declare an Annotation.
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
PROP_ANNOTATION_TYPE |
Property name of the annotation type
|
static java.lang.String |
PROP_MOVE_TO_FRONT |
Virtual property which does not have getter/setter.
|
static java.lang.String |
PROP_SHORT_DESCRIPTION |
Property name of the tip text
|
| Constructor | Description |
|---|---|
Annotation() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l) |
Add listeners on changes of annotation properties
|
void |
attach(Annotatable anno) |
Attach annotation to Annotatable object.
|
void |
detach() |
Detach annotation.
|
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue) |
Fire property change to registered listeners.
|
abstract java.lang.String |
getAnnotationType() |
Returns name of the file which describes the annotation type.
|
Annotatable |
getAttachedAnnotatable() |
Gets annotatable object to which this annotation is attached.
|
abstract java.lang.String |
getShortDescription() |
Gets the tool tip text for this annotation.
|
void |
moveToFront() |
Helper method for moving annotation which is covered by other annotations
on the same line in front of others.
|
protected void |
notifyAttached(Annotatable toAnno) |
Notifies the annotation that it was attached
to the annotatable.
|
protected void |
notifyDetached(Annotatable fromAnno) |
Notifies the annotation that it was detached
from the annotatable.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l) |
Remove listeners on changes of annotation properties
|
public static final java.lang.String PROP_SHORT_DESCRIPTION
public static final java.lang.String PROP_ANNOTATION_TYPE
public static final java.lang.String PROP_MOVE_TO_FRONT
public abstract java.lang.String getAnnotationType()
public abstract java.lang.String getShortDescription()
public final void attach(Annotatable anno)
anno - annotatable class to which this annotation will be attachedprotected void notifyAttached(Annotatable toAnno)
toAnno - annotatable to which the annotation
was attached.public final void detach()
protected void notifyDetached(Annotatable fromAnno)
fromAnno - annotatable from which the annotation
was detached.public final Annotatable getAttachedAnnotatable()
public 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 void moveToFront()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.