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

java.lang.Object
  extended by org.opentox.toxotis.core.html.impl.HTMLFormImpl
All Implemented Interfaces:
HTMLComponent, HTMLExpandableComponent, HTMLForm

public class HTMLFormImpl
extends Object
implements HTMLForm

An HTML Form is a container of the form:

  <form action="URI" method="GET/POST">
   Some content goes here (e.g. HTML Inputs)....
  </form>

Author:
Pantelis Sopasakis

Constructor Summary
HTMLFormImpl()
           
 
Method Summary
 void addComponent(HTMLComponent component)
          Add an HTMLComponent object to the current expandable and modifiable HTML component.
 String getActionUrl()
           
 List<HTMLComponent> getComponents()
          A list of all
 String getMethod()
           
 HTMLForm setActionUrl(String actionUrl)
           
 HTMLForm setMethod(String method)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTMLFormImpl

public HTMLFormImpl()
Method Detail

setActionUrl

public HTMLForm setActionUrl(String actionUrl)
Specified by:
setActionUrl in interface HTMLForm

getComponents

public List<HTMLComponent> getComponents()
Description copied from interface: HTMLExpandableComponent
A list of all

Specified by:
getComponents in interface HTMLExpandableComponent
Returns:
A list of all HTMLComponent object wrapped with the current object. Returns null if the component does not include such a list and an empty list if the currect object has been initialized but no elements have been added in the list.

setMethod

public HTMLForm setMethod(String method)
Specified by:
setMethod in interface HTMLForm

getMethod

public String getMethod()
Specified by:
getMethod in interface HTMLForm

getActionUrl

public String getActionUrl()
Specified by:
getActionUrl in interface HTMLForm

addComponent

public void addComponent(HTMLComponent component)
Description copied from interface: HTMLExpandableComponent
Add an HTMLComponent object to the current expandable and modifiable HTML component.

Specified by:
addComponent in interface HTMLExpandableComponent
Parameters:
component - The HTMLComponent to be added to the current component.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2012 OpenTox. All Rights Reserved.