|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.goerntkai.scot.app.document.SimpleComponent
Represents a HTML element that may contain attributes as well as a text content.
Constructor Summary | |
SimpleComponent(java.lang.String tagName)
This constructor stores the name of the HTML tag. |
|
SimpleComponent(java.lang.String tagName,
java.lang.String aContent)
This constructor stores the name of the HTML tag. |
Method Summary | |
void |
setAttribute(java.lang.String aName,
java.lang.String value)
Sets an attribute of a given name to the given value. |
org.w3c.dom.Node |
toHTML(org.w3c.dom.Document doc)
Returns the HTML representation of the element. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleComponent(java.lang.String tagName)
tagName
- the name of the elementpublic SimpleComponent(java.lang.String tagName, java.lang.String aContent)
tagName
- the name of the elementaContent
- the content of the elementMethod Detail |
public void setAttribute(java.lang.String aName, java.lang.String value)
aName
- the attributes namevalue
- the attributes valuepublic org.w3c.dom.Node toHTML(org.w3c.dom.Document doc)
toHTML
in interface ISCoTComponent
doc
- the parent document
ISCoTComponent.toHTML(org.w3c.dom.Document)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |