public class ReadOnlyRenderer extends FieldRendererBase
| Constructor and Description |
|---|
ReadOnlyRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildBeginInquiryLink()
Builds the opening anchor tag to make the displayed read only value open up an inquiry screen
|
protected String |
buildBeginSpan()
Generates the HTML for the opening span tag to wrap the displayed value
|
protected String |
buildEndInquiryLink()
Builds the closing anchor tag for the inquiry link
|
protected String |
buildEndSpan()
Generates the HTML for the closing span tag to wrap the displayed value
|
protected String |
buildNonBreakingSpace() |
void |
clear()
Clears the persisting tag.
|
void |
closeNoWrapSpan(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag)
Renders the closing of a no wrap span
|
protected String |
discoverRenderValue()
An algorithm to discover the actual read only value to render.
|
protected String |
getValueForDropDown()
Dropdowns are typically fields with codes, which may be close to meaningless, with more explanative labels.
|
protected boolean |
isInquirableValue(String propertyValue)
Determines if the given property value is worthy of having an inquiry for it
|
void |
openNoWrapSpan(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag)
Renders the opening of a no-wrap span
|
void |
render(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag)
Asks this renderer to render
|
boolean |
renderQuickfinder()
Nope, no quick finder here
|
void |
setShouldRenderInquiry(boolean shouldRenderInquiry)
Sets the shouldRenderInquiry attribute value.
|
protected boolean |
shouldRenderInquiryLink()
Determines if this read only field should attempt to display the inquiry link around the rendered value
|
buildOnBlur, getAccessibleTitle, getDynamicNameLabel, getErrorIconImageTag, getField, getFieldName, getQuickfinderTabIndex, isShowError, overrideOnBlur, renderErrorIcon, renderQuickFinderIfNecessary, setAccessibleTitle, setArbitrarilyHighTabIndex, setDynamicNameLabel, setField, setShowErrorpublic ReadOnlyRenderer()
public void render(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag) throws javax.servlet.jsp.JspException
RendererpageContext - the JSP page context to render toparentTag - the tag that is the "parent" of this renderingjavax.servlet.jsp.JspExceptionRenderer.render(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag)public void clear()
clear in interface Rendererclear in class FieldRendererBaseFieldRendererBase.clear()protected String buildBeginSpan()
propertyPrefix - the property path from the form the business object being renderedprotected String buildEndSpan()
protected String buildBeginInquiryLink()
protected String buildEndInquiryLink()
protected boolean shouldRenderInquiryLink()
protected boolean isInquirableValue(String propertyValue)
propertyValue - the value of the property to potentially render an inquiry forpublic void setShouldRenderInquiry(boolean shouldRenderInquiry)
shouldRenderInquiry - The shouldRenderInquiry to set.protected String getValueForDropDown()
protected String discoverRenderValue()
protected String buildNonBreakingSpace()
public boolean renderQuickfinder()
FieldRenderer.renderQuickfinder()public void closeNoWrapSpan(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag) throws javax.servlet.jsp.JspException
FieldRenderercloseNoWrapSpan in interface FieldRenderercloseNoWrapSpan in class FieldRendererBasepageContext - the page contex to render toparentTag - the tag requesting all of this renderingjavax.servlet.jsp.JspException - thrown if something goes wrong in renderingFieldRendererBase.closeNoWrapSpan(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag)public void openNoWrapSpan(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag) throws javax.servlet.jsp.JspException
FieldRendereropenNoWrapSpan in interface FieldRendereropenNoWrapSpan in class FieldRendererBasepageContext - the page contex to render toparentTag - the tag requesting all of this renderingjavax.servlet.jsp.JspException - thrown if something goes wrong in renderingFieldRendererBase.openNoWrapSpan(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag)Copyright © 2004–2015 The Kuali Foundation. All rights reserved.