net.sf.jasperreports.engine.design
public class JRDesignSection extends JRBaseSection
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
bandsList |
static java.lang.String |
PROPERTY_BANDS |
bands
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.
|
JRBand[] |
getBands()
Returns the bands within the current section.
|
java.util.List |
getBandsList()
Gets a list of all bands within the current section.
|
JROrigin |
getOrigin()
Returns the section origin, i.e.
|
JRBand |
removeBand(int index)
Removes a band from the section.
|
JRBand |
removeBand(JRBand band)
Removes a band from the section.
|
protected void |
setOrigin(JROrigin origin) |
clone, getEventSupport
public static final java.lang.String PROPERTY_BANDS
protected java.util.List bandsList
public JRDesignSection(JROrigin origin)
public JROrigin getOrigin()
setDetail
/
methods).protected void setOrigin(JROrigin origin)
public JRBand[] getBands()
JRSection
getBands
in interface JRSection
getBands
in class JRBaseSection
public java.util.List 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 removed© 2001-2010 Jaspersoft Corporation www.jaspersoft.com