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 intprotected JRExpressionstatic final Stringstatic final Stringstatic final Stringprotected List<ExpressionReturnValue> protected SplitTypeEnumFields inherited from class net.sf.jasperreports.engine.design.JRDesignElementGroup
PROPERTY_CHILDREN, PROPERTY_ELEMENT_GROUPFields inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
children, elementGroupFields inherited from interface net.sf.jasperreports.engine.JRBand
PROPERTY_SPLIT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReturnValue(ExpressionReturnValue returnValue) Adds a return value to the band.clone()intReturns 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.booleanChecks whether the object has any properties.booleanremoveReturnValue(ExpressionReturnValue returnValue) Removes a return value from the band.voidsetHeight(int height) voidsetPrintWhenExpression(JRExpression expression) voidsetSplitType(SplitTypeEnum splitType) Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElementGroup
addElement, addElement, addElement, addElementGroup, addElementGroup, getEventSupport, removeElement, removeElementGroup, setElementGroupMethods inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
clone, getChildren, getElementByKey, getElementByKey, getElementGroup, getElements, getElements, visitMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.JRElementGroup
getChildren, getElementByKey, getElementGroup, getElementsMethods 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:JRBandSpecifies the band split behavior.- Specified by:
getSplitTypein interfaceJRBand
-
setSplitType
- Specified by:
setSplitTypein interfaceJRBand
-
getPrintWhenExpression
Description copied from interface:JRBandReturns the boolean expression that specifies if the band will be displayed.- Specified by:
getPrintWhenExpressionin 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/setPageHeadermethods).- Returns:
- the band origin
-
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
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
ReturnValueobjects
-
removeReturnValue
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
- 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
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
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
-