org.kuali.rice.krad.uif.field
Class ImageField

java.lang.Object
  extended by org.kuali.rice.krad.uif.component.ConfigurableBase
      extended by org.kuali.rice.krad.uif.component.ComponentBase
          extended by org.kuali.rice.krad.uif.field.FieldBase
              extended by org.kuali.rice.krad.uif.field.ImageField
All Implemented Interfaces:
Serializable, Component, Configurable, ScriptEventSupport, Field, org.springframework.core.Ordered

public class ImageField
extends FieldBase

Field that wraps an image content element.

Puts a <DIV> tag around an image element. This allows for labeling, styling, etc.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Image, Serialized Form

Field Summary
 
Fields inherited from interface org.kuali.rice.krad.uif.component.Ordered
INITIAL_ORDER_VALUE
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ImageField()
           
 
Method Summary
 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 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
 
Methods inherited from class org.kuali.rice.krad.uif.field.FieldBase
getComponentSecurity, getComponentSecurityClass, getComponentTypeName, getFieldLabel, getLabel, getLabelColSpan, getLabelPlacement, getLabelStyleClasses, getShortLabel, isLabelRendered, performFinalize, performInitialization, setComponentSecurity, setFieldLabel, setLabel, setLabelColSpan, setLabelPlacement, setLabelRendered, setLabelStyleClasses, setNestedComponentIdAndSuffix, setShortLabel, setShowLabel
 
Methods inherited from class org.kuali.rice.krad.uif.component.ComponentBase
addDataAttribute, addStyleClass, appendToStyle, getAlign, getAllDataAttributesJs, getBaseId, getColSpan, getComplexDataAttributesJs, getComponentModifiers, getComponentPrototypes, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getDataAttributes, getDataMetaAttribute, getDataRoleAttribute, getDataTypeAttribute, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getMethodToCallOnRefresh, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRowSpan, getSimpleDataAttributes, getStyle, getStyleClassesAsString, getTemplate, getTemplateName, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, getValign, isDisableSessionPersistence, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefreshedByAction, isRender, isResetDataOnRefresh, isSelfRendered, isSkipInTabOrder, performApplyModel, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAlign, setBaseId, setColSpan, setComponentModifiers, setConditionalRefresh, setContext, setCssClasses, setDataAttributes, setDataMetaAttribute, setDataRoleAttribute, setDataTypeAttribute, setDisableSessionPersistence, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setForceSessionPersistence, setHidden, setId, setMethodToCallOnRefresh, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRowSpan, setSelfRendered, setSkipInTabOrder, setStyle, setTemplate, setTemplateName, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip, setValign
 
Methods inherited from class org.kuali.rice.krad.uif.component.ConfigurableBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.uif.component.Component
addDataAttribute, addStyleClass, appendToStyle, getAllDataAttributesJs, getBaseId, getColSpan, getComplexDataAttributesJs, getComponentModifiers, getComponentPrototypes, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getCssClasses, getDataAttributes, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshWhenChangedPropertyNames, getRenderedHtmlOutput, getRequired, getRowSpan, getSimpleDataAttributes, getStyle, getTemplate, getTemplateOptions, getTemplateOptionsJSString, getTitle, getToolTip, isDisableSessionPersistence, isForceSessionPersistence, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefreshedByAction, isRender, isResetDataOnRefresh, isSelfRendered, performApplyModel, pushAllToContext, pushObjectToContext, setBaseId, setColSpan, setComponentModifiers, setConditionalRefresh, setContext, setCssClasses, setDataAttributes, setDisableSessionPersistence, setForceSessionPersistence, setHidden, setId, setOrder, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefreshedByAction, setRefreshWhenChangedPropertyNames, setRender, setRenderedHtmlOutput, setRequired, setResetDataOnRefresh, setRowSpan, setSelfRendered, setStyle, setTemplate, setTemplateOptions, setTemplateOptionsJSString, setTitle, setToolTip
 
Methods inherited from interface org.kuali.rice.krad.uif.component.Configurable
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph
 
Methods inherited from interface org.kuali.rice.krad.uif.component.ScriptEventSupport
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, setOnBlurScript, setOnLoadScript
 

Constructor Detail

ImageField

public ImageField()
Method Detail

getComponentsForLifecycle

public List<Component> getComponentsForLifecycle()
Description copied from interface: Component
List of components that are contained within the component and should be sent through the lifecycle

Used by ViewHelperService for the various lifecycle callbacks

Specified by:
getComponentsForLifecycle in interface Component
Overrides:
getComponentsForLifecycle in class FieldBase
Returns:
List child components
See Also:
ComponentBase.getComponentsForLifecycle()

getImage

public Image getImage()
Retrieves the Image element wrapped by this field

Returns:
Image - the Image element representing the HTML IMG element

setImage

public void setImage(Image image)
Sets the Image to be wrapped by this field

Parameters:
image - - the Image element to be wrapped by this field

getSource

public String getSource()
Retrieves the URL the image wrapped by this field

Returns:
String containing the URL for the image
See Also:
Image.getSource()

setSource

public void setSource(String source)
Sets the source URL for the Image associated with this field

Parameters:
source - - String URL for the image

getAltText

public String getAltText()
Provides alternate information for the image element

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.

Returns:
a String representing alternative information about this image
See Also:
Image.getAltText()

setAltText

public void setAltText(String altText)
Sets the alternate text attribute of the image assosiated with this field

Parameters:
altText - - a String containing the alternative information about the image

getHeight

public String getHeight()
Gets the height of the image

Returns:
String height

setHeight

public void setHeight(String height)
Sets the height of the image

Parameters:
height -

setWidth

public void setWidth(String width)
Sets the width of the image

Overrides:
setWidth in class ComponentBase
Parameters:
width -

getWidth

public String getWidth()
Gets the width of the image

Overrides:
getWidth in class ComponentBase
Returns:
String width

getCaptionHeaderText

public String getCaptionHeaderText()
Gets the caption header text

Returns:
String captionHeaderText

setCaptionHeaderText

public void setCaptionHeaderText(String captionHeaderText)
Sets the caption header text

Parameters:
captionHeaderText -

getCaptionHeader

public Header getCaptionHeader()
Gets the caption header

Returns:
Header captionHeader

setCaptionHeader

public void setCaptionHeader(Header captionHeader)
Sets the caption header

Parameters:
captionHeader -

getCutlineText

public String getCutlineText()
Gets the cutline text

Returns:
String cutlineText

setCutlineText

public void setCutlineText(String cutlineText)
Sets the cutline text

Parameters:
cutlineText -

getCutline

public Message getCutline()
Gets the cutline

Returns:
Message cutline

setCutline

public void setCutline(Message cutline)
Sets the cutline

Parameters:
cutline -

isCaptionHeaderAboveImage

public boolean isCaptionHeaderAboveImage()
Gets boolen of whether the caption header is above the image

Returns:
boolean captionHeaderAboveImage

setCaptionHeaderAboveImage

public void setCaptionHeaderAboveImage(boolean captionHeaderAboveImage)
Sets boolen of whether the caption header is above the image

Parameters:
captionHeaderAboveImage -


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.