public class AccountingLineViewOverrideField extends Object implements RenderableElement
Constructor and Description |
---|
AccountingLineViewOverrideField(AccountingLineViewField field,
AccountingLineViewOverrideFieldDefinition definition,
Class<? extends AccountingLine> accountingLineClass)
Constructs a AccountingLineViewOverrideField
|
Modifier and Type | Method and Description |
---|---|
void |
appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
Adds our override field (though not our override needed field - we'll let Struts handle the value population on that
|
protected String |
getOverrideNeededValue(AccountingLine accountingLine)
Retrieves the value of the override needed value associated with the override field
|
boolean |
isActionBlock()
This is not an action block
|
boolean |
isEmpty()
Empty if our parent AccountingLineViewField is empty
|
boolean |
isHidden()
Hidden if our parent AccountingLineViewField is hidden
|
void |
populateWithTabIndexIfRequested(int reallyHighIndex)
Allows the arbitrarily high tab index to be set for controls
|
void |
renderElement(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag,
AccountingLineRenderingContext renderingContext)
Renders this element
|
void |
setAccountingLineProperty(String propertyPrefix)
Sets the accounting Line Property
|
void |
transformField(AccountingLineFieldRenderingTransformation fieldTransformation,
AccountingLine accountingLine,
Map unconvertedValues)
Runs a field transformation against all the overrides encapsulated within this field
|
public AccountingLineViewOverrideField(AccountingLineViewField field, AccountingLineViewOverrideFieldDefinition definition, Class<? extends AccountingLine> accountingLineClass)
field
- the owning accounting line view fieldaccountingLineClass
- the class of the accounting line we're renderingpublic void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
appendFields
in interface RenderableElement
KRAD Conversion: performs adding override field to the fields - No use of data dictionary
public boolean isActionBlock()
isActionBlock
in interface RenderableElement
RenderableElement.isActionBlock()
public boolean isEmpty()
isEmpty
in interface RenderableElement
RenderableElement.isEmpty()
public boolean isHidden()
isHidden
in interface RenderableElement
RenderableElement.isHidden()
public void populateWithTabIndexIfRequested(int reallyHighIndex)
RenderableElement
populateWithTabIndexIfRequested
in interface RenderableElement
reallyHighIndex
- a really high index for elements who should not be tabbed toorg.kuali.ole.sys.document.web.RenderableElement#populateWithTabIndexIfRequested(int[], int)
public void renderElement(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag, AccountingLineRenderingContext renderingContext) throws javax.servlet.jsp.JspException
RenderableElement
renderElement
in interface RenderableElement
pageContext
- the context to render toparentTag
- the parent tag that is requesting this renderingrenderingContext
- the context about the accounting line that this element would end up renderingjavax.servlet.jsp.JspException
RenderableElement.renderElement(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag, org.kuali.ole.sys.document.web.AccountingLineRenderingContext)
protected String getOverrideNeededValue(AccountingLine accountingLine)
accountingLine
- the accounting line to get the override needed value frompublic void transformField(AccountingLineFieldRenderingTransformation fieldTransformation, AccountingLine accountingLine, Map unconvertedValues)
fieldTransformation
- the field transformation which will utterly change our fieldsaccountingLine
- the accounting line being renderedunconvertedValues
- a Map of unconvertedValuespublic void setAccountingLineProperty(String propertyPrefix)
propertyPrefix
- the accounting line propertyCopyright © 2004–2015 The Kuali Foundation. All rights reserved.