|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JRElement
An abstract representation of a report element. All report elements implement this interface. The interface contains constants and methods that apply to all report elements.
Method Summary | |
---|---|
void |
collectExpressions(JRExpressionCollector collector)
|
JRElementGroup |
getElementGroup()
Indicates the logical group that the element belongs to. |
java.lang.String |
getKey()
Returns the string value that uniquely identifies the element. |
PositionTypeEnum |
getPositionTypeValue()
Returns the position type for the element |
JRExpression |
getPrintWhenExpression()
Gets the the expression that is evaluated in order to decide if the element should be displayed. |
JRGroup |
getPrintWhenGroupChanges()
Returns the group for which an element with a printRepeatedValues attribute set to true will be redisplayed even if the value has not changed. |
JRPropertyExpression[] |
getPropertyExpressions()
Returns the list of dynamic/expression-based properties for this report element. |
StretchTypeEnum |
getStretchTypeValue()
Indicates the stretch type for the element |
int |
getX()
Gets the the section relative horizontal offset of the element top left corner. |
int |
getY()
Gets the the section relative vertical offset of the element top left corner. |
boolean |
isPrintInFirstWholeBand()
Returns true if an element with a printRepeatedValues attribute set to true will be redisplayed for every new page or column that is not an overflow from a previous page or column. |
boolean |
isPrintRepeatedValues()
Specifies if the element value will be printed for every iteration, even if its value has not changed. |
boolean |
isPrintWhenDetailOverflows()
If this is set to true, the element will be reprinted on the next page if the band does not fit in the current page. |
boolean |
isRemoveLineWhenBlank()
Returns true if the remaining blank space appearing when the value is not printed will be removed. |
void |
setPositionType(PositionTypeEnum positionType)
Sets the position type for the element. |
void |
setPrintInFirstWholeBand(boolean isPrintInFirstWholeBand)
Specifies whether an element with a printRepeatedValues attribute set to true should be redisplayed for every new page or column that is not an overflow from a previous page or column. |
void |
setPrintRepeatedValues(boolean isPrintRepeatedValues)
|
void |
setPrintWhenDetailOverflows(boolean isPrintWhenDetailOverflows)
If this is set to true, the element will be reprinted on the next page if the band does not fit in the current page. |
void |
setRemoveLineWhenBlank(boolean isRemoveLineWhenBlank)
Specifies whether the remaining blank space appearing when the value is not printed will be removed. |
void |
setStretchType(StretchTypeEnum stretchTypeEnum)
Specifies how the engine should treat a missing image. |
void |
setWidth(int width)
|
void |
setX(int x)
Sets the the section relative horizontal offset of the element top left corner. |
Methods inherited from interface net.sf.jasperreports.engine.JRChild |
---|
clone |
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable |
---|
visit |
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable |
---|
clone |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
---|
getBackcolor, getForecolor, getHeight, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder |
---|
getParentProperties, getPropertiesMap, hasProperties |
Method Detail |
---|
java.lang.String getKey()
getKey
in interface JRCommonElement
PositionTypeEnum getPositionTypeValue()
void setPositionType(PositionTypeEnum positionType)
positionType
- the position typeStretchTypeEnum getStretchTypeValue()
StretchTypeEnum
void setStretchType(StretchTypeEnum stretchTypeEnum)
stretchTypeEnum
- a value representing one of the stretch type constants in StretchTypeEnum
boolean isPrintRepeatedValues()
isRemoveLineWhenBlank()
,
isPrintInFirstWholeBand()
void setPrintRepeatedValues(boolean isPrintRepeatedValues)
int getX()
void setX(int x)
int getY()
void setWidth(int width)
boolean isRemoveLineWhenBlank()
void setRemoveLineWhenBlank(boolean isRemoveLineWhenBlank)
boolean isPrintInFirstWholeBand()
isPrintRepeatedValues()
void setPrintInFirstWholeBand(boolean isPrintInFirstWholeBand)
isPrintRepeatedValues()
boolean isPrintWhenDetailOverflows()
void setPrintWhenDetailOverflows(boolean isPrintWhenDetailOverflows)
JRExpression getPrintWhenExpression()
JRGroup getPrintWhenGroupChanges()
isPrintRepeatedValues()
JRElementGroup getElementGroup()
StretchTypeEnum.RELATIVE_TO_TALLEST_OBJECT
void collectExpressions(JRExpressionCollector collector)
JRPropertyExpression[] getPropertyExpressions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |