public class Img extends StatefulCanvas
Stateful Images
config, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassName
Constructor and Description |
---|
Img() |
Img(com.google.gwt.core.client.JavaScriptObject jsObj) |
Img(java.lang.String src) |
Img(java.lang.String src,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName . |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName . |
protected com.google.gwt.core.client.JavaScriptObject |
create() |
java.lang.String |
getAltText()
If specified this property will be included as the
alt text for the image HMTL element. |
java.lang.String |
getEditProxyConstructor()
Default class used to construct the
EditProxy for this component when the component is
first placed into edit mode . |
java.lang.Integer |
getImageHeight()
|
java.lang.Integer |
getImageSize()
Convenience for setting the ${isc.DocUtils.linkForRef('attr:Img.imageWidth','imageWidth) and \n
imageHeight') attributes to the same value, for cases where imageType settings would normally use the image's natural size (applies to
imageType "center" and "normal" only). |
ImageStyle |
getImageType()
Indicates whether the image should be tiled/cropped, stretched, or centered when the size of this widget does
not match the size of the image.
|
java.lang.Integer |
getImageWidth()
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
Getter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
static Img |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getPrompt()
Prompt displayed in hover canvas if
showHover is true. |
java.lang.Boolean |
getShowDisabled()
Should we visibly change state when disabled?
|
java.lang.Boolean |
getShowDown()
Should we visibly change state when the mouse goes down in this object? This will impact the
styling of the component on mouse down. |
java.lang.Boolean |
getShowFocused()
Should we visibly change state when the canvas receives focus? If
StatefulCanvas.showFocusedAsOver is true ,
then "over" will be used to indicate focus. |
java.lang.Boolean |
getShowFocusedAsOver()
If
showFocused is true for this widget, should the
"over" state be used to indicate the widget as focused. |
java.lang.Boolean |
getShowImageDisabled()
Should the image be updated when disabled as described in
StatefulImages ? |
java.lang.Boolean |
getShowImageDown()
Should the image be updated on mouse down as described in
StatefulImages ? |
java.lang.Boolean |
getShowImageFocused()
Should the image be updated on focus as described in
StatefulImages ? |
java.lang.Boolean |
getShowImageFocusedAsOver()
If
src is defined as a string, and this component is configured to show focused state images , this property will cause the
"over" state image to be used to indicate focused state. |
java.lang.Boolean |
getShowImageRollOver()
Should the image be updated on rollOver as described in
StatefulImages ? |
java.lang.Boolean |
getShowRollOver()
Should we visibly change state when the mouse goes over this object?
|
java.lang.Boolean |
getShowTitle()
Determines whether any specified
title will be displayed
for this component.Applies to Image-based components only, where the title will be rendered out in a label floating over the component |
java.lang.Integer |
getSize()
Convenience for setting the ${isc.DocUtils.linkForRef('attr:StatefulCanvas.width','width) and
height') of this widget to the same value, at init time only. |
java.lang.String |
getSrc()
The base filename or stateful image configuration for the image.
|
SCStatefulImgConfig |
getSrcAsSCStatefulImgConfig()
The base filename or stateful image configuration for the image.
|
java.lang.Boolean |
getUsePNGFix()
If false, never apply the png fix needed in Internet Explorer to make png transparency work correctly.
|
void |
resetSrc()
Refresh the image being shown.
|
Img |
setAltText(java.lang.String altText)
If specified this property will be included as the
alt text for the image HMTL element. |
static void |
setDefaultProperties(Img imgProperties)
Class level method to set the default properties of this class.
|
Img |
setEditProxyConstructor(java.lang.String editProxyConstructor)
Default class used to construct the
EditProxy for this component when the component is
first placed into edit mode . |
void |
setHoverHTMLCustomizer(HoverHTMLCustomizer hoverHTMLCustomizer)
If
this.showHover is true, when the user holds the mouse over this Canvas for long enough to trigger a
hover event, a hover canvas is shown by default. |
Img |
setImageHeight(java.lang.Integer imageHeight)
|
Img |
setImageSize(java.lang.Integer imageSize)
Convenience for setting the ${isc.DocUtils.linkForRef('attr:Img.imageWidth','imageWidth) and \n
imageHeight') attributes to the same value, for cases where imageType settings would normally use the image's natural size (applies to
imageType "center" and "normal" only). |
Img |
setImageType(ImageStyle imageType)
Indicates whether the image should be tiled/cropped, stretched, or centered when the size of this widget does
not match the size of the image.
|
Img |
setImageWidth(java.lang.Integer imageWidth)
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.ImgLogicalStructure s)
Setter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
Img |
setName(java.lang.String name)
The value of this attribute is specified as the value of the 'name' attribute in the resulting HTML.
|
Img |
setPrompt(java.lang.String prompt)
Prompt displayed in hover canvas if
showHover is true. |
Img |
setShowDisabled(java.lang.Boolean showDisabled)
Should we visibly change state when disabled?
|
Img |
setShowDown(java.lang.Boolean showDown)
Should we visibly change state when the mouse goes down in this object? This will impact the
styling of the component on mouse down. |
Img |
setShowFocused(java.lang.Boolean showFocused)
Should we visibly change state when the canvas receives focus? If
StatefulCanvas.showFocusedAsOver is true ,
then "over" will be used to indicate focus. |
Img |
setShowFocusedAsOver(java.lang.Boolean showFocusedAsOver)
If
showFocused is true for this widget, should the
"over" state be used to indicate the widget as focused. |
Img |
setShowImageDisabled(java.lang.Boolean showImageDisabled)
Should the image be updated when disabled as described in
StatefulImages ? |
Img |
setShowImageDown(java.lang.Boolean showImageDown)
Should the image be updated on mouse down as described in
StatefulImages ? |
Img |
setShowImageFocused(java.lang.Boolean showImageFocused)
Should the image be updated on focus as described in
StatefulImages ? |
Img |
setShowImageFocusedAsOver(java.lang.Boolean showImageFocusedAsOver)
If
src is defined as a string, and this component is configured to show focused state images , this property will cause the
"over" state image to be used to indicate focused state. |
Img |
setShowImageRollOver(java.lang.Boolean showImageRollOver)
Should the image be updated on rollOver as described in
StatefulImages ? |
Img |
setShowRollOver(java.lang.Boolean showRollOver)
Should we visibly change state when the mouse goes over this object?
|
Img |
setShowTitle(java.lang.Boolean showTitle)
Determines whether any specified
title will be displayed
for this component.Applies to Image-based components only, where the title will be rendered out in a label floating over the component |
Img |
setSize(java.lang.Integer size)
Convenience for setting the ${isc.DocUtils.linkForRef('attr:StatefulCanvas.width','width) and
height') of this widget to the same value, at init time only. |
Img |
setSrc(SCStatefulImgConfig src)
The base filename or stateful image configuration for the image.
|
Img |
setSrc(java.lang.String src)
The base filename or stateful image configuration for the image.
|
Img |
setUsePNGFix(java.lang.Boolean usePNGFix)
If false, never apply the png fix needed in Internet Explorer to make png transparency work correctly.
|
addToRadioGroup, deselect, getActionType, getAlign, getAriaLabel, getAriaStateDefaults, getAutoFit, getBaseStyle, getHeight, getHeightAsString, getIcon, getIconHeight, getIconOrientation, getIconSize, getIconStyle, getIconWidth, getIgnoreRTL, getLabelHPad, getLabelVPad, getOverCanvas, getOverCanvasConstructor, getRadioGroup, getRedrawOnStateChange, getSelected, getShowDisabledIcon, getShowDownIcon, getShowFocusedIcon, getShowMenuOnClick, getShowOverCanvas, getShowRollOverIcon, getShowRTLIcon, getShowSelectedIcon, getState, getStateSuffix, getStyleName, getTitle, getValign, getVIconStyle, getWidth, getWidthAsString, isSelected, removeFromRadioGroup, removeFromRadioGroup, select, setActionType, setAlign, setAriaLabel, setAutoFit, setBaseStyle, setDefaultProperties, setHeight, setHeight, setIcon, setIconHeight, setIconOrientation, setIconSize, setIconStyle, setIconWidth, setIgnoreRTL, setLabelHPad, setLabelVPad, setLogicalStructure, setOverCanvasConstructor, setRadioGroup, setRedrawOnStateChange, setSelected, setShowDisabledIcon, setShowDownIcon, setShowFocusedIcon, setShowMenuOnClick, setShowOverCanvas, setShowRollOverIcon, setShowRTLIcon, setShowSelectedIcon, setState, setStyleName, setTitle, setTitleFormatter, setTitleStyle, setValign, setVIconStyle, setWidth, setWidth
addChild, addChild, addChild, addChild, addChild, addClearHandler, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addRuleContextChangedHandler, addScrolledHandler, addShowContextMenuHandler, addSnapAlignCandidate, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clearExplicitTabIndex, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsEventTarget, containsFocus, containsPoint, containsPoint, dataContextChanged, deparent, depeer, disable, enable, encloses, focus, focusAfterGroup, focusAtEnd, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAlwaysManageFocusNavigation, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideEffect, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeLayoutMode, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaHandleID, getAriaRole, getAutoMaskComponents, getAutoParent, getAutoPopulateData, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBorderRadius, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanAdaptHeight, getCanAdaptWidth, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenResizeSnapAlign, getChildrenSnapAlign, getChildrenSnapCenterAlign, getChildrenSnapEdgeAlign, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getChildTabPosition, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContextMenu, getCorrectZoomOverflow, getCursor, getDataContext, getDataPath, getDefaultHeight, getDefaultWidth, getDefiningProperty, getDefiningPropertyName, getDefiningPropertyNameOptions, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragMaxHeight, getDragMaxWidth, getDragMinHeight, getDragMinWidth, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragTargetAsString, getDragType, getDropTarget, getDropTargetAsString, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getElement, getElement, getEnableWhen, getEndLine, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFloatingScrollbars, getFormItemAutoChild, getForwardSVGeventsToObject, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupPadding, getGroupTitle, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverAutoFitMaxWidth, getHoverAutoFitMaxWidthAsString, getHoverAutoFitWidth, getHoverComponent, getHoverDelay, getHoverFocusKey, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverPersist, getHoverScreen, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlElementAsString, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsRuleScope, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeaveGroupLabelSpace, getLeavePageSpace, getLeft, getLeftAsString, getLocalId, getLocateByIDOnly, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getLocatorName, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMatchElementHeight, getMatchElementWidth, getMaxHeight, getMaxWidth, getMaxZoomOverflowError, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getName, getNativeAutoHideScrollbars, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getOverflow, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPaletteDefaults, getPanelContainer, getParentCanvas, getParentElement, getPeers, getPendingMarkerStyle, getPendingMarkerVisible, getPercentBox, getPercentSource, getPersistentMatchElement, getPointerSettings, getPointerTarget, getPointerTargetAsString, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrintStyleName, getProportionalResizeModifiers, getProportionalResizing, getReceiveScrollbarEvents, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getRuleContext, getRuleContext, getRuleScope, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowColor, getShadowDepth, getShadowHOffset, getShadowImage, getShadowOffset, getShadowSoftness, getShadowSpread, getShadowVOffset, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowPointer, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSizeMayChangeOnRedraw, getSkinImgDir, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapGridLineProperties, getSnapGridStyle, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStartLine, getTabIndex, getTestDataContext, getTestInstance, getTooltip, getTop, getTopAsString, getTopElement, getUISummary, getUpdateTabPositionOnDraw, getUpdateTabPositionOnReparent, getUseBackMask, getUseCSSShadow, getUseDragMask, getUseImageForSVG, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getValuesManagerAsString, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWhen, getVisibleWidth, getVSnapPosition, getVSnapPosition, getWorkflows, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, initComplete, intersects, isDirty, isDisabled, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, onInit, pageScrollDown, pageScrollUp, parentResized, placeNear, placeNear, placeNear, print, print, print, print, printComponents, provideRuleContext, provideRuleContext, redraw, redraw, registerFontScaledPaddingStyles, removeChild, removeChild, removePeer, removePeer, removeRuleContext, removeSnapAlignCandidate, resizeAutoChildAttributes, resizeBy, resizeControls, resizeControlsTo, resizeFonts, resizeFonts, resizeFonts, resizeFontsTo, resizeIcons, resizePadding, resizePadding, resizeTo, resizeTo, revealChild, revealChild, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAllowExternalFilters, setAlwaysManageFocusNavigation, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideEffect, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeLayoutMode, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoHeight, setAutoMaskComponents, setAutoParent, setAutoPopulateData, setAutoResizeAutoChildAttributes, setAutoResizeIcons, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorderRadius, setBottom, setCanAcceptDrop, setCanAdaptHeight, setCanAdaptWidth, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanHover, setCanSelectText, setChildren, setChildrenResizeSnapAlign, setChildrenSnapAlign, setChildrenSnapCenterAlign, setChildrenSnapEdgeAlign, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContextMenu, setCorrectZoomOverflow, setCursor, setDataContext, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultShowCustomScrollbars, setDefaultWidth, setDefiningProperty, setDefiningPropertyNameOptions, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragMaxHeight, setDragMaxWidth, setDragMinHeight, setDragMinWidth, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragTarget, setDragType, setDropTarget, setDropTarget, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setElement, setEnableWhen, setEndLine, setExtraSpace, setFacetId, setFloatingScrollbars, setForwardSVGeventsToObject, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupPadding, setGroupTitle, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverAutoFitMaxWidth, setHoverAutoFitMaxWidth, setHoverAutoFitWidth, setHoverDelay, setHoverFocusKey, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverPersist, setHoverScreen, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsRuleScope, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeaveGroupLabelSpace, setLeavePageSpace, setLeft, setLeft, setLocateByIDOnly, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLocatorName, setLocatorParent, setLocatorParent, setLogicalStructure, setMargin, setMatchElement, setMatchElementHeight, setMatchElementWidth, setMaxHeight, setMaxWidth, setMaxZoomOverflowError, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setNativeAutoHideScrollbars, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setOverflow, setPadding, setPageLeft, setPageTop, setPanelContainer, setParentCanvas, setParentElement, setPeers, setPendingMarkerStyle, setPendingMarkerVisible, setPercentBox, setPercentSource, setPersistentMatchElement, setPointerSettings, setPointerTarget, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrintStyleName, setProportionalResizeModifiers, setProportionalResizing, setReceiveScrollbarEvents, setRect, setRect, setRedrawOnResize, setRelativeTabPosition, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setRuleScope, setScrollbarConstructor, setScrollbarSize, setShadowColor, setShadowDepth, setShadowHOffset, setShadowImage, setShadowOffset, setShadowSoftness, setShadowSpread, setShadowVOffset, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowPointer, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSizeMayChangeOnRedraw, setSkinImgDir, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapGridLineProperties, setSnapGridStyle, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStartLine, setTabIndex, setTestDataContext, setTooltip, setTop, setTop, setUpdateTabPositionOnDraw, setUpdateTabPositionOnReparent, setUseBackMask, setUseCSSShadow, setUseDragMask, setUseImageForSVG, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setValuesManager, setVisibility, setVisible, setVisibleWhen, setWidth, setWidth100, setWorkflows, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPendingMarker, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, startDebuggingOverflow, stopDebuggingOverflow, updateChildTabPosition, updateChildTabPositions, updateEditNode, updateHover, updateHover, updateShadow, updateTabPositionForDraw, visibleAtPoint, willAcceptDrop
addDrawHandler, addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, clearDynamicProperty, completeCreation, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hasDynamicProperty, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isDrawn, isFactoryCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDefaultProperties, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toString
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent
public Img()
public Img(com.google.gwt.core.client.JavaScriptObject jsObj)
public Img(java.lang.String src)
public Img(java.lang.String src, int width, int height)
public static Img getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public static void changeAutoChildDefaults(java.lang.String autoChildName, Canvas defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- Canvas defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
public static void changeAutoChildDefaults(java.lang.String autoChildName, FormItem defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- FormItem defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
protected com.google.gwt.core.client.JavaScriptObject create()
create
in class StatefulCanvas
public Img setAltText(java.lang.String altText)
alt
text for the image HMTL element. This is useful for
improving application accessibility. altText
and hover prompt / tooltip behavior: Note that some
browsers, including Internet Explorer 9, show a native hover tooltip containing the img tag's alt
attribute. Developers should not rely on this behavior to show the user a hover prompt - instead the prompt
attribute should be used.
To set alt text and ensure a
hover prompt shows up in all browsers, developers may set prompt
and
altText
to the same value. If both these attributes are set, the standard Smart GWT prompt behavior will
show a hover prompt in most browsers, but will be suppressed for browsers where a native tooltip is shown for altText.
Note that setting altText
and prompt
to different values is not recommended - the prompt value
will be ignored in favor of the altText in this case.
altText
- New altText value. Default value is nullImg
instance, for chaining setter callsAccessibility / Section 508 compliance
public java.lang.String getAltText()
alt
text for the image HMTL element. This is useful for
improving application accessibility. altText
and hover prompt / tooltip behavior: Note that some
browsers, including Internet Explorer 9, show a native hover tooltip containing the img tag's alt
attribute. Developers should not rely on this behavior to show the user a hover prompt - instead the prompt
attribute should be used.
To set alt text and ensure a
hover prompt shows up in all browsers, developers may set prompt
and
altText
to the same value. If both these attributes are set, the standard Smart GWT prompt behavior will
show a hover prompt in most browsers, but will be suppressed for browsers where a native tooltip is shown for altText.
Note that setting altText
and prompt
to different values is not recommended - the prompt value
will be ignored in favor of the altText in this case.
Accessibility / Section 508 compliance
public Img setEditProxyConstructor(java.lang.String editProxyConstructor) throws java.lang.IllegalStateException
EditProxy
for this component when the component is
first placed into edit mode
.setEditProxyConstructor
in class StatefulCanvas
editProxyConstructor
- New editProxyConstructor value. Default value is "ImgEditProxy"Img
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdSCClassName
public java.lang.String getEditProxyConstructor()
EditProxy
for this component when the component is
first placed into edit mode
.getEditProxyConstructor
in class StatefulCanvas
SCClassName
public Img setImageHeight(java.lang.Integer imageHeight) throws java.lang.IllegalStateException
imageType
settings that would
normally use the image's natural size (applies to imageType
"center" and "normal" only).imageHeight
- New imageHeight value. Default value is nullImg
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdAppearance overview and related methods
public java.lang.Integer getImageHeight()
imageType
settings that would
normally use the image's natural size (applies to imageType
"center" and "normal" only).Appearance overview and related methods
public Img setImageSize(java.lang.Integer imageSize) throws java.lang.IllegalStateException
imageHeight')
attributes to the same value, for cases where imageType
settings would normally use the image's natural size (applies to
imageType
"center" and "normal" only).imageSize
- New imageSize value. Default value is nullImg
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdAppearance overview and related methods
public java.lang.Integer getImageSize()
imageHeight')
attributes to the same value, for cases where imageType
settings would normally use the image's natural size (applies to
imageType
"center" and "normal" only).Appearance overview and related methods
public Img setImageType(ImageStyle imageType)
usePNGFix
to false. See ImageStyle for further details.
imageType
- new style of image rendering. Default value is Img.STRETCHImg
instance, for chaining setter callsAppearance overview and related methods
public ImageStyle getImageType()
usePNGFix
to false. See ImageStyle for further details.Appearance overview and related methods
public Img setImageWidth(java.lang.Integer imageWidth) throws java.lang.IllegalStateException
imageType
settings that would
normally use the image's natural size (applies to imageType
"center" and "normal" only).imageWidth
- New imageWidth value. Default value is nullImg
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdAppearance overview and related methods
public java.lang.Integer getImageWidth()
imageType
settings that would
normally use the image's natural size (applies to imageType
"center" and "normal" only).Appearance overview and related methods
public Img setName(java.lang.String name) throws java.lang.IllegalStateException
Note: this attribute is ignored if the imageType is set to "tile"
Note : This is an advanced setting
setName
in class Canvas
name
- New name value. Default value is "main"Img
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdBaseWidget.setID(java.lang.String)
,
Identifier
public Img setPrompt(java.lang.String prompt)
showHover
is true.setPrompt
in class Canvas
prompt
- New prompt value. Default value is nullImg
instance, for chaining setter callsHTMLString
,
Hovers / Tooltips Examplepublic java.lang.String getPrompt()
showHover
is true.getPrompt
in class Canvas
HTMLString
,
Hovers / Tooltips Examplepublic Img setShowDisabled(java.lang.Boolean showDisabled)
This will impact the styling
of the component when disabled. It may also impact the
image being displayed
- see also showImageDisabled
.
setShowDisabled
in class StatefulCanvas
showDisabled
- New showDisabled value. Default value is trueImg
instance, for chaining setter callsState overview and related methods
public java.lang.Boolean getShowDisabled()
This will impact the styling
of the component when disabled. It may also impact the
image being displayed
- see also showImageDisabled
.
getShowDisabled
in class StatefulCanvas
State overview and related methods
public Img setShowDown(java.lang.Boolean showDown)
styling
of the component on mouse down. It may also impact the
image being displayed
- see also showImageDown
.setShowDown
in class StatefulCanvas
showDown
- New showDown value. Default value is falseImg
instance, for chaining setter callsState overview and related methods
public java.lang.Boolean getShowDown()
styling
of the component on mouse down. It may also impact the
image being displayed
- see also showImageDown
.getShowDown
in class StatefulCanvas
State overview and related methods
public Img setShowFocused(java.lang.Boolean showFocused)
StatefulCanvas.showFocusedAsOver
is true
,
then "over"
will be used to indicate focus. Otherwise a separate "focused"
state
will be used. This will impact the styling
of the
component on focus. It may also impact the image being displayed
- see
also showImageFocused
.
setShowFocused
in class StatefulCanvas
showFocused
- New showFocused value. Default value is falseImg
instance, for chaining setter callsState overview and related methods
public java.lang.Boolean getShowFocused()
StatefulCanvas.showFocusedAsOver
is true
,
then "over"
will be used to indicate focus. Otherwise a separate "focused"
state
will be used. This will impact the styling
of the
component on focus. It may also impact the image being displayed
- see
also showImageFocused
.
getShowFocused
in class StatefulCanvas
State overview and related methods
public Img setShowFocusedAsOver(java.lang.Boolean showFocusedAsOver)
showFocused
is true for this widget, should the
"over"
state be used to indicate the widget as focused. If set to false, a separate "focused"
state will be used. This property effects the css styling for the focused state.
If src
is specified as a string it will also cause the "Over" media to be displayed
to indicate focus, unless explicitly overridden by showImageFocusedAsOver
. Note that this has no impact on the image to be displayed if src
is specified as a SCStatefulImgConfig
.
setShowFocusedAsOver
in class StatefulCanvas
showFocusedAsOver
- New showFocusedAsOver value. Default value is trueImg
instance, for chaining setter callsState overview and related methods
public java.lang.Boolean getShowFocusedAsOver()
showFocused
is true for this widget, should the
"over"
state be used to indicate the widget as focused. If set to false, a separate "focused"
state will be used. This property effects the css styling for the focused state.
If src
is specified as a string it will also cause the "Over" media to be displayed
to indicate focus, unless explicitly overridden by showImageFocusedAsOver
. Note that this has no impact on the image to be displayed if src
is specified as a SCStatefulImgConfig
.
getShowFocusedAsOver
in class StatefulCanvas
State overview and related methods
public Img setShowImageDisabled(java.lang.Boolean showImageDisabled)
StatefulImages
? If not
explicitly set, behavior is as follows:
If src
is specified as a
string, showDisabled
will be used to determine whether to show
a disabled image.
If src
is specified as a SCStatefulImgConfig
, the appropriate SCStatefulImgConfig.Disabled
state image will be displayed
if defined.
showImageDisabled
- New showImageDisabled value. Default value is nullImg
instance, for chaining setter callsState overview and related methods
public java.lang.Boolean getShowImageDisabled()
StatefulImages
? If not
explicitly set, behavior is as follows:
If src
is specified as a
string, showDisabled
will be used to determine whether to show
a disabled image.
If src
is specified as a SCStatefulImgConfig
, the appropriate SCStatefulImgConfig.Disabled
state image will be displayed
if defined.
State overview and related methods
public Img setShowImageDown(java.lang.Boolean showImageDown)
StatefulImages
? If not
explicitly set, behavior is as follows:
If src
is specified as a
string, showDown
will be used to determine whether to show a mouse
down image.
If src
is specified as a SCStatefulImgConfig
, the appropriate SCStatefulImgConfig.Down
state image will be displayed if
defined.
showImageDown
- New showImageDown value. Default value is nullImg
instance, for chaining setter callsState overview and related methods
public java.lang.Boolean getShowImageDown()
StatefulImages
? If not
explicitly set, behavior is as follows:
If src
is specified as a
string, showDown
will be used to determine whether to show a mouse
down image.
If src
is specified as a SCStatefulImgConfig
, the appropriate SCStatefulImgConfig.Down
state image will be displayed if
defined.
State overview and related methods
public Img setShowImageFocused(java.lang.Boolean showImageFocused)
StatefulImages
? If not
explicitly set, behavior is as follows:
If src
is specified as a
string, showFocused
will be used to determine whether to show a
focused image.
If src
is specified as a SCStatefulImgConfig
, the appropriate SCStatefulImgConfig.Over
state image will be displayed if
defined.
Note that if src
is defined as a string, the "Over" media
may be used to indicate a focused state. See showFocusedAsOver
and showImageFocusedAsOver
.
This is not the case for components with src
defined as a SCStatefulImgConfig
configuration.
showImageFocused
- New showImageFocused value. Default value is nullImg
instance, for chaining setter callsState overview and related methods
public java.lang.Boolean getShowImageFocused()
StatefulImages
? If not
explicitly set, behavior is as follows:
If src
is specified as a
string, showFocused
will be used to determine whether to show a
focused image.
If src
is specified as a SCStatefulImgConfig
, the appropriate SCStatefulImgConfig.Over
state image will be displayed if
defined.
Note that if src
is defined as a string, the "Over" media
may be used to indicate a focused state. See showFocusedAsOver
and showImageFocusedAsOver
.
This is not the case for components with src
defined as a SCStatefulImgConfig
configuration.
State overview and related methods
public Img setShowImageFocusedAsOver(java.lang.Boolean showImageFocusedAsOver)
src
is defined as a string, and this component is configured to show focused state images
, this property will cause the
"over"
state image to be used to indicate focused state. (If unset, showFocusedAsOver
will be consulted instead). Note that this
has no impact on the image to be displayed if src
is specified as a
SCStatefulImgConfig
.
showImageFocusedAsOver
- New showImageFocusedAsOver value. Default value is nullImg
instance, for chaining setter callsState overview and related methods
public java.lang.Boolean getShowImageFocusedAsOver()
src
is defined as a string, and this component is configured to show focused state images
, this property will cause the
"over"
state image to be used to indicate focused state. (If unset, showFocusedAsOver
will be consulted instead). Note that this
has no impact on the image to be displayed if src
is specified as a
SCStatefulImgConfig
.
State overview and related methods
public Img setShowImageRollOver(java.lang.Boolean showImageRollOver)
StatefulImages
? If not
explicitly set, behavior is as follows:
If src
is specified as a
string, showRollOver
will be used to determine whether to show
a roll-over image.
If src
is specified as a SCStatefulImgConfig
, the appropriate SCStatefulImgConfig.Over
state image will be displayed if
defined.
showImageRollOver
- New showImageRollOver value. Default value is nullImg
instance, for chaining setter callsState overview and related methods
public java.lang.Boolean getShowImageRollOver()
StatefulImages
? If not
explicitly set, behavior is as follows:
If src
is specified as a
string, showRollOver
will be used to determine whether to show
a roll-over image.
If src
is specified as a SCStatefulImgConfig
, the appropriate SCStatefulImgConfig.Over
state image will be displayed if
defined.
State overview and related methods
public Img setShowRollOver(java.lang.Boolean showRollOver)
This will impact the styling
of the component on roll over. It may also impact the
image being displayed
- see also showImageRollOver
.
setShowRollOver
in class StatefulCanvas
showRollOver
- New showRollOver value. Default value is falseImg
instance, for chaining setter callsState overview and related methods
public java.lang.Boolean getShowRollOver()
This will impact the styling
of the component on roll over. It may also impact the
image being displayed
- see also showImageRollOver
.
getShowRollOver
in class StatefulCanvas
State overview and related methods
public Img setShowTitle(java.lang.Boolean showTitle)
title
will be displayed
for this component.Note : This is an advanced setting
showTitle
- New showTitle value. Default value is falseImg
instance, for chaining setter callspublic java.lang.Boolean getShowTitle()
title
will be displayed
for this component.public Img setSize(java.lang.Integer size) throws java.lang.IllegalStateException
height')
of this widget to the same value, at init time only.
See imageSize
, or imageWidth
/ imageHeight
, to control the size of the image itself for imageType
settings that would normally use the image's natural size ("center" or "normal"), or where the image has no
natural size, as with SVG Symbols
.size
- New size value. Default value is nullImg
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdSizing overview and related methods
public java.lang.Integer getSize()
height')
of this widget to the same value, at init time only.
See imageSize
, or imageWidth
/ imageHeight
, to control the size of the image itself for imageType
settings that would normally use the image's natural size ("center" or "normal"), or where the image has no
natural size, as with SVG Symbols
.Sizing overview and related methods
public Img setSrc(java.lang.String src)
state
of the component changes, the image displayed will be
updated as described in StatefulImages
.
Does nothing if the src has not changed - if src
has not changed but other state has changed such that the image needs updating, call resetSrc()
instead.
src
- new URL for the image. Default value is "[SKINIMG]blank.gif"Img
instance, for chaining setter callsSCImgURL
,
Appearance overview and related methods
public java.lang.String getSrc()
state
of the component changes, the image displayed will be
updated as described in StatefulImages
.SCImgURL
,
Appearance overview and related methods
public Img setSrc(SCStatefulImgConfig src)
state
of the component changes, the image displayed will be
updated as described in StatefulImages
.
Does nothing if the src has not changed - if src
has not changed but other state has changed such that the image needs updating, call resetSrc()
instead.
src
- new URL for the image. Default value is "[SKINIMG]blank.gif"Img
instance, for chaining setter callsSCImgURL
,
Appearance overview and related methods
public SCStatefulImgConfig getSrcAsSCStatefulImgConfig()
state
of the component changes, the image displayed will be
updated as described in StatefulImages
.SCImgURL
,
Appearance overview and related methods
public Img setUsePNGFix(java.lang.Boolean usePNGFix) throws java.lang.IllegalStateException
usePNGFix
- New usePNGFix value. Default value is trueImg
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getUsePNGFix()
public void resetSrc()
src
attribute has not
changed, but other state that affects the image URL (such as being selected) has changed.Appearance overview and related methods
public static void setDefaultProperties(Img imgProperties)
Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.
imgProperties
- properties that should be used as new defaults when instances of this class are createdSGWTProperties
public void setHoverHTMLCustomizer(HoverHTMLCustomizer hoverHTMLCustomizer)
this.showHover
is true, when the user holds the mouse over this Canvas for long enough to trigger a
hover event, a hover canvas is shown by default. This method returns the contents of that hover canvas. Overridden
from Canvas:
If prompt
is specified, and altText
is unset, default implementation is unchanged - the prompt text will
be displayed in the hover.
If altText
and prompt
are set this method will return null to suppress the standard hover
behavior in browsers where the alt attribute on an img tag causes a native tooltip to appear, such as Internet Explorer.
On other browsers the altText value will be returned.
hoverHTMLCustomizer
- the customizer to execute.public com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.ImgLogicalStructure s)
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.getLogicalStructure
in interface LogicalStructure
getLogicalStructure
in class StatefulCanvas