Class JRDesignSection
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseSection
net.sf.jasperreports.engine.design.JRDesignSection
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRCloneable,JRSection
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.engine.base.JRBaseSection
bands, parts -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a band to the section.voidAdds a band to the section.voidAdds a part to the section.voidAdds a part to the section.JRBand[]getBands()Returns the bands within the current section.Gets a list of all bands within the current section.Returns the section origin, i.e.JRPart[]getParts()Returns the parts within the current section.Gets a list of all parts within the current section.removeBand(int index) Removes a band from the section.removeBand(JRBand band) Removes a band from the section.removePart(int index) Removes a part from the section.removePart(JRPart part) Removes a part from the section.protected voidMethods inherited from class net.sf.jasperreports.engine.base.JRBaseSection
clone, getEventSupport
-
Field Details
-
PROPERTY_BANDS
- See Also:
-
PROPERTY_PARTS
- See Also:
-
bandsList
-
partsList
-
-
Constructor Details
-
JRDesignSection
public JRDesignSection() -
JRDesignSection
-
-
Method Details
-
getOrigin
Returns the section origin, i.e. its location/role within the report (e.g. detail/title/group header/etc). The location is automatically set when the section is inserted into the report (via one of theJasperDesign.setPageHeader(JRBand)/ methods).- Returns:
- the section origin
-
setOrigin
-
getBands
Description copied from interface:JRSectionReturns the bands within the current section.- Specified by:
getBandsin interfaceJRSection- Overrides:
getBandsin classJRBaseSection
-
getBandsList
Gets a list of all bands within the current section. -
addBand
Adds a band to the section.- Parameters:
band- the band to be added
-
addBand
Adds a band to the section.- Parameters:
index- the zero based index of the band to be addedband- the band to be added
-
removeBand
Removes a band from the section.- Parameters:
band- the band to be removed- Returns:
- the band to be removed
-
removeBand
Removes a band from the section.- Parameters:
index- the index of the band to be removed- Returns:
- the band to be removed
-
getParts
Description copied from interface:JRSectionReturns the parts within the current section.- Specified by:
getPartsin interfaceJRSection- Overrides:
getPartsin classJRBaseSection
-
getPartsList
Gets a list of all parts within the current section. -
addPart
Adds a part to the section.- Parameters:
part- the part to be added
-
addPart
Adds a part to the section.- Parameters:
index- the zero based index of the part to be addedpart- the part to be added
-
removePart
Removes a part from the section.- Parameters:
part- the part to be removed- Returns:
- the part to be removed
-
removePart
Removes a part from the section.- Parameters:
index- the index of the part to be removed- Returns:
- the part to be removed
-