public class ImageField extends FieldBase
Puts a <DIV> tag around an image element. This allows for labeling, styling, etc.
Image,
Serialized FormINITIAL_ORDER_VALUE| Constructor and Description |
|---|
ImageField() |
| Modifier and Type | Method and Description |
|---|---|
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()
Gets the caption header
|
String |
getCaptionHeaderText()
Gets the caption header text
|
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through
the lifecycle
|
Message |
getCutline()
Gets the cutline
|
String |
getCutlineText()
Gets the cutline text
|
String |
getHeight()
Gets the height of the image
|
Image |
getImage()
Retrieves the
Image element wrapped by this field |
String |
getSource()
Retrieves the URL the image wrapped by this field
|
String |
getWidth()
Gets the width of the image
|
boolean |
isCaptionHeaderAboveImage()
Gets boolen of whether the caption header is above the image
|
void |
performFinalize(View view,
Object model,
Component parent)
PerformFinalize override - calls super, corrects the field's Label for attribute to point to this field's
content
|
void |
setAltText(String altText)
Sets the alternate text attribute of the image assosiated with this field
|
void |
setCaptionHeader(Header captionHeader)
Sets the caption header
|
void |
setCaptionHeaderAboveImage(boolean captionHeaderAboveImage)
Sets boolen of whether the caption header is above the image
|
void |
setCaptionHeaderText(String captionHeaderText)
Sets the caption header text
|
void |
setCutline(Message cutline)
Sets the cutline
|
void |
setCutlineText(String cutlineText)
Sets the cutline text
|
void |
setHeight(String height)
Sets the height of the image
|
void |
setImage(Image image)
Sets the Image to be wrapped by this field
|
void |
setSource(String source)
Sets the source URL for the Image associated with this field
|
void |
setWidth(String width)
Sets the width of the image
|
getComponentSecurityClass, getComponentTypeName, getFieldLabel, getFieldSecurity, getLabel, getLabelColSpan, getLabelPlacement, getLabelStyleClasses, getShortLabel, isLabelRendered, performInitialization, setComponentSecurity, setFieldLabel, setLabel, setLabelColSpan, setLabelPlacement, setLabelRendered, setLabelStyleClasses, setNestedComponentIdAndSuffix, setShortLabel, setShowLabeladdCellCssClass, addDataAttribute, addDataAttributeIfNonEmpty, addStyleClass, appendToStyle, completeValidation, copy, getAdditionalComponentsToRefresh, getAdditionalComponentsToRefreshJs, getAdditionalCssClasses, getAlign, getBaseId, getCellCssClasses, getCellStyle, getCellStyleClassesAsString, getCellWidth, getColSpan, getComponentModifiers, getComponentPrototypes, getComponentSecurity, 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, performApplyModel, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setBaseId, setCellCssClasses, setCellStyle, setCellWidth, setColSpan, setComponentModifiers, 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, completeValidation, 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, performApplyModel, pushAllToContext, pushObjectToContext, setAdditionalComponentsToRefresh, setAdditionalCssClasses, setAlign, setBaseId, setCellCssClasses, setCellStyle, setCellWidth, setColSpan, setComponentModifiers, 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 ImageField()
public void performFinalize(View view, Object model, Component parent)
performFinalize in interface ComponentperformFinalize in class FieldBaseview - the viewmodel - the modelparent - the parent componentComponentBase.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 FieldBaseComponentBase.getComponentsForLifecycle()public Image getImage()
Image element wrapped by this fieldpublic void setImage(Image image)
image - the Image element to be wrapped by this fieldpublic String getSource()
Image.getSource()public void setSource(String source)
source - URL for the 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.
Image.getAltText()public void setAltText(String altText)
altText - the alternative information about the imagepublic void setWidth(String width)
setWidth in interface ComponentsetWidth in class ComponentBasewidth - Component.setWidth(java.lang.String)public String getWidth()
getWidth in interface ComponentgetWidth in class ComponentBaseComponent.getWidth()public String getCaptionHeaderText()
public void setCaptionHeaderText(String captionHeaderText)
captionHeaderText - public Header getCaptionHeader()
public void setCaptionHeader(Header captionHeader)
captionHeader - public String getCutlineText()
public void setCutlineText(String cutlineText)
cutlineText - public Message getCutline()
public void setCutline(Message cutline)
cutline - public boolean isCaptionHeaderAboveImage()
public void setCaptionHeaderAboveImage(boolean captionHeaderAboveImage)
captionHeaderAboveImage - protected <T> void copyProperties(T component)
ComponentBasecopyProperties in class FieldBasecomponent - base beanComponentBase.copy()Copyright © 2005–2016 The Kuali Foundation. All rights reserved.