public final class HTMLImage extends HTMLContainer implements AlternativeAttribute
alignment, alt, bgColor, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX| Constructor and Description |
|---|
HTMLImage(java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(HTMLComponent htmlArea)
Adds a component to this container
|
void |
addMouseEvent(HTMLMouseEvent me)
add a mouse event to this component
|
java.lang.String |
getAlternative()
The alternative
|
java.lang.String |
getId()
get the ID of this component
|
java.lang.String |
getToolTip() |
protected void |
iGenerate(ClientBrowser browser,
java.lang.StringBuilder buffer)
generate the raw HTML for this component.
|
void |
setAlignment(java.lang.String align) |
void |
setAlternative(java.lang.String alt)
The alternative
|
void |
setBorder(int pixels) |
void |
setHeight(int height) |
void |
setHeight(java.lang.String height) |
void |
setHorizontalSpacing(int pixels) |
void |
setId(java.lang.String id)
set the ID of this component.
|
void |
setMouseOverCursor(java.lang.String cursor) |
void |
setName(java.lang.String inName)
Sets the name of the image so that it can be used in mouse overs etc
|
void |
setToolTip(java.lang.String toolTip) |
void |
setVerticalSpacing(int pixels) |
void |
setWidth(int width) |
void |
setWidth(java.lang.String width) |
addComponent, addText, clear, findId, getComponent, getComponentCount, hasComponent, removeComponent, removeComponentaddJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, compile, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetId, iSetName, iSetStyleId, makeColorID, makeListOfEvents, monitorPage, postCompile, resetParent, setAttribute, setClassName, setHasInitFocus, setParent, setStyleProperty, setTabIndex, touchpublic void addMouseEvent(HTMLMouseEvent me)
me - The mouse eventpublic void setBorder(int pixels)
pixels - public void setName(java.lang.String inName)
inName - @CheckReturnValue @Nullable public java.lang.String getId()
getId in class HTMLComponentpublic void setId(java.lang.String id)
id - The id of the componentpublic void setMouseOverCursor(java.lang.String cursor)
cursor - public void setWidth(int width)
width - public void setWidth(java.lang.String width)
width - public void setHeight(int height)
height - public void setHeight(java.lang.String height)
height - public void setAlignment(java.lang.String align)
setAlignment in class HTMLComponentalign - public void setHorizontalSpacing(int pixels)
pixels - public void setVerticalSpacing(int pixels)
pixels - public java.lang.String getToolTip()
public void setToolTip(java.lang.String toolTip)
public void addComponent(HTMLComponent htmlArea)
HTMLContaineraddComponent in class HTMLContainerhtmlArea - protected void iGenerate(ClientBrowser browser, java.lang.StringBuilder buffer)
iGenerate in class HTMLComponentbrowser - The target browserbuffer - The generate HTMLpublic void setAlternative(java.lang.String alt)
setAlternative in interface AlternativeAttributealt - the alternativepublic java.lang.String getAlternative()
getAlternative in interface AlternativeAttributestSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.