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