public abstract class JRDesignElement extends JRBaseElement
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_ELEMENT_GROUP |
static String |
PROPERTY_HEIGHT |
static String |
PROPERTY_KEY |
static String |
PROPERTY_PARENT_STYLE |
static String |
PROPERTY_PARENT_STYLE_NAME_REFERENCE |
static String |
PROPERTY_PRINT_WHEN_EXPRESSION |
static String |
PROPERTY_PRINT_WHEN_GROUP_CHANGES |
static String |
PROPERTY_PROPERTY_EXPRESSIONS |
static String |
PROPERTY_Y |
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, modeValue, parentStyle, parentStyleNameReference, positionTypeValue, printWhenExpression, printWhenGroupChanges, PROPERTY_POSITION_TYPE, PROPERTY_PRINT_IN_FIRST_WHOLE_BAND, PROPERTY_PRINT_REPEATED_VALUES, PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS, PROPERTY_REMOVE_LINE_WHEN_BLANK, PROPERTY_STRETCH_TYPE, PROPERTY_WIDTH, PROPERTY_X, stretchTypeValue, uuid, width, x, y
Modifier | Constructor and Description |
---|---|
protected |
JRDesignElement(JRDefaultStyleProvider defaultStyleProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyExpression(JRPropertyExpression propertyExpression)
Add a dynamic/expression-based property.
|
JRPropertyExpression[] |
getPropertyExpressions()
Returns the list of dynamic/expression-based properties for this report element.
|
List<JRPropertyExpression> |
getPropertyExpressionsList()
Returns the list of property expressions.
|
void |
removePropertyExpression(JRPropertyExpression propertyExpression)
Remove a property expression.
|
JRPropertyExpression |
removePropertyExpression(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(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(String styleName)
Set the name of the external style to be used for this element.
|
void |
setUUID(UUID uuid) |
void |
setY(int y)
Sets the vertical section relative offset for the element.
|
clone, clone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getStretchTypeValue, getStyle, getStyleNameReference, getUUID, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collectExpressions
visit
public static final String PROPERTY_ELEMENT_GROUP
public static final String PROPERTY_HEIGHT
public static final String PROPERTY_KEY
public static final String PROPERTY_PRINT_WHEN_EXPRESSION
public static final String PROPERTY_PRINT_WHEN_GROUP_CHANGES
public static final String PROPERTY_PARENT_STYLE
public static final String PROPERTY_PARENT_STYLE_NAME_REFERENCE
public static final String PROPERTY_Y
public static final String PROPERTY_PROPERTY_EXPRESSIONS
protected JRDesignElement(JRDefaultStyleProvider defaultStyleProvider)
public void setUUID(UUID uuid)
public void setKey(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)
public void setStyle(JRStyle style)
public void setStyleNameReference(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(String name)
name
- the name of the property to removepublic List<JRPropertyExpression> getPropertyExpressionsList()
JRPropertyExpression
instances)addPropertyExpression(JRPropertyExpression)
public JRPropertyExpression[] getPropertyExpressions()
JRElement
getPropertyExpressions
in interface JRElement
getPropertyExpressions
in class JRBaseElement
Copyright © 2013. All Rights Reserved.