|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class represents HTML document.
| Field Summary |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Method Summary | |
void |
addWindowEventListener(java.lang.String eventName,
org.w3c.dom.events.EventListener eventlistener)
Adds listener to the document window. |
void |
dispose()
Disposes all resources. |
HTMLElement |
getActiveElement()
Returns document active element. |
java.util.List |
getAnchors()
Returns all anchor elements in the document. |
HTMLElement |
getBody()
Returns body element. |
java.lang.String |
getCharset()
Returns the string that represents a character set used to encode the document. |
java.util.Set |
getCookies()
Returns cookies. |
java.lang.Object |
getDocumentPeer()
Returns document native peer. |
java.util.List |
getForms()
Returns all form elements in the document. |
java.util.List |
getFrames()
Returns all frame elements in the document. |
HTMLElement |
getHead()
Returns head element. |
int |
getHorisontalScrollPosition()
Returns horisontal scroll position in pixels. |
java.util.List |
getImages()
Returns all image elements in the document. |
java.util.Date |
getLastModified()
Returns last time of the document modification. |
java.util.List |
getLinks()
Returns all image and image area elements in the document. |
int |
getScrollHeight()
Return maximum scroll position for vertical scrolling. |
int |
getScrollWidth()
Return maximum scroll position for horisontal scrolling. |
java.lang.String |
getTitle()
Returns document title. |
int |
getVerticalScrollPosition()
Returns vertical scroll position in pixels. |
boolean |
isDesignMode()
Returns true if document in the design mode. |
void |
removeWindowEventListener(java.lang.String eventName,
org.w3c.dom.events.EventListener eventlistener)
Removes listener from the document window. |
void |
scrollHorisontal(int pos)
Scrolls document horisontally. |
void |
scrollVertical(int pos)
Scrolls document vertically. |
void |
setCookies(java.util.Set cookies)
Sets cookies. |
void |
setDesignMode(boolean isDesign)
Switch the document mode: from view to design and otherwise. |
void |
setFontSize(FontSize fontSize)
Sets document font size. |
| Methods inherited from interface org.w3c.dom.Document |
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Method Detail |
public java.lang.String getTitle()
public void setFontSize(FontSize fontSize)
fontSize - font sizepublic HTMLElement getActiveElement()
public void setCookies(java.util.Set cookies)
cookies - java.util.Set of Cookie objectspublic java.util.Set getCookies()
java.util.Set of Cookie objects.
public void addWindowEventListener(java.lang.String eventName,
org.w3c.dom.events.EventListener eventlistener)
eventName - event nameeventlistener - listener
public void removeWindowEventListener(java.lang.String eventName,
org.w3c.dom.events.EventListener eventlistener)
eventName - event nameeventlistener - listenerpublic HTMLElement getHead()
public HTMLElement getBody()
public java.util.List getAnchors()
public java.util.List getForms()
public java.util.List getFrames()
public java.util.List getImages()
public java.util.List getLinks()
public int getVerticalScrollPosition()
public int getHorisontalScrollPosition()
public void scrollVertical(int pos)
pos - position to scroll
java.lang.IllegalArgumentException - if position negative or more that maximum allowed scroll positionpublic void scrollHorisontal(int pos)
pos - position to scroll
java.lang.IllegalArgumentException - if position negative or more that maximum allowed scroll positionpublic int getScrollHeight()
public int getScrollWidth()
public java.util.Date getLastModified()
public java.lang.Object getDocumentPeer()
public java.lang.String getCharset()
null.
public void setDesignMode(boolean isDesign)
isDesign - if true then switch to design mode else switch to view modepublic boolean isDesignMode()
public void dispose()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||