public class WLibImage extends com.github.bordertech.wcomponents.WImage implements RelativeUrlBaseable
This will be put into WComponents core.
RELATIVE_FLAG_ATTR| Constructor and Description |
|---|
WLibImage()
Creates a WImage with no content.
|
WLibImage(com.github.bordertech.wcomponents.ImageResource image)
Creates a WImage with the given image resource.
|
WLibImage(String imageResource,
String description)
Creates a WImage with the given static content.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getImageUrl() |
boolean |
isRelativeBaseUrl() |
void |
setImageUrl(String imageUrl,
boolean relativeBaseUrl) |
void |
setRelativeBaseUrl(boolean relativeBaseUrl) |
getAlternativeText, getCacheKey, getComponentModel, getImage, getOrCreateComponentModel, getSize, getTargetId, getTargetUrl, handleRequest, newComponentModel, setAlternativeText, setCacheKey, setImage, setImageUrl, setSize, toStringaddBeanToScratchMap, doUpdateBeanValue, getBean, getBeanFromScratchMap, getBeanId, getBeanProperty, getBeanProvider, getBeanScratchMap, getBeanValue, getData, isBeanInScratchMap, isChanged, isSearchAncestors, isUseRequestScopeScratchMap, removeBeanFromScratchMap, resetData, setBean, setBeanId, setBeanProperty, setBeanProvider, setData, setSearchAncestors, updateBeanValueaddHtmlClass, addHtmlClass, addNotify, afterPaint, assertAddSupported, beforePaint, createErrorDiagnostic, createErrorDiagnostic, forward, getAccessibleText, getAttribute, getBaseUrl, getDefaultModel, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getParent, getScratchMap, getTabIndex, getTag, getTemplate, getTemplateMarkUp, getToolTip, hasNoComponentModel, hasTabIndex, initialiseComponentModel, invokeLater, invokeLaters, isDebugStructure, isDefaultState, isFlagSet, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, paintComponent, preparePaint, preparePaintComponent, removeAttribute, removeComponentModel, removeHtmlClass, removeHtmlClass, removeNotify, replaceWComponent, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFlag, setFocussed, setHidden, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showErrorIndicatorsForComponent, showWarningIndicators, showWarningIndicatorsForComponent, tidyUpUIContext, tidyUpUIContextForTree, validate, validateComponent, writeReplaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHtmlClass, addHtmlClass, forward, getAccessibleText, getAttribute, getBaseUrl, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getParent, getTabIndex, getTag, getToolTip, handleRequest, hasTabIndex, invokeLater, isDefaultState, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, preparePaint, removeAttribute, removeHtmlClass, removeHtmlClass, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFocussed, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showWarningIndicators, tidyUpUIContextForTree, validatepublic WLibImage()
public WLibImage(String imageResource, String description)
Creates a WImage with the given static content. This is provided as a convenience method for when the image is included as static content in the class path rather than in the web application's resources.
The mime type for the image is looked up from the "mimeType.*" mapping configuration parameters using the resource's file extension.
imageResource - the resource path to the image file.description - the image description.public WLibImage(com.github.bordertech.wcomponents.ImageResource image)
image - the image resourcepublic void setImageUrl(String imageUrl, boolean relativeBaseUrl)
imageUrl - the image URLrelativeBaseUrl - true if use relative to base URLpublic String getImageUrl()
getImageUrl in class com.github.bordertech.wcomponents.WImagepublic void setRelativeBaseUrl(boolean relativeBaseUrl)
setRelativeBaseUrl in interface RelativeUrlBaseablerelativeBaseUrl - true if URL is relative to base URLpublic boolean isRelativeBaseUrl()
isRelativeBaseUrl in interface RelativeUrlBaseableCopyright © 2018. All rights reserved.