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).
-
HtmlPage(String)
- Creates a HtmlPage object with the specified title.
-
addBodyParameter(String, String)
- Adds a new parameter to the body tag of this HTML page.
-
getAuthor()
- Returns the author of this HTML page.
-
getBackground()
- Returns the current background image.
-
getBgColor()
- Returns the current background color.
-
getTitle()
- Returns the current title of this HTML page.
-
setAuthor(String)
- Sets the author of this HTML page.
-
setBackground(String)
- Sets the background image of this HTML page.
-
setBgColor(String)
- Sets the background color.
-
setTitle(String)
- Sets the title of this HTML page.
-
toString()
- Returns a string representation of this HTML page.
HtmlPage
public HtmlPage(String title)
- Creates a HtmlPage object with the specified title.
- Parameters:
- title - the title of the generated HTML page.
setTitle
public void setTitle(String title)
- Sets the title of this HTML page.
- Parameters:
- title - the new title of this HTML page.
getTitle
public String getTitle()
- Returns the current title of this HTML page.
- Returns:
- the current title of this HTML page.
setAuthor
public void setAuthor(String author)
- Sets the author of this HTML page.
- Parameters:
- author - the author of this HTML page.
getAuthor
public String getAuthor()
- Returns the author of this HTML page.
setBgColor
public void setBgColor(String color)
- Sets the background color.
- Parameters:
- color - the background color.
getBgColor
public String getBgColor()
- Returns the current background color.
setBackground
public void setBackground(String image)
- Sets the background image of this HTML page.
- Parameters:
- image - the background image.
getBackground
public String getBackground()
- Returns the current background image.
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.
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