|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.fill.JRFillVariable
public class JRFillVariable
| Field Summary | |
|---|---|
protected JRVariable |
parent
|
| Fields inherited from interface net.sf.jasperreports.engine.JRVariable |
|---|
COLUMN_COUNT, COLUMN_NUMBER, PAGE_COUNT, PAGE_NUMBER, REPORT_COUNT |
| Fields inherited from interface net.sf.jasperreports.engine.fill.JRCalculable |
|---|
HELPER_COUNT, HELPER_SIZE, HELPER_SUM, HELPER_VARIANCE |
| Constructor Summary | |
|---|---|
protected |
JRFillVariable(JRVariable variable,
JRFillObjectFactory factory)
|
| Method Summary | |
|---|---|
Object |
clone()
|
CalculationEnum |
getCalculationValue()
Gets the variable calculation type. |
Object |
getEstimatedValue()
|
JRExpression |
getExpression()
Returns the main expression for this variable. |
JRCalculable |
getHelperVariable(byte type)
Returns a helper variable. |
Object |
getIncrementedValue()
Returns the incremented value of the calculable object. |
JRIncrementer |
getIncrementer()
|
Class<?> |
getIncrementerFactoryClass()
Returns the class of the incrementer factory used for choosing the right incrementer for the variable value. |
String |
getIncrementerFactoryClassName()
Returns the string name of the variable value class. |
JRGroup |
getIncrementGroup()
Returns the group whose break triggers the variable increment. |
IncrementTypeEnum |
getIncrementTypeValue()
Gets the variable increment type. |
JRExpression |
getInitialValueExpression()
Returns the initial value expression for this variable. |
String |
getName()
Returns the name of the variable. |
Object |
getOldValue()
|
Object |
getPreviousOldValue()
|
JRGroup |
getResetGroup()
Returns the group whose break triggers the variable reset. |
ResetTypeEnum |
getResetTypeValue()
Gets the variable reset type. |
Object |
getValue()
Returns the value of the calculable object. |
Object |
getValue(byte evaluation)
|
Class<?> |
getValueClass()
Returns the class of the variable value. |
String |
getValueClassName()
Returns the string name of the variable value class. |
boolean |
isInitialized()
Returns true if and only if the calculable object was only initialized and not incremented. |
boolean |
isSystemDefined()
Returns true if the variable calculation type is system defined. |
void |
overwriteValue(Object newValue,
byte evaluation)
|
protected void |
reset()
|
void |
restoreValue(byte evaluation)
|
void |
setEstimatedValue(Object estimatedValue)
|
JRFillVariable |
setHelperVariable(JRFillVariable helperVariable,
byte type)
Sets a helper variable. |
void |
setIncrementedValue(Object incrementedValue)
|
void |
setInitialized(boolean isInitialized)
Sets the initialized flag for this calculable object. |
void |
setOldValue(Object oldValue)
|
void |
setPreviousOldValue(Object previousOldValue)
|
void |
setValue(Object value)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JRVariable parent
| Constructor Detail |
|---|
protected JRFillVariable(JRVariable variable,
JRFillObjectFactory factory)
| Method Detail |
|---|
protected void reset()
public String getName()
JRVariable
getName in interface JRVariablepublic Class<?> getValueClass()
JRVariable
getValueClass in interface JRVariablepublic String getValueClassName()
JRVariable
getValueClassName in interface JRVariablepublic Class<?> getIncrementerFactoryClass()
JRVariable
getIncrementerFactoryClass in interface JRVariableJRIncrementer,
JRIncrementerFactorypublic String getIncrementerFactoryClassName()
JRVariable
getIncrementerFactoryClassName in interface JRVariablepublic JRExpression getExpression()
JRVariable
getExpression in interface JRVariableJRExpression instance containing the expression.public JRExpression getInitialValueExpression()
JRVariable
getInitialValueExpression in interface JRVariableJRExpression instance containing the initial expression.public ResetTypeEnum getResetTypeValue()
JRVariable
getResetTypeValue in interface JRVariableResetTypeEnumpublic IncrementTypeEnum getIncrementTypeValue()
JRVariable
getIncrementTypeValue in interface JRVariableIncrementTypeEnumpublic CalculationEnum getCalculationValue()
JRVariable
getCalculationValue in interface JRVariableCalculationEnumpublic boolean isSystemDefined()
JRVariabletrue if the variable calculation type is system defined.
isSystemDefined in interface JRVariableCalculationEnum.SYSTEMpublic JRGroup getResetGroup()
JRVariableJRVariable.getResetTypeValue() returns
ResetTypeEnum.GROUP.
getResetGroup in interface JRVariablepublic JRGroup getIncrementGroup()
JRVariableJRVariable.getIncrementTypeValue() returns
ResetTypeEnum.GROUP.
getIncrementGroup in interface JRVariablepublic Object getOldValue()
public void setOldValue(Object oldValue)
public Object getEstimatedValue()
public void setEstimatedValue(Object estimatedValue)
public Object getIncrementedValue()
JRCalculable
getIncrementedValue in interface JRCalculablepublic void setIncrementedValue(Object incrementedValue)
public Object getValue()
JRCalculable
getValue in interface JRCalculablepublic void setValue(Object value)
public boolean isInitialized()
JRCalculabletrue if and only if the calculable object was only initialized and not incremented.
isInitialized in interface JRCalculabletrue if and only if the calculable object was only initialized and not incrementedpublic void setInitialized(boolean isInitialized)
JRCalculable
setInitialized in interface JRCalculableisInitialized - the initialized flagJRCalculable.isInitialized()public JRIncrementer getIncrementer()
public JRFillVariable setHelperVariable(JRFillVariable helperVariable,
byte type)
helperVariable - the helper variabletype - the helper type
public JRCalculable getHelperVariable(byte type)
getHelperVariable in interface JRCalculabletype - the helper type
public Object getValue(byte evaluation)
public void overwriteValue(Object newValue,
byte evaluation)
public void restoreValue(byte evaluation)
public Object getPreviousOldValue()
public void setPreviousOldValue(Object previousOldValue)
public Object clone()
clone in interface JRCloneableclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||