org.opentox.toxotis.core.html
Interface HTMLExpandableComponent

All Superinterfaces:
HTMLComponent
All Known Subinterfaces:
HTMLBody, HTMLContainer, HTMLForm, HTMLParagraph, HTMLTable, HTMLTag
All Known Implementing Classes:
HTMLAppendableTableImpl, HTMLBodyImpl, HTMLContainerImpl, HTMLExpandableComponentImpl, HTMLFormImpl, HTMLPageImpl, HTMLParagraphImpl, HTMLTagImpl, HTMLTextImpl

public interface HTMLExpandableComponent
extends HTMLComponent

A component that can include other HTML components in it like an HTML table. Following the structure of an HTML document where tags can be nested in any prefered way and exploiting Java's ability for a similar encapsulation, this interface defines the set of HTML entities that can be nested.

Author:
Pantelis Sopasakis, Charalampos Chomenides

Method Summary
 void addComponent(HTMLComponent component)
          Add an HTMLComponent object to the current expandable and modifiable HTML component.
 List<HTMLComponent> getComponents()
          A list of all
 

Method Detail

addComponent

void addComponent(HTMLComponent component)
Add an HTMLComponent object to the current expandable and modifiable HTML component.

Parameters:
component - The HTMLComponent to be added to the current component.

getComponents

List<HTMLComponent> getComponents()
A list of all

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.


Copyright © 2011-2012 OpenTox. All Rights Reserved.