uk.ac.ebi.intact.application.search2.struts.view
Class AbstractViewBean

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

public abstract class AbstractViewBean
extends java.lang.Object
implements java.io.Serializable

Abstract class containing some basic operations useful to display beans for Intact. Subclasses might for example be based around requirements for particular Intact types (eg BasicObjects) or perhaps concrete type requiring specific functionality (eg Proteins).

Version:
$Id: AbstractViewBean.java,v 1.6 2004/01/31 11:41:34 skerrien Exp $
Author:
Chris Lewington
See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
AbstractViewBean(java.lang.String link, java.lang.String contextPath)
          Construst an instance of this class with help link.
 
Method Summary
 java.lang.String getContextPath()
           
 java.lang.String getHelpLink()
           
abstract  java.lang.String getHelpSection()
          Returns the help section.
 java.util.Set getHighlightMap()
          Returns the higlight map.
abstract  void getHTML(java.io.Writer writer)
          Instructs the bean to create an HTML content for the object that it wraps.
abstract  void initHighlightMap()
           
 void setHighlightMap(java.util.Set highlightMap)
           
 boolean showGraphButtons()
          The graph buttons are not displayed by default.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final transient org.apache.log4j.Logger logger
Constructor Detail

AbstractViewBean

public AbstractViewBean(java.lang.String link,
                        java.lang.String contextPath)
Construst an instance of this class with help link.

Parameters:
link - the link to help page.
Method Detail

getHighlightMap

public java.util.Set getHighlightMap()
Returns the higlight map.

Returns:
map consists of short labels for the current bean.

setHighlightMap

public void setHighlightMap(java.util.Set highlightMap)

getHelpLink

public java.lang.String getHelpLink()

getContextPath

public java.lang.String getContextPath()

showGraphButtons

public boolean showGraphButtons()
The graph buttons are not displayed by default. Subclasses needs to overwrite it to change that behaviour.

Returns:
whether or not the graph buttons are displayed

getHTML

public abstract void getHTML(java.io.Writer writer)
Instructs the bean to create an HTML content for the object that it wraps.


initHighlightMap

public abstract void initHighlightMap()

getHelpSection

public abstract java.lang.String getHelpSection()
Returns the help section.



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