public abstract class SgmlPage extends DomNode implements Page
HtmlPage and XmlPage.DomNode.ChildIterator, DomNode.DescendantElementsIteratorATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED, TEXT_NODE| Constructor and Description |
|---|
SgmlPage(WebResponse webResponse,
WebWindow webWindow)
Create an instance of SgmlPage
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Clean up this page.
|
DomDocumentFragment |
createDomDocumentFragment()
Creates an empty
DomDocumentFragment object. |
WebWindow |
getEnclosingWindow()
Return the window that this page is sitting inside.
|
Page |
getNativePage()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns the Page interface, should be removed, and use DomNode.getPage() instead. |
String |
getNodeName()
Get the name for the current node.
|
short |
getNodeType()
Get the type of the current node.
|
WebClient |
getWebClient()
Return the WebClient that originally loaded this page
|
WebResponse |
getWebResponse()
Return the web response that was originally used to create this page.
|
void |
initialize()
Initialize this page.
|
void |
setEnclosingWindow(WebWindow window)
Set the window that contains this page.
|
addDomChangeListener, addPropertyChangeListener, appendChild, appendDomChild, asText, asXml, cloneDomNode, cloneNode, fireNodeAdded, fireNodeDeleted, firePropertyChange, getAllHtmlChildElements, getByXPath, getChildIterator, getChildrenAsText, getEndColumnNumber, getEndLineNumber, getEventHandler, getFirstByXPath, getFirstChild, getFirstDomChild, getLastChild, getLastDomChild, getLocalName, getLog, getNamespaceURI, getNextDomSibling, getNextSibling, getNodeValue, getPage, getParentDomNode, getParentNode, getPrefix, getPreviousDomSibling, getPreviousSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, hasAttributes, insertBefore, isAncestorOf, isRenderedVisible, isTrimmedText, notifyIncorrectness, onAddedToPage, onAllChildrenAddedToPage, printChildrenAsXml, printXml, reduceWhitespace, remove, removeAllChildren, removeDomChangeListener, removeEventHandler, removePropertyChangeListener, replace, setEventHandler, setEventHandler, setNextSibling, setNodeValue, setParentNode, setPrefix, setPreviousSibling, setReadyState, setScriptObjectpublic SgmlPage(WebResponse webResponse, WebWindow webWindow)
webResponse - The web response that was used to create this pagewebWindow - The window that this page is being loaded into.public void cleanUp()
throws IOException
cleanUp in interface PageIOException - If an IO problem occurs.public WebResponse getWebResponse()
getWebResponse in interface Pagepublic void initialize()
throws IOException
initialize in interface PageIOException - If an IO problem occurs.public String getNodeName()
getNodeName in class DomNodepublic short getNodeType()
getNodeType in class DomNodepublic WebWindow getEnclosingWindow()
getEnclosingWindow in interface Pagepublic void setEnclosingWindow(WebWindow window)
window - The new frame or null if this page is being removed from a frame.public WebClient getWebClient()
public DomDocumentFragment createDomDocumentFragment()
DomDocumentFragment object.DomDocumentFragment.public Page getNativePage()
DomNode.getPage() instead.getNativePage in class DomNodeCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.