public class JRDesignSection extends JRBaseSection
| Modifier and Type | Field and Description |
|---|---|
protected List<JRBand> |
bandsList |
protected List<JRPart> |
partsList |
static String |
PROPERTY_BANDS |
static String |
PROPERTY_PARTS |
bands, parts| Constructor and Description |
|---|
JRDesignSection(JROrigin origin) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBand(int index,
JRBand band)
Adds a band to the section.
|
void |
addBand(JRBand band)
Adds a band to the section.
|
void |
addPart(int index,
JRPart part)
Adds a part to the section.
|
void |
addPart(JRPart part)
Adds a part to the section.
|
JRBand[] |
getBands()
Returns the bands within the current section.
|
List<JRBand> |
getBandsList()
Gets a list of all bands within the current section.
|
JROrigin |
getOrigin()
Returns the section origin, i.e.
|
JRPart[] |
getParts()
Returns the parts within the current section.
|
List<JRPart> |
getPartsList()
Gets a list of all parts within the current section.
|
JRBand |
removeBand(int index)
Removes a band from the section.
|
JRBand |
removeBand(JRBand band)
Removes a band from the section.
|
JRPart |
removePart(int index)
Removes a part from the section.
|
JRPart |
removePart(JRPart part)
Removes a part from the section.
|
protected void |
setOrigin(JROrigin origin) |
clone, getEventSupportpublic static final String PROPERTY_BANDS
public static final String PROPERTY_PARTS
public JRDesignSection(JROrigin origin)
public JROrigin getOrigin()
JasperDesign.setPageHeader(JRBand)/
methods).protected void setOrigin(JROrigin origin)
public JRBand[] getBands()
JRSectiongetBands in interface JRSectiongetBands in class JRBaseSectionpublic List<JRBand> getBandsList()
public void addBand(JRBand band)
band - the band to be addedpublic void addBand(int index,
JRBand band)
index - the zero based index of the band to be addedband - the band to be addedpublic JRBand removeBand(JRBand band)
band - the band to be removedpublic JRBand removeBand(int index)
index - the index of the band to be removedpublic JRPart[] getParts()
JRSectiongetParts in interface JRSectiongetParts in class JRBaseSectionpublic List<JRPart> getPartsList()
public void addPart(JRPart part)
part - the part to be addedpublic void addPart(int index,
JRPart part)
index - the zero based index of the part to be addedpart - the part to be addedpublic JRPart removePart(JRPart part)
part - the part to be removedpublic JRPart removePart(int index)
index - the index of the part to be removedCopyright © 2017. All rights reserved.