org.opentox.toxotis.core.html.impl
Class HTMLHeadImpl

java.lang.Object
  extended by org.opentox.toxotis.core.html.impl.HTMLHeadImpl
All Implemented Interfaces:
HTMLHead

public class HTMLHeadImpl
extends Object
implements HTMLHead

Author:
Pantelis Sopasakis, Charalampos Chomenides

Constructor Summary
HTMLHeadImpl()
           
 
Method Summary
 String getAuthor()
          Getter method for the authtor(s) of the current HTML document
 URL getCssUrl()
          Returns the URL of the CSS document related to the current HTML document.
 String getTitle()
          Getter method for the title of the HTML document.
 HTMLHead setAuthor(String author)
          Specify the author(s) of the current HTML document.
 HTMLHead setCssUrl(URL url)
          Set the URL where a CSS document can be found thus defining the style of the HTML document.
 HTMLHead setDoRedirect(URL url)
          If this page is a redirection to another URI, set the URL to redirect to.
 HTMLHead setDoRefresh(boolean doRegresh, int secondsDelay)
          Set a refresh rate for the HTML page.
 HTMLHead setTitle(String title)
          Setter for the title of the HTML document, which is inccluded in the <head> section of the document.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTMLHeadImpl

public HTMLHeadImpl()
Method Detail

getAuthor

public String getAuthor()
Description copied from interface: HTMLHead
Getter method for the authtor(s) of the current HTML document

Specified by:
getAuthor in interface HTMLHead
Returns:
The author(s) of this HTML document, as specified in the header.

setAuthor

public HTMLHead setAuthor(String author)
Description copied from interface: HTMLHead
Specify the author(s) of the current HTML document.

Specified by:
setAuthor in interface HTMLHead
Parameters:
author - Author of HTML document.
Returns:
The current modifiable HTMLHead object.

setCssUrl

public HTMLHead setCssUrl(URL url)
Description copied from interface: HTMLHead
Set the URL where a CSS document can be found thus defining the style of the HTML document. The CSS document has to be online for the HTML document to access it.

Specified by:
setCssUrl in interface HTMLHead
Parameters:
url - URL of the CSS document.
Returns:
The current modifiable HTMLHead object.

getCssUrl

public URL getCssUrl()
Description copied from interface: HTMLHead
Returns the URL of the CSS document related to the current HTML document.

Specified by:
getCssUrl in interface HTMLHead
Returns:
URL of CSS document or null if not any.

setDoRefresh

public HTMLHead setDoRefresh(boolean doRegresh,
                             int secondsDelay)
Description copied from interface: HTMLHead
Set a refresh rate for the HTML page. The HTML document, through the browser, will refresh itseld every some time.

Specified by:
setDoRefresh in interface HTMLHead
Parameters:
doRegresh - Whether the page should refresh itself.
secondsDelay - Delay between successive refreshes.
Returns:
The current modifiable HTMLHead object.

setDoRedirect

public HTMLHead setDoRedirect(URL url)
Description copied from interface: HTMLHead
If this page is a redirection to another URI, set the URL to redirect to. If null, no redirection will happen.

Specified by:
setDoRedirect in interface HTMLHead
Parameters:
url - The URL to redirect to.
Returns:
The current modifiable HTMLHead object.

toString

public String toString()
Overrides:
toString in class Object

setTitle

public HTMLHead setTitle(String title)
Description copied from interface: HTMLHead
Setter for the title of the HTML document, which is inccluded in the <head> section of the document.

Specified by:
setTitle in interface HTMLHead
Parameters:
title - The title of the HTML document.
Returns:
The current modifiable HTMLHead object.

getTitle

public String getTitle()
Description copied from interface: HTMLHead
Getter method for the title of the HTML document.

Specified by:
getTitle in interface HTMLHead
Returns:
The title of the current HTMLHead object.


Copyright © 2011-2012 OpenTox. All Rights Reserved.