|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.ac.ebi.intact.application.editor.struts.view.AbstractEditBean
|
+--uk.ac.ebi.intact.application.editor.struts.view.AbstractEditKeyBean
|
+--uk.ac.ebi.intact.application.editor.struts.view.CommentBean
Bean to store data for comments (annotations).
| Field Summary |
| Fields inherited from class uk.ac.ebi.intact.application.editor.struts.view.AbstractEditBean |
SAVE, VIEW |
| Constructor Summary | |
CommentBean()
Default constructor. |
|
CommentBean(Annotation annotation)
Instantiate an object of this class from an Annotation object. |
|
CommentBean(Annotation annotation,
long key)
Instantiates with given annotation and key. |
|
| Method Summary | |
Annotation |
getAnnotation(EditUserI user)
Updates the internal annotation with the new values from the form. |
java.lang.String |
getDescription()
Returns the annotated text. |
java.lang.String |
getTopic()
Returns the topic. |
java.lang.String |
getTopicLink()
Returns the topic with a link to show its contents in a window. |
void |
reset()
Resets fields to blanks, so the addAnnotation form doesn't display previous values. |
void |
setDescription(java.lang.String text)
Sets the annotated text. |
void |
setTopic(java.lang.String topic)
Sets the topic. |
| Methods inherited from class uk.ac.ebi.intact.application.editor.struts.view.AbstractEditKeyBean |
equals, getKey |
| Methods inherited from class uk.ac.ebi.intact.application.editor.struts.view.AbstractEditBean |
equals, getEditState, getLink, setEditState |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommentBean()
reset()public CommentBean(Annotation annotation)
annotation - the underlying Annotation object.
public CommentBean(Annotation annotation,
long key)
annotation - the underlying Annotation object.key - the key to assigned to this bean.| Method Detail |
public Annotation getAnnotation(EditUserI user)
throws SearchException
user - the user instance to search for a CvTopic object.
SearchException - for errors in searching for a CvTopic.public java.lang.String getTopic()
String.public java.lang.String getTopicLink()
public void setTopic(java.lang.String topic)
topic - the new topic as a String.public java.lang.String getDescription()
String.public void setDescription(java.lang.String text)
text - the annotated text as a String.public void reset()
reset in class AbstractEditKeyBean
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||