|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.base.JRBaseElement net.sf.jasperreports.engine.design.JRDesignElement
public abstract class JRDesignElement
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.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_ELEMENT_GROUP
|
static java.lang.String |
PROPERTY_HEIGHT
|
static java.lang.String |
PROPERTY_KEY
|
static java.lang.String |
PROPERTY_PARENT_STYLE
|
static java.lang.String |
PROPERTY_PARENT_STYLE_NAME_REFERENCE
|
static java.lang.String |
PROPERTY_PRINT_WHEN_EXPRESSION
|
static java.lang.String |
PROPERTY_PRINT_WHEN_GROUP_CHANGES
|
static java.lang.String |
PROPERTY_PROPERTY_EXPRESSIONS
|
static java.lang.String |
PROPERTY_Y
|
Constructor Summary | |
---|---|
protected |
JRDesignElement(JRDefaultStyleProvider defaultStyleProvider)
|
Method Summary | |
---|---|
void |
addPropertyExpression(JRPropertyExpression propertyExpression)
Add a dynamic/expression-based property. |
JRPropertyExpression[] |
getPropertyExpressions()
Returns the list of dynamic/expression-based properties for this report element. |
java.util.List<JRPropertyExpression> |
getPropertyExpressionsList()
Returns the list of property expressions. |
void |
removePropertyExpression(JRPropertyExpression propertyExpression)
Remove a property expression. |
JRPropertyExpression |
removePropertyExpression(java.lang.String name)
Remove a property expression. |
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 |
setStyle(JRStyle style)
|
void |
setStyleNameReference(java.lang.String styleName)
Set the name of the external style to be used for this element. |
void |
setUUID(java.util.UUID uuid)
|
void |
setY(int y)
Sets the vertical section relative offset for the element. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRElement |
---|
collectExpressions |
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable |
---|
visit |
Field Detail |
---|
public static final java.lang.String PROPERTY_ELEMENT_GROUP
public static final java.lang.String PROPERTY_HEIGHT
public static final java.lang.String PROPERTY_KEY
public static final java.lang.String PROPERTY_PRINT_WHEN_EXPRESSION
public static final java.lang.String PROPERTY_PRINT_WHEN_GROUP_CHANGES
public static final java.lang.String PROPERTY_PARENT_STYLE
public static final java.lang.String PROPERTY_PARENT_STYLE_NAME_REFERENCE
public static final java.lang.String PROPERTY_Y
public static final java.lang.String PROPERTY_PROPERTY_EXPRESSIONS
Constructor Detail |
---|
protected JRDesignElement(JRDefaultStyleProvider defaultStyleProvider)
Method Detail |
---|
public void setUUID(java.util.UUID uuid)
public void setKey(java.lang.String key)
public void setY(int y)
public void setHeight(int height)
public void setPrintWhenExpression(JRExpression expression)
public void setPrintWhenGroupChanges(JRGroup group)
public void setElementGroup(JRElementGroup elementGroup)
StretchTypeEnum.RELATIVE_TO_TALLEST_OBJECT
public void setStyle(JRStyle style)
public void setStyleNameReference(java.lang.String styleName)
getStyle()
returns null
The external style will be resolved at fill time from the templates used in the report.
styleName
- the name of the external styleJRBaseElement.getStyleNameReference()
public void addPropertyExpression(JRPropertyExpression propertyExpression)
propertyExpression
- the property to addgetPropertyExpressions()
public void removePropertyExpression(JRPropertyExpression propertyExpression)
propertyExpression
- the property expression to removeaddPropertyExpression(JRPropertyExpression)
public JRPropertyExpression removePropertyExpression(java.lang.String name)
name
- the name of the property to remove
public java.util.List<JRPropertyExpression> getPropertyExpressionsList()
JRPropertyExpression
instances)addPropertyExpression(JRPropertyExpression)
public JRPropertyExpression[] getPropertyExpressions()
JRElement
getPropertyExpressions
in interface JRElement
getPropertyExpressions
in class JRBaseElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |