@Type(tagName="img", isClose=false, isInnerHTML=false) public class Image extends Element
Constructor and Description |
---|
Image() |
Modifier and Type | Method and Description |
---|---|
void |
drawAttributes() |
java.lang.String |
getAlt()
Specifies an alternate text for an image.
|
Length |
getHeight()
Specifies the height of an image.
|
java.lang.String |
getSrc()
Specifies the URL of an image
|
Length |
getWidth()
Specifies the width of an image.
|
Image |
setAlt(java.lang.String alt)
Set "alt" property and if element was draw call script at browser.
|
Image |
setHeight(Length height)
Set "height" property and if element was draw call script at browser.
|
Image |
setSrc(java.lang.String src)
Set "scr" property and if element was draw call script at browser.
|
Image |
setWidth(Length width)
Set "width" property and if element was draw call script at browser.
|
add, addAllDropTargets, addDropTarget, addListener, addStyleClass, alert, assignText, callBack, callBack, callScript, clearDropTargets, clearElements, clearElements, confirm, confirm, drawAttribute, findElement, findParent, findViewElements, fireEvent, fireEvent, fireEventOnView, fireEventOnView, firePropertyChange, focus, getApplication, getBundle, getBundleObject, getCustomDragMove, getDir, getDragDropEventsOptions, getDropTargets, getElements, getElements, getEventListeners, getId, getLang, getParent, getStyle, getStyleClass, getTabIndex, getText, getTitle, insert, isChildrenSetChanged, isContenteditable, isDraggable, isDrawn, isEscapeText, isListening, isListening, isListening, print, prompt, prompt, remove, remove, removeAttribute, removeDropTarget, removeListener, removeListener, removeParent, removeStyleClass, replace, replaceStyleClass, retrieveListeners, retrieveListeners, setChangeChildrenSet, setContenteditable, setCustomDragMove, setDir, setDragDropEventsOptions, setDraggable, setDrawn, setEscapeText, setLang, setParent, setStyle, setStyleClass, setTabIndex, setText, setTitle, transformTagName
@InitializeAttributes public void drawAttributes()
public java.lang.String getAlt()
public Image setAlt(java.lang.String alt)
alt
- the alt text to set. If is null call removeAttribute on
element at browser. If not null call set "alt" property of
element at browser.public Length getHeight()
public Image setHeight(Length height)
height
- the height to set. If is null call removeAttribute on element
at browser. If not null call set "height" property of element
at browser.public java.lang.String getSrc()
public Image setSrc(java.lang.String src)
src
- the src URL to set. If is null call removeAttribute on element
at browser. If not null call set "src" property of element at
browser.public Length getWidth()