Class JRDesignBand
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseElementGroup
net.sf.jasperreports.engine.design.JRDesignElementGroup
net.sf.jasperreports.engine.design.JRDesignBand
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChangeEventsSupport
,JRBand
,JRChild
,JRCloneable
,JRElementGroup
,JRPropertiesHolder
,JRVisitable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected JRExpression
static final String
static final String
static final String
protected List
<ExpressionReturnValue> protected SplitTypeEnum
Fields inherited from class net.sf.jasperreports.engine.design.JRDesignElementGroup
PROPERTY_CHILDREN, PROPERTY_ELEMENT_GROUP
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
children, elementGroup
Fields inherited from interface net.sf.jasperreports.engine.JRBand
PROPERTY_SPLIT_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReturnValue
(ExpressionReturnValue returnValue) Adds a return value to the band.clone()
int
Returns the band origin, i.e.Returns the parent properties holder, whose properties are used as defaults for this object.Returns the boolean expression that specifies if the band will be displayed.Returns this object's properties map.Returns the list of values to increment report variables with.Returns the list of values to increment report variables with.Specifies the band split behavior.boolean
Checks whether the object has any properties.boolean
removeReturnValue
(ExpressionReturnValue returnValue) Removes a return value from the band.void
setHeight
(int height) void
setPrintWhenExpression
(JRExpression expression) void
setSplitType
(SplitTypeEnum splitType) Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElementGroup
addElement, addElement, addElement, addElementGroup, addElementGroup, getEventSupport, removeElement, removeElementGroup, setElementGroup
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
clone, getChildren, getElementByKey, getElementByKey, getElementGroup, getElements, getElements, visit
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.JRElementGroup
getChildren, getElementByKey, getElementGroup, getElements
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
Field Details
-
PROPERTY_HEIGHT
- See Also:
-
PROPERTY_PRINT_WHEN_EXPRESSION
- See Also:
-
PROPERTY_RETURN_VALUES
- See Also:
-
height
protected int height -
splitType
-
printWhenExpression
-
returnValues
-
-
Constructor Details
-
JRDesignBand
public JRDesignBand()
-
-
Method Details
-
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getSplitType
Description copied from interface:JRBand
Specifies the band split behavior.- Specified by:
getSplitType
in interfaceJRBand
-
setSplitType
- Specified by:
setSplitType
in interfaceJRBand
-
getPrintWhenExpression
Description copied from interface:JRBand
Returns the boolean expression that specifies if the band will be displayed.- Specified by:
getPrintWhenExpression
in interfaceJRBand
-
setPrintWhenExpression
-
getOrigin
Returns the band origin, i.e. its location/role within the report (e.g. detail/title/group header/etc). The location is automatically set when the band is inserted into the report (via one of thesetTitle
/setPageHeader
methods).- Returns:
- the band origin
-
getReturnValues
Description copied from interface:JRBand
Returns the list of values to increment report variables with.- Specified by:
getReturnValues
in interfaceJRBand
- Returns:
- the list of returned values.
-
addReturnValue
Adds a return value to the band.- Parameters:
returnValue
- the return value to be added.
-
getReturnValuesList
Returns the list of values to increment report variables with.- Returns:
- list of
ReturnValue
objects
-
removeReturnValue
Removes a return value from the band.- Parameters:
returnValue
- the return value to be removed- Returns:
true
if the return value was found and removed
-
clone
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRDesignElementGroup
-
hasProperties
public boolean hasProperties()Description copied from interface:JRPropertiesHolder
Checks whether the object has any properties.- Specified by:
hasProperties
in interfaceJRPropertiesHolder
- Returns:
- whether the object has any properties
-
getPropertiesMap
Description copied from interface:JRPropertiesHolder
Returns this object's properties map.- Specified by:
getPropertiesMap
in interfaceJRPropertiesHolder
- Returns:
- this object's properties map
-
getParentProperties
Description copied from interface:JRPropertiesHolder
Returns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentProperties
in interfaceJRPropertiesHolder
- Returns:
- the parent properties holder, or
null
if no parent
-