public class AccountingLineViewDebitCreditAmountField extends Object implements RenderableElement, ElementNamable
Constructor and Description |
---|
AccountingLineViewDebitCreditAmountField(org.kuali.rice.kns.web.ui.Field debitOrCreditField,
AccountingLineViewFieldDefinition definition,
boolean isDebit,
String newLineProperty,
String collectionProperty)
Constructs a AccountingLineViewDebitOrCreditAmountField
|
Modifier and Type | Method and Description |
---|---|
void |
appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
Asks that the renderable element appends any field names it knows of to the given list; this is so that proper quick finders can be generated
and population accomplished when fields themselves are rendered
|
int |
getArbitrarilyHighIndex()
Gets the arbitrarilyHighIndex attribute.
|
String |
getCollectionProperty()
Gets the collectionProperty attribute.
|
org.kuali.rice.kns.web.ui.Field |
getDebitOrCreditField()
Gets the debitOrCreditField attribute.
|
AccountingLineViewFieldDefinition |
getDefinition()
Gets the definition attribute.
|
String |
getName()
Returns the name(s) of this table joining element; some table joining elements are compound
|
String |
getNewLineProperty()
Gets the newLineProperty attribute.
|
boolean |
isActionBlock()
This is not an action block
|
boolean |
isDebit()
Gets the isDebit attribute.
|
boolean |
isEmpty()
This isn't empty
|
boolean |
isHidden()
This is not hidden
|
void |
populateWithTabIndexIfRequested(int reallyHighIndex)
Allows the arbitrarily high tab index to be set for controls
|
protected void |
prepareFieldForRendering(org.kuali.rice.kns.web.ui.Field field,
VoucherForm form,
Integer count)
Sets up the field for rendering by setting the right property name and zeroing out amounts which aren't needed
|
void |
renderElement(javax.servlet.jsp.PageContext pageContext,
javax.servlet.jsp.tagext.Tag parentTag,
AccountingLineRenderingContext renderingContext)
Renders this element
|
public AccountingLineViewDebitCreditAmountField(org.kuali.rice.kns.web.ui.Field debitOrCreditField, AccountingLineViewFieldDefinition definition, boolean isDebit, String newLineProperty, String collectionProperty)
debitOrCreditField
- definition
- isDebit
- newLineProperty
- collectionProperty
- public void appendFields(List<org.kuali.rice.kns.web.ui.Field> fields)
RenderableElement
appendFields
in interface RenderableElement
KRAD Conversion: Customization of the fields - Adding 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 toRenderableElement.populateWithTabIndexIfRequested(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 void prepareFieldForRendering(org.kuali.rice.kns.web.ui.Field field, VoucherForm form, Integer count)
field
- the field to prepareaccountingLine
- the accounting line being renderedcount
- the count of the current line in the source lines, or null if it's a new line
KRAD Conversion: Customization of preparing the fields for rendering - No use of data dictionarypublic int getArbitrarilyHighIndex()
public String getCollectionProperty()
public org.kuali.rice.kns.web.ui.Field getDebitOrCreditField()
public AccountingLineViewFieldDefinition getDefinition()
public boolean isDebit()
public String getNewLineProperty()
public String getName()
ElementNamable
getName
in interface ElementNamable
ElementNamable.getName()
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.