Class Img
- All Implemented Interfaces:
HasAttachHandlers
,HasHandlers
,EventListener
,HasVisibility
,IsWidget
,LogicalStructure
,HasClearHandlers
,HasClickHandlers
,HasDoubleClickHandlers
,HasDragMoveHandlers
,HasDragRepositionMoveHandlers
,HasDragRepositionStartHandlers
,HasDragRepositionStopHandlers
,HasDragResizeMoveHandlers
,HasDragResizeStartHandlers
,HasDragResizeStopHandlers
,HasDragStartHandlers
,HasDragStopHandlers
,HasDropHandlers
,HasDropMoveHandlers
,HasDropOutHandlers
,HasDropOverHandlers
,HasFocusChangedHandlers
,HasHoverHandlers
,HasHoverHiddenHandlers
,HasKeyDownHandlers
,HasKeyPressHandlers
,HasMouseDownHandlers
,HasMouseMoveHandlers
,HasMouseOutHandlers
,HasMouseOverHandlers
,HasMouseStillDownHandlers
,HasMouseUpHandlers
,HasMouseWheelHandlers
,HasMovedHandlers
,HasParentMovedHandlers
,HasResizedHandlers
,HasRightMouseDownHandlers
,HasRuleContextChangedHandlers
,HasScrolledHandlers
,HasShowContextMenuHandlers
,HasVisibilityChangedHandlers
- Direct Known Subclasses:
HeaderControl
,ImgButton
,ImgSplitbar
,ToolStripSeparator
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
-
Field Summary
Fields inherited from class com.smartgwt.client.widgets.BaseWidget
config, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassName
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
changeAutoChildDefaults
(String autoChildName, Canvas defaults) Changes the defaults for Canvas AutoChildren namedautoChildName
.static void
changeAutoChildDefaults
(String autoChildName, FormItem defaults) Changes the defaults for FormItem AutoChildren namedautoChildName
.protected JavaScriptObject
create()
If specified this property will be included as thealt
text for the image HMTL element.Default class used to construct theEditProxy
for this component when the component isfirst placed into edit mode
.Convenience for setting the ${isc.DocUtils.linkForRef('attr:Img.imageWidth','imageWidth) and \nimageHeight')
attributes to the same value, for cases whereimageType
settings would normally use the image's natural size (applies toimageType
"center" and "normal" only).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.Getter implementing theLogicalStructure
interface, which supports Eclipse's logical structure debugging facility.static Img
getOrCreateRef
(JavaScriptObject jsObj) Prompt displayed in hover canvas ifshowHover
is true.Should we visibly change state when disabled?Should we visibly change state when the mouse goes down in this object? This will impact thestyling
of the component on mouse down.Should we visibly change state when the canvas receives focus? IfStatefulCanvas.showFocusedAsOver
istrue
, then"over"
will be used to indicate focus.IfshowFocused
is true for this widget, should the"over"
state be used to indicate the widget as focused.Should the image be updated when disabled as described inStatefulImages
?Should the image be updated on mouse down as described inStatefulImages
?Should the image be updated on focus as described inStatefulImages
?Ifsrc
is defined as a string, and this component is configured toshow focused state images
, this property will cause the"over"
state image to be used to indicate focused state.Should the image be updated on rollOver as described inStatefulImages
?Should we visibly change state when the mouse goes over this object?Determines whether any specifiedtitle
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 componentgetSize()
Convenience for setting the ${isc.DocUtils.linkForRef('attr:StatefulCanvas.width','width) andheight')
of this widget to the same value, at init time only.getSrc()
The base filename or stateful image configuration for the image.The base filename or stateful image configuration for the image.If false, never apply the png fix needed in Internet Explorer to make png transparency work correctly.void
resetSrc()
Refresh the image being shown.setAltText
(String altText) If specified this property will be included as thealt
text for the image HMTL element.static void
setDefaultProperties
(Img imgProperties) Class level method to set the default properties of this class.setEditProxyConstructor
(String editProxyConstructor) Default class used to construct theEditProxy
for this component when the component isfirst placed into edit mode
.void
setHoverHTMLCustomizer
(HoverHTMLCustomizer hoverHTMLCustomizer) Ifthis.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.setImageHeight
(Integer imageHeight) setImageSize
(Integer imageSize) Convenience for setting the ${isc.DocUtils.linkForRef('attr:Img.imageWidth','imageWidth) and \nimageHeight')
attributes to the same value, for cases whereimageType
settings would normally use the image's natural size (applies toimageType
"center" and "normal" only).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.setImageWidth
(Integer imageWidth) Setter implementing theLogicalStructure
interface, which supports Eclipse's logical structure debugging facility.The value of this attribute is specified as the value of the 'name' attribute in the resulting HTML.Prompt displayed in hover canvas ifshowHover
is true.setShowDisabled
(Boolean showDisabled) Should we visibly change state when disabled?setShowDown
(Boolean showDown) Should we visibly change state when the mouse goes down in this object? This will impact thestyling
of the component on mouse down.setShowFocused
(Boolean showFocused) Should we visibly change state when the canvas receives focus? IfStatefulCanvas.showFocusedAsOver
istrue
, then"over"
will be used to indicate focus.setShowFocusedAsOver
(Boolean showFocusedAsOver) IfshowFocused
is true for this widget, should the"over"
state be used to indicate the widget as focused.setShowImageDisabled
(Boolean showImageDisabled) Should the image be updated when disabled as described inStatefulImages
?setShowImageDown
(Boolean showImageDown) Should the image be updated on mouse down as described inStatefulImages
?setShowImageFocused
(Boolean showImageFocused) Should the image be updated on focus as described inStatefulImages
?setShowImageFocusedAsOver
(Boolean showImageFocusedAsOver) Ifsrc
is defined as a string, and this component is configured toshow focused state images
, this property will cause the"over"
state image to be used to indicate focused state.setShowImageRollOver
(Boolean showImageRollOver) Should the image be updated on rollOver as described inStatefulImages
?setShowRollOver
(Boolean showRollOver) Should we visibly change state when the mouse goes over this object?setShowTitle
(Boolean showTitle) Determines whether any specifiedtitle
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 componentConvenience for setting the ${isc.DocUtils.linkForRef('attr:StatefulCanvas.width','width) andheight')
of this widget to the same value, at init time only.The base filename or stateful image configuration for the image.The base filename or stateful image configuration for the image.setUsePNGFix
(Boolean usePNGFix) If false, never apply the png fix needed in Internet Explorer to make png transparency work correctly.Methods inherited from class com.smartgwt.client.widgets.StatefulCanvas
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
Methods inherited from class com.smartgwt.client.widgets.Canvas
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
Methods inherited from class com.smartgwt.client.widgets.BaseWidget
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
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Constructor Details
-
Img
public Img() -
Img
-
Img
-
Img
-
-
Method Details
-
getOrCreateRef
-
changeAutoChildDefaults
Changes the defaults for Canvas AutoChildren namedautoChildName
.- Parameters:
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, seeSGWTProperties
.- See Also:
-
changeAutoChildDefaults
Changes the defaults for FormItem AutoChildren namedautoChildName
.- Parameters:
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, seeSGWTProperties
.- See Also:
-
create
- Overrides:
create
in classStatefulCanvas
-
setAltText
If specified this property will be included as thealt
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'salt
attribute. Developers should not rely on this behavior to show the user a hover prompt - instead theprompt
attribute should be used.
To set alt text and ensure a hover prompt shows up in all browsers, developers may setprompt
andaltText
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 settingaltText
andprompt
to different values is not recommended - the prompt value will be ignored in favor of the altText in this case.- Parameters:
altText
- New altText value. Default value is null- Returns:
Img
instance, for chaining setter calls- See Also:
-
getAltText
If specified this property will be included as thealt
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'salt
attribute. Developers should not rely on this behavior to show the user a hover prompt - instead theprompt
attribute should be used.
To set alt text and ensure a hover prompt shows up in all browsers, developers may setprompt
andaltText
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 settingaltText
andprompt
to different values is not recommended - the prompt value will be ignored in favor of the altText in this case.- Returns:
- Current altText value. Default value is null
- See Also:
-
setEditProxyConstructor
Default class used to construct theEditProxy
for this component when the component isfirst placed into edit mode
.- Overrides:
setEditProxyConstructor
in classStatefulCanvas
- Parameters:
editProxyConstructor
- New editProxyConstructor value. Default value is "ImgEditProxy"- Returns:
Img
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getEditProxyConstructor
Default class used to construct theEditProxy
for this component when the component isfirst placed into edit mode
.- Overrides:
getEditProxyConstructor
in classStatefulCanvas
- Returns:
- Current editProxyConstructor value. Default value is "ImgEditProxy"
- See Also:
-
setImageHeight
Explicit size for the image, forimageType
settings that would normally use the image's natural size (applies toimageType
"center" and "normal" only).- Parameters:
imageHeight
- New imageHeight value. Default value is null- Returns:
Img
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getImageHeight
Explicit size for the image, forimageType
settings that would normally use the image's natural size (applies toimageType
"center" and "normal" only).- Returns:
- Current imageHeight value. Default value is null
- See Also:
-
setImageSize
Convenience for setting the ${isc.DocUtils.linkForRef('attr:Img.imageWidth','imageWidth) and \nimageHeight')
attributes to the same value, for cases whereimageType
settings would normally use the image's natural size (applies toimageType
"center" and "normal" only).- Parameters:
imageSize
- New imageSize value. Default value is null- Returns:
Img
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getImageSize
Convenience for setting the ${isc.DocUtils.linkForRef('attr:Img.imageWidth','imageWidth) and \nimageHeight')
attributes to the same value, for cases whereimageType
settings would normally use the image's natural size (applies toimageType
"center" and "normal" only).- Returns:
- Current imageSize value. Default value is null
- See Also:
-
setImageType
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. CENTER shows the image in it's natural size, but can't do so while the transparency fix is active for IE. The transparency fix can be manually disabled by settingusePNGFix
to false. See ImageStyle for further details.
If this method is called after the component has been drawn/initialized: Change the style of image rendering.- Parameters:
imageType
- new style of image rendering. Default value is Img.STRETCH- Returns:
Img
instance, for chaining setter calls- See Also:
-
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. CENTER shows the image in it's natural size, but can't do so while the transparency fix is active for IE. The transparency fix can be manually disabled by settingusePNGFix
to false. See ImageStyle for further details.- Returns:
- Current imageType value. Default value is Img.STRETCH
- See Also:
-
setImageWidth
Explicit size for the image, forimageType
settings that would normally use the image's natural size (applies toimageType
"center" and "normal" only).- Parameters:
imageWidth
- New imageWidth value. Default value is null- Returns:
Img
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getImageWidth
Explicit size for the image, forimageType
settings that would normally use the image's natural size (applies toimageType
"center" and "normal" only).- Returns:
- Current imageWidth value. Default value is null
- See Also:
-
setName
The value of this attribute is specified as the value of the 'name' attribute in the resulting HTML.Note: this attribute is ignored if the imageType is set to "tile"
Note : This is an advanced setting
- Overrides:
setName
in classCanvas
- Parameters:
name
- New name value. Default value is "main"- Returns:
Img
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
setPrompt
Prompt displayed in hover canvas ifshowHover
is true. -
getPrompt
Prompt displayed in hover canvas ifshowHover
is true. -
setShowDisabled
Should we visibly change state when disabled?This will impact the
styling
of the component when disabled. It may also impact theimage being displayed
- see alsoshowImageDisabled
.- Overrides:
setShowDisabled
in classStatefulCanvas
- Parameters:
showDisabled
- New showDisabled value. Default value is true- Returns:
Img
instance, for chaining setter calls- See Also:
-
getShowDisabled
Should we visibly change state when disabled?This will impact the
styling
of the component when disabled. It may also impact theimage being displayed
- see alsoshowImageDisabled
.- Overrides:
getShowDisabled
in classStatefulCanvas
- Returns:
- Current showDisabled value. Default value is true
- See Also:
-
setShowDown
Should we visibly change state when the mouse goes down in this object? This will impact thestyling
of the component on mouse down. It may also impact theimage being displayed
- see alsoshowImageDown
.- Overrides:
setShowDown
in classStatefulCanvas
- Parameters:
showDown
- New showDown value. Default value is false- Returns:
Img
instance, for chaining setter calls- See Also:
-
getShowDown
Should we visibly change state when the mouse goes down in this object? This will impact thestyling
of the component on mouse down. It may also impact theimage being displayed
- see alsoshowImageDown
.- Overrides:
getShowDown
in classStatefulCanvas
- Returns:
- Current showDown value. Default value is false
- See Also:
-
setShowFocused
Should we visibly change state when the canvas receives focus? IfStatefulCanvas.showFocusedAsOver
istrue
, 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 theimage being displayed
- see alsoshowImageFocused
.- Overrides:
setShowFocused
in classStatefulCanvas
- Parameters:
showFocused
- New showFocused value. Default value is false- Returns:
Img
instance, for chaining setter calls- See Also:
-
getShowFocused
Should we visibly change state when the canvas receives focus? IfStatefulCanvas.showFocusedAsOver
istrue
, 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 theimage being displayed
- see alsoshowImageFocused
.- Overrides:
getShowFocused
in classStatefulCanvas
- Returns:
- Current showFocused value. Default value is false
- See Also:
-
setShowFocusedAsOver
IfshowFocused
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.
Ifsrc
is specified as a string it will also cause the "Over" media to be displayed to indicate focus, unless explicitly overridden byshowImageFocusedAsOver
. Note that this has no impact on the image to be displayed ifsrc
is specified as aSCStatefulImgConfig
.- Overrides:
setShowFocusedAsOver
in classStatefulCanvas
- Parameters:
showFocusedAsOver
- New showFocusedAsOver value. Default value is true- Returns:
Img
instance, for chaining setter calls- See Also:
-
getShowFocusedAsOver
IfshowFocused
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.
Ifsrc
is specified as a string it will also cause the "Over" media to be displayed to indicate focus, unless explicitly overridden byshowImageFocusedAsOver
. Note that this has no impact on the image to be displayed ifsrc
is specified as aSCStatefulImgConfig
.- Overrides:
getShowFocusedAsOver
in classStatefulCanvas
- Returns:
- Current showFocusedAsOver value. Default value is true
- See Also:
-
setShowImageDisabled
Should the image be updated when disabled as described inStatefulImages
?If not explicitly set, behavior is as follows:
Ifsrc
is specified as a string,showDisabled
will be used to determine whether to show a disabled image.
Ifsrc
is specified as aSCStatefulImgConfig
, the appropriateSCStatefulImgConfig.Disabled
state image will be displayed if defined.- Parameters:
showImageDisabled
- New showImageDisabled value. Default value is null- Returns:
Img
instance, for chaining setter calls- See Also:
-
getShowImageDisabled
Should the image be updated when disabled as described inStatefulImages
?If not explicitly set, behavior is as follows:
Ifsrc
is specified as a string,showDisabled
will be used to determine whether to show a disabled image.
Ifsrc
is specified as aSCStatefulImgConfig
, the appropriateSCStatefulImgConfig.Disabled
state image will be displayed if defined.- Returns:
- Current showImageDisabled value. Default value is null
- See Also:
-
setShowImageDown
Should the image be updated on mouse down as described inStatefulImages
?If not explicitly set, behavior is as follows:
Ifsrc
is specified as a string,showDown
will be used to determine whether to show a mouse down image.
Ifsrc
is specified as aSCStatefulImgConfig
, the appropriateSCStatefulImgConfig.Down
state image will be displayed if defined.- Parameters:
showImageDown
- New showImageDown value. Default value is null- Returns:
Img
instance, for chaining setter calls- See Also:
-
getShowImageDown
Should the image be updated on mouse down as described inStatefulImages
?If not explicitly set, behavior is as follows:
Ifsrc
is specified as a string,showDown
will be used to determine whether to show a mouse down image.
Ifsrc
is specified as aSCStatefulImgConfig
, the appropriateSCStatefulImgConfig.Down
state image will be displayed if defined.- Returns:
- Current showImageDown value. Default value is null
- See Also:
-
setShowImageFocused
Should the image be updated on focus as described inStatefulImages
?If not explicitly set, behavior is as follows:
Ifsrc
is specified as a string,showFocused
will be used to determine whether to show a focused image.
Ifsrc
is specified as aSCStatefulImgConfig
, the appropriateSCStatefulImgConfig.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. SeeshowFocusedAsOver
andshowImageFocusedAsOver
.
This is not the case for components withsrc
defined as aSCStatefulImgConfig
configuration.- Parameters:
showImageFocused
- New showImageFocused value. Default value is null- Returns:
Img
instance, for chaining setter calls- See Also:
-
getShowImageFocused
Should the image be updated on focus as described inStatefulImages
?If not explicitly set, behavior is as follows:
Ifsrc
is specified as a string,showFocused
will be used to determine whether to show a focused image.
Ifsrc
is specified as aSCStatefulImgConfig
, the appropriateSCStatefulImgConfig.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. SeeshowFocusedAsOver
andshowImageFocusedAsOver
.
This is not the case for components withsrc
defined as aSCStatefulImgConfig
configuration.- Returns:
- Current showImageFocused value. Default value is null
- See Also:
-
setShowImageFocusedAsOver
Ifsrc
is defined as a string, and this component is configured toshow 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 aSCStatefulImgConfig
.- Parameters:
showImageFocusedAsOver
- New showImageFocusedAsOver value. Default value is null- Returns:
Img
instance, for chaining setter calls- See Also:
-
getShowImageFocusedAsOver
Ifsrc
is defined as a string, and this component is configured toshow 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 aSCStatefulImgConfig
.- Returns:
- Current showImageFocusedAsOver value. Default value is null
- See Also:
-
setShowImageRollOver
Should the image be updated on rollOver as described inStatefulImages
?If not explicitly set, behavior is as follows:
Ifsrc
is specified as a string,showRollOver
will be used to determine whether to show a roll-over image.
Ifsrc
is specified as aSCStatefulImgConfig
, the appropriateSCStatefulImgConfig.Over
state image will be displayed if defined.- Parameters:
showImageRollOver
- New showImageRollOver value. Default value is null- Returns:
Img
instance, for chaining setter calls- See Also:
-
getShowImageRollOver
Should the image be updated on rollOver as described inStatefulImages
?If not explicitly set, behavior is as follows:
Ifsrc
is specified as a string,showRollOver
will be used to determine whether to show a roll-over image.
Ifsrc
is specified as aSCStatefulImgConfig
, the appropriateSCStatefulImgConfig.Over
state image will be displayed if defined.- Returns:
- Current showImageRollOver value. Default value is null
- See Also:
-
setShowRollOver
Should we visibly change state when the mouse goes over this object?This will impact the
styling
of the component on roll over. It may also impact theimage being displayed
- see alsoshowImageRollOver
.- Overrides:
setShowRollOver
in classStatefulCanvas
- Parameters:
showRollOver
- New showRollOver value. Default value is false- Returns:
Img
instance, for chaining setter calls- See Also:
-
getShowRollOver
Should we visibly change state when the mouse goes over this object?This will impact the
styling
of the component on roll over. It may also impact theimage being displayed
- see alsoshowImageRollOver
.- Overrides:
getShowRollOver
in classStatefulCanvas
- Returns:
- Current showRollOver value. Default value is false
- See Also:
-
setShowTitle
Determines whether any specifiedtitle
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 componentNote : This is an advanced setting
- Parameters:
showTitle
- New showTitle value. Default value is false- Returns:
Img
instance, for chaining setter calls
-
getShowTitle
Determines whether any specifiedtitle
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- Returns:
- Current showTitle value. Default value is false
-
setSize
Convenience for setting the ${isc.DocUtils.linkForRef('attr:StatefulCanvas.width','width) andheight')
of this widget to the same value, at init time only. SeeimageSize
, orimageWidth
/imageHeight
, to control the size of the image itself forimageType
settings that would normally use the image's natural size ("center" or "normal"), or where the image has no natural size, as withSVG Symbols
.- Parameters:
size
- New size value. Default value is null- Returns:
Img
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getSize
Convenience for setting the ${isc.DocUtils.linkForRef('attr:StatefulCanvas.width','width) andheight')
of this widget to the same value, at init time only. SeeimageSize
, orimageWidth
/imageHeight
, to control the size of the image itself forimageType
settings that would normally use the image's natural size ("center" or "normal"), or where the image has no natural size, as withSVG Symbols
.- Returns:
- Current size value. Default value is null
- See Also:
-
setSrc
The base filename or stateful image configuration for the image. Note that as thestate
of the component changes, the image displayed will be updated as described inStatefulImages
.
If this method is called after the component has been drawn/initialized: Changes the URL of this image and redraws it.Does nothing if the src has not changed - if
src
has not changed but other state has changed such that the image needs updating, callresetSrc()
instead.- Parameters:
src
- new URL for the image. Default value is "[SKINIMG]blank.gif"- Returns:
Img
instance, for chaining setter calls- See Also:
-
getSrc
The base filename or stateful image configuration for the image. Note that as thestate
of the component changes, the image displayed will be updated as described inStatefulImages
.- Returns:
- Current src value. Default value is "[SKINIMG]blank.gif"
- See Also:
-
setSrc
The base filename or stateful image configuration for the image. Note that as thestate
of the component changes, the image displayed will be updated as described inStatefulImages
.
If this method is called after the component has been drawn/initialized: Changes the URL of this image and redraws it.Does nothing if the src has not changed - if
src
has not changed but other state has changed such that the image needs updating, callresetSrc()
instead.- Parameters:
src
- new URL for the image. Default value is "[SKINIMG]blank.gif"- Returns:
Img
instance, for chaining setter calls- See Also:
-
getSrcAsSCStatefulImgConfig
The base filename or stateful image configuration for the image. Note that as thestate
of the component changes, the image displayed will be updated as described inStatefulImages
.- Returns:
- Current src value. Default value is "[SKINIMG]blank.gif"
- See Also:
-
setUsePNGFix
If false, never apply the png fix needed in Internet Explorer to make png transparency work correctly.- Parameters:
usePNGFix
- New usePNGFix value. Default value is true- Returns:
Img
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getUsePNGFix
If false, never apply the png fix needed in Internet Explorer to make png transparency work correctly.- Returns:
- Current usePNGFix value. Default value is true
-
resetSrc
public void resetSrc()Refresh the image being shown. Call this when thesrc
attribute has not changed, but other state that affects the image URL (such as being selected) has changed.- See Also:
-
setDefaultProperties
Class level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties set on the SmartGWT class instance passed to this function before its underlying SmartClient JS object was created. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.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.
- Parameters:
imgProperties
- properties that should be used as new defaults when instances of this class are created- See Also:
-
setHoverHTMLCustomizer
Ifthis.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:
Ifprompt
is specified, andaltText
is unset, default implementation is unchanged - the prompt text will be displayed in the hover.
IfaltText
andprompt
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.- Parameters:
hoverHTMLCustomizer
- the customizer to execute.
-
setLogicalStructure
Setter implementing theLogicalStructure
interface, which supports Eclipse's logical structure debugging facility. -
getLogicalStructure
Getter implementing theLogicalStructure
interface, which supports Eclipse's logical structure debugging facility.- Specified by:
getLogicalStructure
in interfaceLogicalStructure
- Overrides:
getLogicalStructure
in classStatefulCanvas
-