org.lobobrowser.html.domimpl
Class HTMLImageElementImpl

java.lang.Object
  extended by org.lobobrowser.js.AbstractScriptableDelegate
      extended by org.lobobrowser.html.domimpl.NodeImpl
          extended by org.lobobrowser.html.domimpl.ElementImpl
              extended by org.lobobrowser.html.domimpl.HTMLElementImpl
                  extended by org.lobobrowser.html.domimpl.HTMLAbstractUIElement
                      extended by org.lobobrowser.html.domimpl.HTMLImageElementImpl
All Implemented Interfaces:
ModelNode, org.lobobrowser.html.style.CSS2PropertiesContext, org.lobobrowser.js.ScriptableDelegate, org.w3c.dom.Element, org.w3c.dom.html2.HTMLElement, org.w3c.dom.html2.HTMLImageElement, org.w3c.dom.Node

public class HTMLImageElementImpl
extends HTMLAbstractUIElement
implements org.w3c.dom.html2.HTMLImageElement


Field Summary
 
Fields inherited from class org.lobobrowser.html.domimpl.ElementImpl
attributes
 
Fields inherited from class org.lobobrowser.html.domimpl.NodeImpl
document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
HTMLImageElementImpl()
           
HTMLImageElementImpl(java.lang.String name)
           
 
Method Summary
 void addImageListener(ImageListener listener)
          Adds a listener of image loading events.
protected  void assignAttributeField(java.lang.String normalName, java.lang.String value)
           
protected  org.lobobrowser.html.style.RenderState createRenderState(org.lobobrowser.html.style.RenderState prevRenderState)
           
 java.lang.String getAlign()
           
 java.lang.String getAlt()
           
 java.lang.String getBorder()
           
 int getHeight()
           
 int getHspace()
           
 java.awt.Image getImage()
           
 boolean getIsMap()
           
 java.lang.String getLongDesc()
           
 java.lang.String getName()
           
 org.mozilla.javascript.Function getOnload()
           
 java.lang.String getSrc()
           
 java.lang.String getUseMap()
           
 int getVspace()
           
 int getWidth()
           
 void removeImageListener(ImageListener listener)
           
 void setAlign(java.lang.String align)
           
 void setAlt(java.lang.String alt)
           
 void setBorder(java.lang.String border)
           
 void setHeight(int height)
           
 void setHspace(int hspace)
           
 void setIsMap(boolean isMap)
           
 void setLongDesc(java.lang.String longDesc)
           
 void setName(java.lang.String name)
           
 void setOnload(org.mozilla.javascript.Function onload)
           
 void setSrc(java.lang.String src)
          Sets the image URI and starts to load the image.
 void setUseMap(java.lang.String useMap)
           
 void setVspace(int vspace)
           
 void setWidth(int width)
           
 
Methods inherited from class org.lobobrowser.html.domimpl.HTMLAbstractUIElement
blur, focus, getEventFunction, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup
 
Methods inherited from class org.lobobrowser.html.domimpl.HTMLElementImpl
addStyleSheetDeclarations, appendOuterHTMLImpl, createDefaultStyleSheet, findStyleDeclarations, forgetLocalStyle, forgetStyle, getAncestor, getAncestorForJavaClass, getAncestorWithClass, getAncestorWithId, getAttributeAsBoolean, getAttributeAsInt, getCharset, getClassName, getComputedStyle, getCssInputSourceForDecl, getCurrentStyle, getDocumentBaseURI, getFormInputs, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOuterHTML, getParent, getParentStyle, getParentWithClass, getParentWithId, getPreceedingSibling, getPreceedingSiblingElement, getPreceedingSiblingWithClass, getPreceedingSiblingWithId, getPseudoNames, getStyle, informInvalid, informInvalidAttibute, setCharset, setClassName, setCurrentStyle, setInnerHTML, setMouseOver, setStyle, toString, warn, warn
 
Methods inherited from class org.lobobrowser.html.domimpl.ElementImpl
createSimilarNode, equalAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDir, getElementsByTagName, getElementsByTagNameNS, getId, getLang, getLocalName, getNodeName, getNodeType, getNodeValue, getRawInnerText, getSchemaTypeInfo, getTagName, getTitle, hasAttribute, hasAttributeNS, hasAttributes, htmlEncodeChildText, isTagName, normalizeAttributeName, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeImpl, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDir, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerText, setLang, setNodeValue, setTitle
 
Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl
appendChild, appendInnerHTMLImpl, appendInnerTextImpl, cloneNode, compareDocumentPosition, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getInnerHTML, getInnerText, getLastChild, getNamespaceURI, getNextSibling, getNodeList, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getTextContent, getUINode, getUserAgentContext, getUserData, hasChildNodes, informDocumentInvalid, informExternalScriptLoading, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, informStructureInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setPrefix, setTextContent, setUINode, setUserData
 
Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate
getScriptable, setScriptable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.html2.HTMLElement
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.lobobrowser.html.style.CSS2PropertiesContext
informLayoutInvalid, informLookInvalid, informPositionInvalid, informSizeInvalid
 

Constructor Detail

HTMLImageElementImpl

public HTMLImageElementImpl()

HTMLImageElementImpl

public HTMLImageElementImpl(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface org.w3c.dom.html2.HTMLImageElement

setName

public void setName(java.lang.String name)
Specified by:
setName in interface org.w3c.dom.html2.HTMLImageElement

getAlign

public java.lang.String getAlign()
Specified by:
getAlign in interface org.w3c.dom.html2.HTMLImageElement

setAlign

public void setAlign(java.lang.String align)
Specified by:
setAlign in interface org.w3c.dom.html2.HTMLImageElement

getAlt

public java.lang.String getAlt()
Specified by:
getAlt in interface org.w3c.dom.html2.HTMLImageElement

setAlt

public void setAlt(java.lang.String alt)
Specified by:
setAlt in interface org.w3c.dom.html2.HTMLImageElement

getBorder

public java.lang.String getBorder()
Specified by:
getBorder in interface org.w3c.dom.html2.HTMLImageElement

setBorder

public void setBorder(java.lang.String border)
Specified by:
setBorder in interface org.w3c.dom.html2.HTMLImageElement

getHeight

public int getHeight()
Specified by:
getHeight in interface org.w3c.dom.html2.HTMLImageElement

setHeight

public void setHeight(int height)
Specified by:
setHeight in interface org.w3c.dom.html2.HTMLImageElement

getHspace

public int getHspace()
Specified by:
getHspace in interface org.w3c.dom.html2.HTMLImageElement

setHspace

public void setHspace(int hspace)
Specified by:
setHspace in interface org.w3c.dom.html2.HTMLImageElement

getIsMap

public boolean getIsMap()
Specified by:
getIsMap in interface org.w3c.dom.html2.HTMLImageElement

setIsMap

public void setIsMap(boolean isMap)
Specified by:
setIsMap in interface org.w3c.dom.html2.HTMLImageElement

getLongDesc

public java.lang.String getLongDesc()
Specified by:
getLongDesc in interface org.w3c.dom.html2.HTMLImageElement

setLongDesc

public void setLongDesc(java.lang.String longDesc)
Specified by:
setLongDesc in interface org.w3c.dom.html2.HTMLImageElement

getSrc

public java.lang.String getSrc()
Specified by:
getSrc in interface org.w3c.dom.html2.HTMLImageElement

setSrc

public void setSrc(java.lang.String src)
Sets the image URI and starts to load the image. Note that an HtmlRendererContext should be available to the HTML document for images to be loaded.

Specified by:
setSrc in interface org.w3c.dom.html2.HTMLImageElement

getUseMap

public java.lang.String getUseMap()
Specified by:
getUseMap in interface org.w3c.dom.html2.HTMLImageElement

setUseMap

public void setUseMap(java.lang.String useMap)
Specified by:
setUseMap in interface org.w3c.dom.html2.HTMLImageElement

getVspace

public int getVspace()
Specified by:
getVspace in interface org.w3c.dom.html2.HTMLImageElement

setVspace

public void setVspace(int vspace)
Specified by:
setVspace in interface org.w3c.dom.html2.HTMLImageElement

getWidth

public int getWidth()
Specified by:
getWidth in interface org.w3c.dom.html2.HTMLImageElement

setWidth

public void setWidth(int width)
Specified by:
setWidth in interface org.w3c.dom.html2.HTMLImageElement

assignAttributeField

protected void assignAttributeField(java.lang.String normalName,
                                    java.lang.String value)
Overrides:
assignAttributeField in class HTMLAbstractUIElement

getOnload

public org.mozilla.javascript.Function getOnload()

setOnload

public void setOnload(org.mozilla.javascript.Function onload)

getImage

public final java.awt.Image getImage()

addImageListener

public void addImageListener(ImageListener listener)
Adds a listener of image loading events. The listener gets called right away if there's already an image.

Parameters:
listener -

removeImageListener

public void removeImageListener(ImageListener listener)

createRenderState

protected org.lobobrowser.html.style.RenderState createRenderState(org.lobobrowser.html.style.RenderState prevRenderState)
Overrides:
createRenderState in class HTMLElementImpl


SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Cobra Project Home]