public class Image extends ContentElementBase
<IMG> tagINITIAL_ORDER_VALUE| Constructor and Description |
|---|
Image() |
| Modifier and Type | Method and Description |
|---|---|
void |
completeValidation(ValidationTrace tracer)
Validates different requirements of component compiling a series of reports detailing information on errors
found in the component.
|
protected <T> void |
copyProperties(T component)
Copies the properties over for the copy method
|
String |
getAltText()
Provides alternate information for the image element
|
Header |
getCaptionHeader()
Retrieves the
Header component used to display the caption for this image |
String |
getCaptionHeaderText()
Retrieves the caption text for this image
|
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through
the lifecycle
|
Message |
getCutlineMessage()
Gets the
Message component used to display the cutline. |
String |
getCutlineText()
Retrieves the cutline text for this image
|
String |
getHeight()
Returns the height style attribute of this image
|
String |
getSource()
returns the URL of this image
|
String |
getWidth()
Returns the width style attribute of the image
|
boolean |
isCaptionHeaderPlacementAboveImage()
Specifies whether the image caption is to be displayed above or below the image
|
void |
performApplyModel(View view,
Object model,
Component parent)
Performs the following steps
Set the caption header text on the caption header
Set the cutline text on the cutline message
|
void |
performInitialization(View view,
Object model)
The following initialization is performed:
Initializes the cutline message and caption header components if necessary
|
void |
setAltText(String altText)
Sets the alternate text property for this image
|
void |
setCaptionHeader(Header captionHeader)
Sets the Header used to display the caption for this image
|
void |
setCaptionHeaderPlacementAboveImage(boolean captionHeaderPlacementAboveImage)
Sets whether the image caption is to be displayed above or below the image
|
void |
setCaptionHeaderText(String captionHeaderText)
Sets the text displayed as of the caption for the picture
|
void |
setCutlineMessage(Message cutlineMessage)
Sets the Message component used to display the cutline for this image
|
void |
setCutlineText(String cutlineText)
Sets the cutline text that describes this image
|
void |
setHeight(String height)
Sets the height style attribute of the image.
|
void |
setSource(String source)
Sets the URL of this image
|
void |
setWidth(String width)
Sets the width style attribute of the image
|
getComponentTypeNameaddCellCssClass, addDataAttribute, addDataAttributeIfNonEmpty, addStyleClass, appendToStyle, copy, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAlign, getBaseId, getCellCssClasses, getCellStyle, getCellStyleClassesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentPrototypes, getComponentSecurity, getComponentSecurityClass, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getDataAttributes, getEventHandlerScript, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getLibraryCssClasses, getMethodToCallOnRefresh, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRowSpan, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefreshedByAction, isRender, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, isSkipInTabOrder, performFinalize, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setBaseId, setCellCssClasses, setCellStyle, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContext, setCssClasses, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setForceSessionPersistence, setHidden, setId, setLibraryCssClasses, setMethodToCallOnRefresh, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRowSpan, setSelfRendered, setSkipInTabOrder, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValigngetExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraphgetComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellCssClass, addDataAttribute, addStyleClass, appendToStyle, copy, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAlign, getBaseId, getCellCssClasses, getCellStyle, getCellWidth, getColSpan, getComponentModifiers, getComponentPrototypes, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getDataAttributes, getEventHandlerScript, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getLibraryCssClasses, getOrder, getPostRenderContent, getPreRenderContent, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshTimer, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRowSpan, getSimpleDataAttributes, getStyle, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, isDisableSessionPersistence, isDisclosedByAction, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefreshedByAction, isRender, isResetDataOnRefresh, isRetrieveViaAjax, isSelfRendered, performFinalize, pushAllToContext, pushObjectToContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setBaseId, setCellCssClasses, setCellStyle, setCellWidth, setColSpan, setComponentModifiers, setComponentSecurity, setConditionalRefresh, setContext, setCssClasses, setDataAttributes, setDisableSessionPersistence, setDisclosedByAction, setForceSessionPersistence, setHidden, setId, setLibraryCssClasses, setOrder, setPostRenderContent, setPreRenderContent, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshTimer, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRetrieveViaAjax, setRowSpan, setSelfRendered, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValigngetExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraphgetComponentCode, getNamespaceCodegetOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScriptpublic Image()
public void performInitialization(View view, Object model)
performInitialization in interface ComponentperformInitialization in class ComponentBaseview - - view instance in which the component belongsmodel - - object instance containing the view dataComponentBase.performInitialization(org.kuali.rice.krad.uif.view.View,
java.lang.Object)public void performApplyModel(View view, Object model, Component parent)
performApplyModel in interface ComponentperformApplyModel in class ComponentBaseview - - view instance to which the component belongsmodel - - Top level object containing the data (could be the form or a
top level business object, dto)Component.performFinalize(org.kuali.rice.krad.uif.view.View, java.lang.Object,
org.kuali.rice.krad.uif.component.Component)public List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService for the various lifecycle callbacks
getComponentsForLifecycle in interface ComponentgetComponentsForLifecycle in class ComponentBaseComponentBase.getComponentsForLifecycle()public void setSource(String source)
source - the URL of this imagepublic String getAltText()
The altText property specifies an alternate text for an image. It is displayed by the browser
if the image cannot be displayed. This is especially important for accessibility, because screen
readers can't understand images, but rather will read aloud the alternative text assigned to them.
Some best practices:
public void setAltText(String altText)
altText - the alternative information about the imagepublic String getHeight()
The default unit of measure is pixels.
It is good practice to specify both the height and width attributes for an image.
If these attributes are set, the space required for the image is reserved when the page is loaded.
However, without these attributes, the browser does not know the size of the image. The effect will
be that the page layout will change while the images load.
public void setHeight(String height)
height - the height of the imagepublic String getWidth()
The default unit of measure is pixels.
It is good practice to specify both the height and width attributes for an image.
If these attributes are set, the space required for the image is reserved when the page is loaded.
However, without these attributes, the browser does not know the size of the image. The effect will
be that the page layout will change while the images load.
getWidth in interface ComponentgetWidth in class ComponentBaseComponent.getWidth()public void setWidth(String width)
setWidth in interface ComponentsetWidth in class ComponentBasewidth - the width of this imageComponent.setWidth(java.lang.String)public String getCaptionHeaderText()
The caption text is a headline for the picture. It may be displayed either above or below the picture.
public void setCaptionHeaderText(String captionHeaderText)
captionHeaderText - the caption textpublic Header getCaptionHeader()
Header component used to display the caption for this imagepublic void setCaptionHeader(Header captionHeader)
captionHeader - header component which wraps the caption textpublic String getCutlineText()
The cutline text give more detailed information about the picture. Generally it describes the who, what, where, when of this image.
public void setCutlineText(String cutlineText)
cutlineText - the cutline text that describes this imagepublic Message getCutlineMessage()
Message component used to display the cutline.
Wrapping the cutline text with a Message component allows styling of the cutline text.
public void setCutlineMessage(Message cutlineMessage)
cutlineMessage - Messagepublic boolean isCaptionHeaderPlacementAboveImage()
public void setCaptionHeaderPlacementAboveImage(boolean captionHeaderPlacementAboveImage)
captionHeaderPlacementAboveImage - true displays above image, false displays below imagepublic void completeValidation(ValidationTrace tracer)
ComponentcompleteValidation in interface ComponentcompleteValidation in class ComponentBasetracer - Record of component's locationComponent.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)protected <T> void copyProperties(T component)
ComponentBasecopyProperties in class ComponentBasecomponent - base beanComponentBase.copy()Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.