|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase org.kuali.rice.krad.uif.util.ColumnCalculationInfo
public class ColumnCalculationInfo
ColumnCalculationInfo is used to specify which columns and what types of calculations are performed on those columns of table collection. This functionality can only be used when the dataTables plugin is being used (richTable.render="true" for TableLayoutManager)
Field Summary |
---|
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
componentCode, namespaceCode |
Constructor Summary | |
---|---|
ColumnCalculationInfo()
|
Method Summary | |
---|---|
String |
getCalculationFunctionExtraData()
This specifies extra data to be sent to the calculation function. |
String |
getCalculationFunctionName()
Gets the js calculationFunctionName. |
Integer |
getColumnNumber()
Gets the column number. |
MessageField |
getGroupTotalFieldPrototype()
Gets the groupTotalFieldPrototype. |
MessageField |
getPageTotalField()
Gets the pageTotalField. |
String |
getPropertyName()
Get the propertyName of the field to do calculations. |
MessageField |
getTotalField()
Gets the totalField. |
boolean |
isCalculateOnKeyUp()
If true, the column is calculated when the user enters a character on each key up. |
boolean |
isRecalculateTotalClientSide()
When set to false, calculations will not be fired for the totalField client-side. |
boolean |
isShowGroupTotal()
Gets showGroupTotal. |
boolean |
isShowPageTotal()
Gets showTotal. |
boolean |
isShowTotal()
Gets showTotal. |
void |
setCalculateOnKeyUp(boolean calculateOnKeyUp)
Sets calculateOnKeyUp which controls the type of handler used |
void |
setCalculationFunctionExtraData(String calculationFunctionExtraData)
Sets the calculationFunctionExtraData which specifies additional data to pass into the calculationFunction. |
void |
setCalculationFunctionName(String calculationFunctionName)
Sets the calculationFunctionName to call when doing column calculations |
void |
setColumnNumber(Integer columnNumber)
Sets the column number. |
void |
setGroupTotalFieldPrototype(MessageField groupTotalFieldPrototype)
Sets the groupTotalFieldPrototype. |
void |
setPageTotalField(MessageField pageTotalField)
Sets the pageTotalField. |
void |
setPropertyName(String propertyName)
Set the propertyName of the field to do calculations on |
void |
setRecalculateTotalClientSide(boolean recalculateTotalClientSide)
Set the recalculateTotalClientSide flag |
void |
setShowGroupTotal(boolean showGroupTotal)
Sets showGroupTotal. |
void |
setShowPageTotal(boolean showPageTotal)
Sets showPageTotal. |
void |
setShowTotal(boolean showTotal)
Sets showTotal. |
void |
setTotalField(MessageField totalField)
Sets the totalField. |
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, preventModification, setComponentCode, setNamespaceCode, unwrap |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode |
Constructor Detail |
---|
public ColumnCalculationInfo()
Method Detail |
---|
public Integer getColumnNumber()
public void setColumnNumber(Integer columnNumber)
columnNumber
- public boolean isShowTotal()
public void setShowTotal(boolean showTotal)
showTotal
- public boolean isShowPageTotal()
public void setShowPageTotal(boolean showPageTotal)
showPageTotal
- public boolean isShowGroupTotal()
public void setShowGroupTotal(boolean showGroupTotal)
showGroupTotal
- public String getCalculationFunctionName()
This must be ONLY the function by name (no parenthesis or params)
The actual js function declaration MUST take in an array of values as its first parameter. The values passed in
will be all the relavant values for the calculation. Optionally, the function can also take a second parameter
which can be specified by calculationFunctionExtraData. This parameter can take any valid javascript value
(integer, string, JSON object, etc). In either case, the values parameter MUST be the first parameter.
public void setCalculationFunctionName(String calculationFunctionName)
calculationFunctionName
- public MessageField getTotalField()
public void setTotalField(MessageField totalField)
totalField
- public MessageField getPageTotalField()
public void setPageTotalField(MessageField pageTotalField)
pageTotalField
- public MessageField getGroupTotalFieldPrototype()
public void setGroupTotalFieldPrototype(MessageField groupTotalFieldPrototype)
groupTotalFieldPrototype
- public boolean isCalculateOnKeyUp()
public void setCalculateOnKeyUp(boolean calculateOnKeyUp)
calculateOnKeyUp
- public boolean isRecalculateTotalClientSide()
To use this particular feature: set this to false, and use springEL in the totalField's message.messageText to get a pre-calculated total from a field on the form. This will be refreshed when the table is refreshed, but will not be updated by client-side interactions - used for complex or special calculation mechanisms that may require server only information.
public void setRecalculateTotalClientSide(boolean recalculateTotalClientSide)
recalculateTotalClientSide
- public String getCalculationFunctionExtraData()
public void setCalculationFunctionExtraData(String calculationFunctionExtraData)
calculationFunctionExtraData
- public String getPropertyName()
public void setPropertyName(String propertyName)
propertyName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |