Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
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 |
Constructor Summary | |
|
Method Summary | |
void |
|
protected void |
|
protected RenderState |
|
String |
|
String |
|
String |
|
int |
|
int |
|
java.awt.Image |
|
boolean |
|
String |
|
String |
|
Function | |
String |
|
String |
|
int |
|
int |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.lobobrowser.html.domimpl.HTMLAbstractUIElement | |
assignAttributeField , 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.js.AbstractScriptableDelegate | |
getScriptable , setScriptable |
public HTMLImageElementImpl()
public HTMLImageElementImpl(String name)
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
-
protected void assignAttributeField(String normalName, String value)
- Overrides:
- assignAttributeField in interface HTMLAbstractUIElement
protected RenderState createRenderState(RenderState prevRenderState)
- Overrides:
- createRenderState in interface HTMLElementImpl
public String getAlign()
Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
- Specified by:
- getAlign in interface HTMLImageElement
public String getAlt()
Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.01.
- Specified by:
- getAlt in interface HTMLImageElement
public String getBorder()
Width of border around image. See the border attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute wasDOMString
in DOM Level 1 HTML [DOM Level 1] .
- Specified by:
- getBorder in interface HTMLImageElement
public int getHeight()
Height of the image in pixels. See the height attribute definition in HTML 4.01. Note that the type of this attribute wasDOMString
in DOM Level 1 HTML [DOM Level 1].
- Specified by:
- getHeight in interface HTMLImageElement
Version: DOM Level 2
public int getHspace()
Horizontal space to the left and right of this image in pixels. See the hspace attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute wasDOMString
in DOM Level 1 HTML [DOM Level 1].
- Specified by:
- getHspace in interface HTMLImageElement
Version: DOM Level 2
public final java.awt.Image getImage()
public boolean getIsMap()
Use server-side image map. See the ismap attribute definition in HTML 4.01.
- Specified by:
- getIsMap in interface HTMLImageElement
public String getLongDesc()
URI [IETF RFC 2396] designating a long description of this image or frame. See the longdesc attribute definition in HTML 4.01.
- Specified by:
- getLongDesc in interface HTMLImageElement
public String getName()
The name of the element (for backwards compatibility).
- Specified by:
- getName in interface HTMLImageElement
public Function getOnload()
public String getSrc()
URI [IETF RFC 2396] designating the source of this image. See the src attribute definition in HTML 4.01.
- Specified by:
- getSrc in interface HTMLImageElement
public String getUseMap()
Use client-side image map. See the usemap attribute definition in HTML 4.01.
- Specified by:
- getUseMap in interface HTMLImageElement
public int getVspace()
Vertical space above and below this image in pixels. See the vspace attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute was "DOMString" in DOM Level 1 HTML [DOM Level 1].
- Specified by:
- getVspace in interface HTMLImageElement
Version: DOM Level 2
public int getWidth()
The width of the image in pixels. See the width attribute definition in HTML 4.01. Note that the type of this attribute wasDOMString
in DOM Level 1 HTML [DOM Level 1].
- Specified by:
- getWidth in interface HTMLImageElement
Version: DOM Level 2
public void setAlign(String align)
Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
- Specified by:
- setAlign in interface HTMLImageElement
public void setAlt(String alt)
Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.01.
- Specified by:
- setAlt in interface HTMLImageElement
public void setBorder(String border)
Width of border around image. See the border attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute wasDOMString
in DOM Level 1 HTML [DOM Level 1] .
- Specified by:
- setBorder in interface HTMLImageElement
public void setHeight(int height)
Height of the image in pixels. See the height attribute definition in HTML 4.01. Note that the type of this attribute wasDOMString
in DOM Level 1 HTML [DOM Level 1].
- Specified by:
- setHeight in interface HTMLImageElement
Version: DOM Level 2
public void setHspace(int hspace)
Horizontal space to the left and right of this image in pixels. See the hspace attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute wasDOMString
in DOM Level 1 HTML [DOM Level 1].
- Specified by:
- setHspace in interface HTMLImageElement
Version: DOM Level 2
public void setIsMap(boolean isMap)
Use server-side image map. See the ismap attribute definition in HTML 4.01.
- Specified by:
- setIsMap in interface HTMLImageElement
public void setLongDesc(String longDesc)
URI [IETF RFC 2396] designating a long description of this image or frame. See the longdesc attribute definition in HTML 4.01.
- Specified by:
- setLongDesc in interface HTMLImageElement
public void setName(String name)
The name of the element (for backwards compatibility).
- Specified by:
- setName in interface HTMLImageElement
public void setOnload(Function onload)
public void setSrc(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 HTMLImageElement
public void setUseMap(String useMap)
Use client-side image map. See the usemap attribute definition in HTML 4.01.
- Specified by:
- setUseMap in interface HTMLImageElement
public void setVspace(int vspace)
Vertical space above and below this image in pixels. See the vspace attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01. Note that the type of this attribute was "DOMString" in DOM Level 1 HTML [DOM Level 1].
- Specified by:
- setVspace in interface HTMLImageElement
Version: DOM Level 2
public void setWidth(int width)
The width of the image in pixels. See the width attribute definition in HTML 4.01. Note that the type of this attribute wasDOMString
in DOM Level 1 HTML [DOM Level 1].
- Specified by:
- setWidth in interface HTMLImageElement
Version: DOM Level 2