uk.ac.ebi.intact.application.search2.struts.view.details
Class DetailsViewBean

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.search2.struts.view.AbstractViewBean
        |
        +--uk.ac.ebi.intact.application.search2.struts.view.details.DetailsViewBean
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BinaryDetailsViewBean, InteractionDetailsViewBean, ProteinDetailsViewBean

public class DetailsViewBean
extends AbstractViewBean
implements java.io.Serializable

Class allowing to handle the view for a collection of AnnotatedObject.

Version:
$Id: DetailsViewBean.java,v 1.10 2004/01/31 11:41:34 skerrien Exp $
Author:
Samuel Kerrien (skerrien@ebi.ac.uk)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class uk.ac.ebi.intact.application.search2.struts.view.AbstractViewBean
logger
 
Constructor Summary
DetailsViewBean(java.util.Collection objects, java.lang.String link, java.lang.String contextPath)
          Constructs an instance of this class from given collection.
 
Method Summary
 java.lang.String getHelpSection()
          Returns the help section.
 void getHTML(java.io.Writer writer)
          Build a copy the Experiment object - don't copy the interactions.
 java.util.Collection getWrappedObjects()
          Typically subclasses will return a more 'interesting' instance than Object
 void initHighlightMap()
           
protected  void setWrappedObjects(java.util.Collection wrappedObjects)
           
 boolean showGraphButtons()
          Graph buttons are shown.
 
Methods inherited from class uk.ac.ebi.intact.application.search2.struts.view.AbstractViewBean
getContextPath, getHelpLink, getHighlightMap, setHighlightMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailsViewBean

public DetailsViewBean(java.util.Collection objects,
                       java.lang.String link,
                       java.lang.String contextPath)
Constructs an instance of this class from given collection.

Parameters:
objects - a collection of objects to display.
link - the link to the help page.
 pre: forall(obj:objects -> obj instanceof AnnotatedObject)
 
Method Detail

getWrappedObjects

public java.util.Collection getWrappedObjects()
Typically subclasses will return a more 'interesting' instance than Object

Returns:
Object the instance warpped by the bean

setWrappedObjects

protected void setWrappedObjects(java.util.Collection wrappedObjects)

initHighlightMap

public void initHighlightMap()
Specified by:
initHighlightMap in class AbstractViewBean

getHTML

public void getHTML(java.io.Writer writer)
Build a copy the Experiment object - don't copy the interactions.

Specified by:
getHTML in class AbstractViewBean

showGraphButtons

public boolean showGraphButtons()
Graph buttons are shown.

Overrides:
showGraphButtons in class AbstractViewBean
Returns:
whether or not the graph buttons are displayed

getHelpSection

public java.lang.String getHelpSection()
Description copied from class: AbstractViewBean
Returns the help section.

Specified by:
getHelpSection in class AbstractViewBean


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