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:
java.io.Serializable,java.lang.Cloneable,JRChangeEventsSupport,JRBand,JRChild,JRCloneable,JRElementGroup,JRPropertiesHolder,JRVisitable
public class JRDesignBand extends JRDesignElementGroup implements JRBand
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intheightprotected JRExpressionprintWhenExpressionstatic java.lang.StringPROPERTY_HEIGHTstatic java.lang.StringPROPERTY_PRINT_WHEN_EXPRESSIONstatic java.lang.StringPROPERTY_RETURN_VALUESprotected java.util.List<ExpressionReturnValue>returnValuesprotected SplitTypeEnumsplitTypeValue-
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 Constructor Description JRDesignBand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReturnValue(ExpressionReturnValue returnValue)Adds a return value to the band.java.lang.Objectclone()intgetHeight()JROrigingetOrigin()Returns the band origin, i.e.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.java.util.List<ExpressionReturnValue>getReturnValues()Returns the list of values to increment report variables with.java.util.List<ExpressionReturnValue>getReturnValuesList()Returns the list of values to increment report variables with.SplitTypeEnumgetSplitTypeValue()Specifies the band split behavior.booleanhasProperties()Checks whether the object has any properties.booleanremoveReturnValue(ExpressionReturnValue returnValue)Removes a return value from the band.voidsetHeight(int height)voidsetPrintWhenExpression(JRExpression expression)voidsetSplitType(SplitTypeEnum splitTypeValue)-
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 Detail
-
PROPERTY_HEIGHT
public static final java.lang.String PROPERTY_HEIGHT
- See Also:
- Constant Field Values
-
PROPERTY_PRINT_WHEN_EXPRESSION
public static final java.lang.String PROPERTY_PRINT_WHEN_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_RETURN_VALUES
public static final java.lang.String PROPERTY_RETURN_VALUES
- See Also:
- Constant Field Values
-
height
protected int height
-
splitTypeValue
protected SplitTypeEnum splitTypeValue
-
printWhenExpression
protected JRExpression printWhenExpression
-
returnValues
protected java.util.List<ExpressionReturnValue> returnValues
-
-
Method Detail
-
setHeight
public void setHeight(int height)
-
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
-
setPrintWhenExpression
public void setPrintWhenExpression(JRExpression expression)
-
getOrigin
public JROrigin 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/setPageHeadermethods).- Returns:
- the band origin
-
getReturnValues
public java.util.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.
-
addReturnValue
public void addReturnValue(ExpressionReturnValue returnValue)
Adds a return value to the band.- Parameters:
returnValue- the return value to be added.
-
getReturnValuesList
public java.util.List<ExpressionReturnValue> getReturnValuesList()
Returns the list of values to increment report variables with.- Returns:
- list of
ReturnValueobjects
-
removeReturnValue
public boolean removeReturnValue(ExpressionReturnValue returnValue)
Removes a return value from the band.- Parameters:
returnValue- the return value to be removed- Returns:
trueif the return value was found and removed
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRDesignElementGroup
-
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
-
-