public class Image extends Widget
| Constructor and Description |
|---|
Image(int w,
int h,
java.lang.String url) |
Image(int w,
int h,
java.lang.String url,
java.lang.String alternativeText) |
Image(java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getData() |
java.lang.String |
getName() |
Image |
setAlternativeText(java.lang.String text)
Sets alternative text to be displayed when there
is problem displaying the image
|
Image |
setSize(int w,
int h)
Sets size of the image
|
Image |
setURL(java.lang.String url)
Sets URL of the image
|
addTo, attach, getID, handleData, sendElementpublic Image(java.lang.String url)
url - URL of the image; must be accesible by userpublic Image(int w,
int h,
java.lang.String url)
w - width of image, left -1 when not used(will be resized or scaled)h - width of image, left -1 when not used(will be resized or scaled)url - URL of the image; must be accesible by userpublic Image(int w,
int h,
java.lang.String url,
java.lang.String alternativeText)
w - width of image, left -1 when not used(will be resized or scaled)h - width of image, left -1 when not used(will be resized or scaled)url - URL of the image; must be accesible by useralternativeText - Text to display when image is not loadedpublic Image setSize(int w, int h)
w - width of image, left -1 when not used(will be resized or scaled)h - width of image, left -1 when not used(will be resized or scaled)public Image setAlternativeText(java.lang.String text)
text - Alternative textpublic Image setURL(java.lang.String url)
url - URL of the image; must be accesible by user