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 intheightprotected JRExpressionprintWhenExpressionstatic StringPROPERTY_splitTypeprotected List<ExpressionReturnValue>returnValuesprotected SplitTypeEnumsplitTypeValue-
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 protectedJRBaseBand(JRBand band, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.intgetHeight()JRPropertiesHoldergetParentProperties()Returns the parent properties holder, whose properties are used as defaults for this object.JRExpressiongetPrintWhenExpression()Returns the boolean expression that specifies if the band will be displayed.JRPropertiesMapgetPropertiesMap()Returns this object's properties map.List<ExpressionReturnValue>getReturnValues()Returns the list of values to increment report variables with.SplitTypeEnumgetSplitTypeValue()Specifies the band split behavior.booleanhasProperties()Checks whether the object has any properties.voidsetSplitType(SplitTypeEnum splitTypeValue)-
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
-
splitTypeValue
protected SplitTypeEnum splitTypeValue
-
printWhenExpression
protected JRExpression printWhenExpression
-
returnValues
protected List<ExpressionReturnValue> returnValues
-
-
Constructor Detail
-
JRBaseBand
protected JRBaseBand(JRBand band, JRBaseObjectFactory factory)
-
-
Method Detail
-
getSplitTypeValue
public SplitTypeEnum getSplitTypeValue()
Description copied from interface:JRBandSpecifies the band split behavior.- Specified by:
getSplitTypeValuein interfaceJRBand
-
setSplitType
public void setSplitType(SplitTypeEnum splitTypeValue)
- Specified by:
setSplitTypein interfaceJRBand
-
getPrintWhenExpression
public JRExpression getPrintWhenExpression()
Description copied from interface:JRBandReturns the boolean expression that specifies if the band will be displayed.- Specified by:
getPrintWhenExpressionin interfaceJRBand
-
getReturnValues
public List<ExpressionReturnValue> getReturnValues()
Description copied from interface:JRBandReturns the list of values to increment report variables with.- Specified by:
getReturnValuesin interfaceJRBand- Returns:
- the list of returned values.
-
clone
public Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseElementGroup
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
hasProperties
public boolean hasProperties()
Description copied from interface:JRPropertiesHolderChecks whether the object has any properties.- Specified by:
hasPropertiesin interfaceJRPropertiesHolder- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolderReturns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentPropertiesin interfaceJRPropertiesHolder- Returns:
- the parent properties holder, or
nullif no parent
-
-