uk.ac.ebi.intact.application.editor.struts.view.biosrc
Class BioSourceViewBean

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.editor.struts.framework.util.AbstractEditViewBean
        |
        +--uk.ac.ebi.intact.application.editor.struts.view.biosrc.BioSourceViewBean
All Implemented Interfaces:
java.io.Serializable

public class BioSourceViewBean
extends AbstractEditViewBean

BioSource edit view bean.

Version:
$Id: BioSourceViewBean.java,v 1.14 2004/03/24 11:36:02 smudali Exp $
Author:
Sugath Mudali (smudali@ebi.ac.uk)
See Also:
Serialized Form

Constructor Summary
BioSourceViewBean()
           
 
Method Summary
 java.lang.String getCellType()
           
 java.util.List getCellTypeMenu()
          The cell type menu list.
 java.lang.String getHelpTag()
          Returns the help tag link for the current view bean; subclasses must override this method to return the help tag (if necessary) or else the link to the CV editor is returned.
 java.lang.String getTaxId()
           
 java.lang.String getTissue()
           
 java.util.List getTissueMenu()
          The tissue menu list.
protected  void reset(AnnotatedObject annobj)
          Resets with the bean using an existing Annotated object.
protected  void reset(java.lang.Class clazz)
          Resets the bean with the current edit class.
 void setCellType(java.lang.String cellType)
           
 void setLayout(org.apache.struts.tiles.ComponentContext context)
          Sets the layout in given context.
 void setTaxId(java.lang.String taxid)
           
 void setTissue(java.lang.String tissue)
           
protected  void updateAnnotatedObject(EditUserI user)
          Gathers values in the view bean and updates the existing AnnotatedObject if it exists or create a new annotated object for the view and sets the annotated object.
 void updateFromForm(org.apache.struts.action.DynaActionForm dynaform)
          Updates the internal data from given form.
 
Methods inherited from class uk.ac.ebi.intact.application.editor.struts.framework.util.AbstractEditViewBean
addAnnotation, addToRecentList, addXref, clear, clearTransactions, delAnnotation, delXref, equals, getAc, getAcLink, getAddDatabaseMenu, getAddTopicMenu, getAddXrefMenus, getAnnotatedObject, getAnnotations, getDefaultXrefQualifier, getEditClass, getEditDatabaseMenu, getEditorMenus, getEditTopicMenu, getEditXrefMenus, getFullName, getMenuFactory, getReadOnly, getShortLabel, getXrefs, persist, persistOthers, removeFromRecentList, reset, sanityCheck, saveComment, saveXref, setAnnotatedObject, setFullName, setMenuFactory, setShortLabel, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BioSourceViewBean

public BioSourceViewBean()
Method Detail

reset

protected void reset(java.lang.Class clazz)
Description copied from class: AbstractEditViewBean
Resets the bean with the current edit class. This method is called when creating a new annotated object (only the class or the type is known at that time).

Overrides:
reset in class AbstractEditViewBean
Parameters:
clazz - the Class of the new annotated object.

reset

protected void reset(AnnotatedObject annobj)
Description copied from class: AbstractEditViewBean
Resets with the bean using an existing Annotated object.

Overrides:
reset in class AbstractEditViewBean
Parameters:
annobj - AnnotatedObject object to set this bean.

updateAnnotatedObject

protected void updateAnnotatedObject(EditUserI user)
                              throws SearchException
Description copied from class: AbstractEditViewBean
Gathers values in the view bean and updates the existing AnnotatedObject if it exists or create a new annotated object for the view and sets the annotated object.

Specified by:
updateAnnotatedObject in class AbstractEditViewBean
Parameters:
user - to access the persistent system.
Throws:
SearchException - for errors in searching the persistent system.
 post: getAnnotatedObject() != null
 

updateFromForm

public void updateFromForm(org.apache.struts.action.DynaActionForm dynaform)
Description copied from class: AbstractEditViewBean
Updates the internal data from given form.

Overrides:
updateFromForm in class AbstractEditViewBean
Parameters:
dynaform - the form to update the internal data.

setLayout

public void setLayout(org.apache.struts.tiles.ComponentContext context)
Description copied from class: AbstractEditViewBean
Sets the layout in given context. This method is currently empty as the layout defaults to cv layout. Override this method to provide editor specific layout.

Overrides:
setLayout in class AbstractEditViewBean
Parameters:
context - the Tiles context to set the layout.

getHelpTag

public java.lang.String getHelpTag()
Description copied from class: AbstractEditViewBean
Returns the help tag link for the current view bean; subclasses must override this method to return the help tag (if necessary) or else the link to the CV editor is returned.

Overrides:
getHelpTag in class AbstractEditViewBean
Returns:
the tag as a String for the current view bean.

getTaxId

public java.lang.String getTaxId()

setTaxId

public void setTaxId(java.lang.String taxid)

getCellType

public java.lang.String getCellType()

setCellType

public void setCellType(java.lang.String cellType)

getTissue

public java.lang.String getTissue()

setTissue

public void setTissue(java.lang.String tissue)

getCellTypeMenu

public java.util.List getCellTypeMenu()
                               throws SearchException
The cell type menu list.

Returns:
the cell type menu consisting of CvCellType short labels. The first item in the menu contains the '---Select---' item.
Throws:
SearchException - for errors in generating menus.

getTissueMenu

public java.util.List getTissueMenu()
                             throws SearchException
The tissue menu list.

Returns:
the tissue menu consisting of CvTissue short labels. The first item in the menu contains the '---Select---' item.
Throws:
SearchException - for errors in generating menus.


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk