Package net.sf.jasperreports.engine.base
Class JRBaseBand
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseElementGroup
-
- net.sf.jasperreports.engine.base.JRBaseBand
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChangeEventsSupport
,JRBand
,JRChild
,JRCloneable
,JRElementGroup
,JRPropertiesHolder
,JRVisitable
public class JRBaseBand extends JRBaseElementGroup implements JRBand, JRChangeEventsSupport
Used for implementing band functionality. A report can contain the following bands: background, title, summary, page header, page footer, last page footer, column header and column footer.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
JRBaseSection
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
height
protected JRExpression
printWhenExpression
static String
PROPERTY_splitType
protected List<ExpressionReturnValue>
returnValues
protected SplitTypeEnum
splitType
-
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 Modifier Constructor Description protected
JRBaseBand(JRBand band, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.int
getHeight()
JRPropertiesHolder
getParentProperties()
Returns the parent properties holder, whose properties are used as defaults for this object.JRExpression
getPrintWhenExpression()
Returns the boolean expression that specifies if the band will be displayed.JRPropertiesMap
getPropertiesMap()
Returns this object's properties map.List<ExpressionReturnValue>
getReturnValues()
Returns the list of values to increment report variables with.SplitTypeEnum
getSplitType()
Specifies the band split behavior.boolean
hasProperties()
Checks whether the object has any properties.void
setSplitType(SplitTypeEnum splitType)
-
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 Detail
-
PROPERTY_splitType
public static final String PROPERTY_splitType
- See Also:
- Constant Field Values
-
height
protected int height
-
splitType
protected SplitTypeEnum splitType
-
printWhenExpression
protected JRExpression printWhenExpression
-
returnValues
protected List<ExpressionReturnValue> returnValues
-
-
Constructor Detail
-
JRBaseBand
protected JRBaseBand(JRBand band, JRBaseObjectFactory factory)
-
-
Method Detail
-
getSplitType
public SplitTypeEnum getSplitType()
Description copied from interface:JRBand
Specifies the band split behavior.- Specified by:
getSplitType
in interfaceJRBand
-
setSplitType
public void setSplitType(SplitTypeEnum splitType)
- Specified by:
setSplitType
in interfaceJRBand
-
getPrintWhenExpression
public JRExpression getPrintWhenExpression()
Description copied from interface:JRBand
Returns the boolean expression that specifies if the band will be displayed.- Specified by:
getPrintWhenExpression
in interfaceJRBand
-
getReturnValues
public List<ExpressionReturnValue> 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.
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseElementGroup
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
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
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolder
Returns this object's properties map.- Specified by:
getPropertiesMap
in interfaceJRPropertiesHolder
- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder 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
-
-