public interface IElementFactory
| Modifier and Type | Method and Description |
|---|---|
HtmlElement |
createElement(HtmlPage page,
String tagName,
Attributes attributes)
create an element according to this factory's specification.
|
HtmlElement |
createElementNS(HtmlPage page,
String namespaceURI,
String qualifiedName,
Attributes attributes)
create an element according to this factory's specification.
|
HtmlElement createElement(HtmlPage page, String tagName, Attributes attributes)
page - the enclosing page for the new element. Note that the element is not yet added
into the DOM tree.tagName - the tag name. Most factories will be responsible for a specific tag, but this
parameter is passed in for factories that don't follow this ruleattributes - the attributes encountered during XML/HTML parsing. Possibly null
if no attributes specifiedHtmlElement createElementNS(HtmlPage page, String namespaceURI, String qualifiedName, Attributes attributes)
page - the enclosing page for the new element. Note that the element is not yet added
into the DOM tree.namespaceURI - the URI that identifies an XML namespace.qualifiedName - The qualified name of the element type to instantiateattributes - the attributes encountered during XML/HTML parsing. Possibly null
if no attributes specifiedCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.