public class JRDesignSection extends JRBaseSection
Modifier and Type | Field and Description |
---|---|
protected java.util.List<JRBand> |
bandsList |
protected java.util.List<JRPart> |
partsList |
static java.lang.String |
PROPERTY_BANDS |
static java.lang.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.
|
java.util.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.
|
java.util.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, getEventSupport
public static final java.lang.String PROPERTY_BANDS
public static final java.lang.String PROPERTY_PARTS
protected java.util.List<JRBand> bandsList
protected java.util.List<JRPart> partsList
public JRDesignSection(JROrigin origin)
public JROrigin getOrigin()
JasperDesign.setPageHeader(JRBand)
/
methods).protected void setOrigin(JROrigin origin)
public JRBand[] getBands()
JRSection
getBands
in interface JRSection
getBands
in class JRBaseSection
public java.util.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()
JRSection
getParts
in interface JRSection
getParts
in class JRBaseSection
public java.util.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 removed© 2001-2014 TIBCO Software Inc. www.jaspersoft.com