net.sf.jasperreports.engine.design
Class JRDesignElement
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseElement
net.sf.jasperreports.engine.design.JRDesignElement
- All Implemented Interfaces:
- JRChild, JRElement, java.io.Serializable
- Direct Known Subclasses:
- JRDesignChart, JRDesignGraphicElement, JRDesignSubreport, JRDesignTextElement
- public abstract class JRDesignElement
- extends JRBaseElement
This class provides a skeleton implementation for a design time report element. The difference between design elements
and compiled elements is that at design time they are more customizable. This class contains setters for properties
that can be only modified at design time.
- Version:
- $Id: JRDesignElement.java,v 1.26 2005/10/09 21:34:26 teodord Exp $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElement |
backcolor, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, positionType, printWhenExpression, printWhenGroupChanges, stretchType, width, x, y |
Method Summary |
void |
setElementGroup(JRElementGroup elementGroup)
Specifies the logical group that the element belongs to. |
void |
setHeight(int height)
|
void |
setKey(java.lang.String key)
Sets the unique identifier for the element. |
void |
setPrintWhenExpression(JRExpression expression)
Sets the print when expression. |
void |
setPrintWhenGroupChanges(JRGroup group)
Specifies the group for which an element with a printRepeatedValues attribute set to true will be redisplayed
even if the value has not changed. |
void |
setY(int y)
Sets the vertical section relative offset for the element. |
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElement |
getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRDesignElement
public JRDesignElement()
setKey
public void setKey(java.lang.String key)
- Sets the unique identifier for the element.
setY
public void setY(int y)
- Sets the vertical section relative offset for the element.
setHeight
public void setHeight(int height)
setPrintWhenExpression
public void setPrintWhenExpression(JRExpression expression)
- Sets the print when expression. This expression must always return an instance of Boolean and its value
will decide if the element will be displayed.
setPrintWhenGroupChanges
public void setPrintWhenGroupChanges(JRGroup group)
- Specifies the group for which an element with a printRepeatedValues attribute set to true will be redisplayed
even if the value has not changed.
setElementGroup
public void setElementGroup(JRElementGroup elementGroup)
- Specifies the logical group that the element belongs to. More elements can be grouped in order to get the height
of the tallest one.
- See Also:
JRElement.STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECT
© 2001-2005 JasperSoft Corporation www.jaspersoft.com