Class AjxImg
Object
|
+--Object
|
+--AjxImg
- class
AjxImg
- extends Object
This static class provides basic image support by using CSS and background
images rather than <img> tags.
Defined in AjxImg.js
Author: Conrad Damon , Ross Dargahi
_VIEWPORT_ID
<static> Object _VIEWPORT_ID
BACKGROUND
<static> Object BACKGROUND
HORIZ_BORDER
<static> Object HORIZ_BORDER
ICON
<static> Object ICON
VERT_BORDER
<static> Object VERT_BORDER
AjxImg
AjxImg()
Author: Conrad Damon , Ross Dargahi
getClassForImage
<static> Object getClassForImage(imageName)
getImageClass
<static> Object getImageClass(parentEl)
getImageElement
<static> Object getImageElement(parentEl)
getImageHtml
<static> void getImageHtml(imageName, styleStr, attrStr, wrapInTable)
Gets the "image" as an HTML string.
Parameters:
styleStr
- additional style info e.g. "display:inline"
attrStr
- additional attributes eg. "id=X748"
getParentElement
<static> Object getParentElement(imageEl)
setImage
<static> void setImage(parentEl, imageName, style, useParentEl)
This method will set the image for parentEl. parentEl should
only contain this image and no other children
Parameters:
parentEl
- The parent element for the image
imageName
- The name of the image. The CSS entry for the image will be "Img".
useParenEl
- If true will use the parent element as the root for the image and will not create an intermediate DIV
Documentation generated by
JSDoc on Thu Apr 27 13:58:39 2006