uk.ac.ebi.html
Class Helper

java.lang.Object
  |
  +--uk.ac.ebi.html.Helper

public class Helper
extends java.lang.Object

This class is provided to help generate EBI specific HTML pages from within a Java program. The static methods allow the prodution of HTML on-the-fly. The instance methods expose a bean interface for use in bean obsessed platforms (e.g. tag based jsp).

Version:
$Id: Helper.java,v 1.1 2003/03/28 15:11:07 smudali Exp $
Author:
Adam Lowe, modified by Sugath Mudali (smudali@ebi.ac.uk) for IntAct

Constructor Summary
Helper()
           
 
Method Summary
 java.lang.String getHeader()
           
 java.lang.String getHeaderBody()
           
 java.lang.String getLoadMethods()
          Returns the value previously set by setLoadMethods
 void setHeaderScript(java.lang.String headerScript)
          Sets a string to be embedded in page <head> You need the appropriate tags (i.e.
 void setLoadMethods(java.lang.String loadMethods)
          Sets the javascript to call on loading the page the surrounding html tags are generated - just javascript please!
 void setOut(java.io.Writer out)
          Set the Writer to output the page to.
 void setTopMenuItem(java.lang.String menuItem)
          set the tab to which this page belongs if it starts with "internal/" an internal page is generated, current meaningful topMenuItems are: "internal/seqdb/introduction","internal/seqdb/organisation", "internal/seqdb/projects", "internal/seqdb/curators", "internal/seqdb/computing" and "internal/seqdb/release" else an external page is generated, current meaningful internal menuitems are: "aboutebi", "groups", "services", "tools", "databases", "submissions" default is to use the stylesheets and images in /services
 void setUnLoadMethods(java.lang.String unLoadMethods)
          Sets the javascript to call on leaving the page the surrounding html tags are generated - just javascript please! Also note that it isn't good practice to annoy people with popups and such at this point!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Helper

public Helper()
Method Detail

setTopMenuItem

public void setTopMenuItem(java.lang.String menuItem)
set the tab to which this page belongs if it starts with "internal/" an internal page is generated, current meaningful topMenuItems are: "internal/seqdb/introduction","internal/seqdb/organisation", "internal/seqdb/projects", "internal/seqdb/curators", "internal/seqdb/computing" and "internal/seqdb/release" else an external page is generated, current meaningful internal menuitems are: "aboutebi", "groups", "services", "tools", "databases", "submissions" default is to use the stylesheets and images in /services


getLoadMethods

public java.lang.String getLoadMethods()
Returns the value previously set by setLoadMethods

See Also:
setLoadMethods(java.lang.String)

setLoadMethods

public void setLoadMethods(java.lang.String loadMethods)
Sets the javascript to call on loading the page the surrounding html tags are generated - just javascript please!


setUnLoadMethods

public void setUnLoadMethods(java.lang.String unLoadMethods)
Sets the javascript to call on leaving the page the surrounding html tags are generated - just javascript please! Also note that it isn't good practice to annoy people with popups and such at this point!


setHeaderScript

public void setHeaderScript(java.lang.String headerScript)
Sets a string to be embedded in page <head> You need the appropriate tags (i.e. <script></script>) for this to work.


setOut

public void setOut(java.io.Writer out)
Set the Writer to output the page to.


getHeader

public java.lang.String getHeader()

getHeaderBody

public java.lang.String getHeaderBody()


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