All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sics.agentbase.html.HtmlPage

java.lang.Object
   |
   +----sics.agentbase.html.HtmlContent
           |
           +----sics.agentbase.html.HtmlPage

public class HtmlPage
extends HtmlContent
Generates a full HTML page (with HTML, HEAD, BODY, etc tags).


Constructor Index

 o HtmlPage(String)
Creates a HtmlPage object with the specified title.

Method Index

 o addBodyParameter(String, String)
Adds a new parameter to the body tag of this HTML page.
 o getAuthor()
Returns the author of this HTML page.
 o getBackground()
Returns the current background image.
 o getBgColor()
Returns the current background color.
 o getTitle()
Returns the current title of this HTML page.
 o setAuthor(String)
Sets the author of this HTML page.
 o setBackground(String)
Sets the background image of this HTML page.
 o setBgColor(String)
Sets the background color.
 o setTitle(String)
Sets the title of this HTML page.
 o toString()
Returns a string representation of this HTML page.

Constructors

 o HtmlPage
 public HtmlPage(String title)
Creates a HtmlPage object with the specified title.

Parameters:
title - the title of the generated HTML page.

Methods

 o setTitle
 public void setTitle(String title)
Sets the title of this HTML page.

Parameters:
title - the new title of this HTML page.
 o getTitle
 public String getTitle()
Returns the current title of this HTML page.

Returns:
the current title of this HTML page.
 o setAuthor
 public void setAuthor(String author)
Sets the author of this HTML page.

Parameters:
author - the author of this HTML page.
 o getAuthor
 public String getAuthor()
Returns the author of this HTML page.

 o setBgColor
 public void setBgColor(String color)
Sets the background color.

Parameters:
color - the background color.
 o getBgColor
 public String getBgColor()
Returns the current background color.

 o setBackground
 public void setBackground(String image)
Sets the background image of this HTML page.

Parameters:
image - the background image.
 o getBackground
 public String getBackground()
Returns the current background image.

 o addBodyParameter
 public void addBodyParameter(String name,
                              String value)
Adds a new parameter to the body tag of this HTML page.

Parameters:
name - the name of the attribute to add.
value - the value of the attribute to add.
 o toString
 public String toString()
Returns a string representation of this HTML page.

Returns:
a string representation of this HTML page.
Overrides:
toString in class HtmlContent

All Packages  Class Hierarchy  This Package  Previous  Next  Index