public class Img extends NodeBase implements IActionControl
To prevent the butt-ugly border on any image placed in an A tag add the following rule to the CSS:
a img {
border: medium none;
}
| Constructor and Description |
|---|
Img()
Creates an uninitialized image.
|
Img(Class<?> base,
String src)
Creates an image with the specified source.
|
Img(String src)
Creates an image with the specified source.
|
| Modifier and Type | Method and Description |
|---|---|
ImgAlign |
getAlign() |
String |
getAlt()
Return the current "alt" string of the image.
|
int |
getImgBorder() |
String |
getImgHeight() |
String |
getImgWidth() |
String |
getSrc()
Get the current source for the image as an absolute web app path.
|
void |
internalOnClicked(ClickInfo cli)
Internal, do the proper run sequence for a clicked event.
|
boolean |
isDisabled() |
void |
setAlign(ImgAlign align) |
void |
setAlt(String alt)
Set the "alt" string of the image.
|
void |
setClicked(IClickBase<?> clicked)
Set a click handler for this node.
|
void |
setDisabled(boolean disabled)
When disabled the image renders by greying out the image.
|
void |
setImgBorder(int imgBorder) |
void |
setImgHeight(String imgHeight) |
void |
setImgWidth(String imgWidth) |
void |
setSrc(Class<?> base,
String resurl)
Set the source as a Java resource based off the given class.
|
void |
setSrc(String src)
Set the source for this image as an absolute web app path.
|
void |
visit(INodeVisitor v)
This must visit the appropriate method in the node visitor.
|
$, acceptRequestParameter, addBinding, addCssClass, addGlobalMessage, addNotificationListener, afterCreateContent, alignToLeft, alignToLeft, alignToMiddle, alignToMiddle, alignTopToBottom, alignTopToBottom, alignToRight, alignToRight, alignToTop, alignToTop, appendAfterMe, appendBeforeMe, appendCreateJS, appendJavascript, appendJQuerySelector, appendJsCustomUpdatesContributor, appendShowOverflowTextAsTitleJs, appendStatement, appendTreeErrors, beforeCreateContent, bind, bind, bindErrors, build, calcTestID, changed, changedJavascriptState, clearFocusRequested, clearGlobalMessage, clearGlobalMessage, clearGlobalMessage, clearMessage, clearValidationFailure, componentHandleWebAction, componentHandleWebDataRequest, createContent, createStatement, findComponentBundle, findParent, forceRebuild, getActualID, getAllocationTracepoint, getBindingErrors, getBindingList, getBrowserWindowSize, getCalculatedTestID, getClicked, getClientBounds, getComponentBundle, getComponentDataURL, getComponentDataURL, getComponentInfo, getComponentJSONURL, getCreateJS, getCssClass, getErrorList, getErrorLocation, getFocusID, getMessage, getOnClickJS, getOnMouseDownJS, getOnSizeAndPositionChange, getPage, getParent, getParent, getParent, getParentOfTypes, getSharedContext, getSharedContextFactory, getSpecialAttribute, getSpecialAttributeList, getTag, getTestID, getTestRepeatId, getThemedResourceRURL, getTitle, getUserObject, handleDrop, hasCssClass, hasError, hasParent, internalClearDelta, internalClearDeltaFully, internalCreateFrame, internalGetNodeCount, internalGetOldParent, internalGetParent, internalHasChangedAttributes, internalNeedClickHandler, internalOnBeforeRender, internalOnValueChanged, internalRenderJavascriptDelta, internalRenderJavascriptState, internalSetHasChangedAttributes, internalSetHasChangedAttributes, internalSetLogAllocations, internalSetTag, internalShelve, internalUnshelve, isAttached, isBuilt, isFocusable, isFocusRequested, isRendersOwnClose, isStretchHeight, lc, notify, notifyParentOrOpenerPage, onAddedToPage, onBeforeFullRender, onBeforeRender, onForceRebuild, onHeaderContributors, onRefresh, onRemoveFromPage, onShelve, onUnshelve, refresh, remove, removeBinding, removeCssClass, renderJavascriptDelta, renderJavascriptState, renderJavascriptState, replaceWith, setBrowserWindowSize, setCalculcatedId, setCalculcatedId, setClientBounds, setComponentBundle, setCssClass, setErrorLocation, setFocus, setMessage, setOnClickJS, setOnMouseDownJS, setOnSizeAndPositionChange, setOverrideTitle, setSpecialAttribute, setStretchHeight, setTestID, setTestRepeatID, setTitle, setUserObject, toStringgetBackgroundAttachment, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorderBottomColor, getBorderBottomStyle, getBorderBottomWidth, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderTopColor, getBorderTopStyle, getBorderTopWidth, getBottom, getCachedStyle, getClear, getColor, getDisplay, getFloat, getFontFamily, getFontSize, getFontSizeAdjust, getFontStyle, getFontVariant, getFontWeight, getHeight, getLeft, getLineHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOverflow, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPosition, getRight, getTextAlign, getTop, getTransform, getVerticalAlign, getVisibility, getWidth, getZIndex, internalSetDisplay, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorder, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setBottom, setBottom, setCachedStyle, setClear, setColor, setDisplay, setFloat, setFontFamily, setFontSize, setFontSizeAdjust, setFontStyle, setFontVariant, setFontWeight, setHeight, setLeft, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPosition, setRight, setRight, setTextAlign, setTop, setTop, setTransform, setVerticalAlign, setVisibility, setWidth, setZIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetTestIDpublic Img()
public Img(String src)
src - public void visit(INodeVisitor v) throws Exception
NodeBasepublic String getAlt()
public void setAlt(String alt)
alt - public String getSrc()
public void setSrc(String src)
src - public void setSrc(Class<?> base, String resurl)
base - resurl - public ImgAlign getAlign()
public void setAlign(ImgAlign align)
public int getImgBorder()
public void setImgBorder(int imgBorder)
public String getImgHeight()
public void setImgHeight(String imgHeight)
public String getImgWidth()
public void setImgWidth(String imgWidth)
public void setClicked(@Nullable IClickBase<?> clicked)
NodeBasesetClicked in class NodeBasepublic boolean isDisabled()
public void setDisabled(boolean disabled)
setDisabled in interface IActionControlCopyright © 2017 etc.to. All rights reserved.