public abstract class AnnotatedObject extends java.lang.Object implements Annotated
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAPTION_PROPERTY
The caption property name ("caption").
|
static java.lang.String |
DESCRIPTION_PROPERTY
The long description property name ("description").
|
Constructor and Description |
---|
AnnotatedObject() |
Modifier and Type | Method and Description |
---|---|
MutableAttributeMap |
getAttributes()
Returns a attribute map containing the attributes annotating this object.
|
java.lang.String |
getCaption()
Returns a short summary of this object, suitable for display as an icon caption or tool tip.
|
java.lang.String |
getDescription()
Returns a longer, more detailed description of this object.
|
void |
setCaption(java.lang.String caption)
Sets the short description (suitable for display in a tooltip).
|
void |
setDescription(java.lang.String description)
Sets the long description.
|
public static final java.lang.String CAPTION_PROPERTY
public static final java.lang.String DESCRIPTION_PROPERTY
public java.lang.String getCaption()
Annotated
getCaption
in interface Annotated
public java.lang.String getDescription()
Annotated
getDescription
in interface Annotated
public MutableAttributeMap getAttributes()
Annotated
getAttributes
in interface Annotated
public void setCaption(java.lang.String caption)
caption
- the captionpublic void setDescription(java.lang.String description)
description
- the long description