| org.zkoss.zul.impl.XulElement org.zkoss.zul.Image
All known Subclasses: org.zkoss.zul.Imagemap, org.zkoss.zul.Captcha,
Image | public class Image extends XulElement (Code) | | An image.
Note: IE 5.5/6 (not 7) has a bug that failed to render PNG with
alpha transparency. See http://homepage.ntlworld.com/bobosola/index.htm for details.
Thus, if you want to display such image, you have to use the alphafix mold.
<image mold="alphafix"/>
author: tomyeh |
getAlign | public String getAlign()(Code) | | Returns the alignment.
Default: null (use browser default).
|
getBorder | public String getBorder()(Code) | | Returns the width of the border.
Default: null (use browser default).
|
getHspace | public String getHspace()(Code) | | Returns number of pixels of extra space to the left and right
side of the image.
Default: null (use browser default).
|
getSrc | public String getSrc()(Code) | | Returns the source URI of the image.
Default: null.
|
getVspace | public String getVspace()(Code) | | Returns number of pixels of extra space to the top and bottom
side of the image.
Default: null (use browser default).
|
isChildable | public boolean isChildable()(Code) | | Default: not childable.
|
setAlign | public void setAlign(String align)(Code) | | Sets the alignment: one of top, texttop, middle, absmiddle,
bottom, absbottom, baseline, left, right and center.
|
setBorder | public void setBorder(String border)(Code) | | Sets the width of the border.
|
setContent | public void setContent(org.zkoss.image.Image image)(Code) | | Sets the content directly.
Default: null.
Parameters: image - the image to display. If not null, it has higherpriority than Image.getSrc. |
setHspace | public void setHspace(String hspace)(Code) | | Sets number of pixels of extra space to the left and right
side of the image.
|
setSrc | public void setSrc(String src)(Code) | | Sets the source URI of the image.
If
Image.setContent is ever called with non-null,
it takes heigher priority than this method.
Parameters: src - the URI of the image source |
setVspace | public void setVspace(String vspace)(Code) | | Sets number of pixels of extra space to the top and bottom
side of the image.
|
|
|