本文整理汇总了Java中net.sf.jasperreports.engine.type.BandTypeEnum.GROUP_FOOTER属性的典型用法代码示例。如果您正苦于以下问题:Java BandTypeEnum.GROUP_FOOTER属性的具体用法?Java BandTypeEnum.GROUP_FOOTER怎么用?Java BandTypeEnum.GROUP_FOOTER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类net.sf.jasperreports.engine.type.BandTypeEnum
的用法示例。
在下文中一共展示了BandTypeEnum.GROUP_FOOTER属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createGroupFooter
protected JRBand createGroupFooter(String groupName, List<FillColumn> fillColumns)
{
JRDesignBand footer = new JRDesignBand();
footer.setSplitType(SplitTypeEnum.PREVENT);
ReportBandInfo bandInfo = new ReportBandInfo(footer, BandTypeEnum.GROUP_FOOTER + "-" + groupName);
int xOffset = 0;
for (FillColumn subcolumn : fillColumns)
{
GroupFooterCreator subVisitor = new GroupFooterCreator(groupName,
bandInfo, subcolumn, xOffset, 0, 0);
subVisitor.visit();
xOffset = subVisitor.xOffset;
}
setPdfTags(bandInfo, false);
if (footer.getHeight() == 0)
{
footer = null;
}
return footer;
}
示例2: createCommand
@Override
protected Command createCommand() {
List<Object> bands = editor.getSelectionCache().getSelectionModelForType(MBand.class);
if (bands.isEmpty()) return null;
MBand firstBand = (MBand)bands.get(0);
JSSCompoundCommand cmd = new JSSCompoundCommand(firstBand);
for(Object obj : bands){
MBand bandNode = (MBand)obj;
if ( bandNode.getBandType() == BandTypeEnum.GROUP_FOOTER || bandNode.getBandType() == BandTypeEnum.GROUP_HEADER){
cmd.add(new ReorderBandCommandByRelativeIndex((MBandGroupFooter) bandNode, 1));
} else if (bandNode.getBandType() == BandTypeEnum.DETAIL) {
cmd.add(new ReorderBandCommandByRelativeIndex(bandNode, (MReport) bandNode.getParent(), 1));
}
}
return cmd.isEmpty() ? null : cmd;
}
示例3: createCommand
@Override
protected Command createCommand() {
List<Object> bands = editor.getSelectionCache().getSelectionModelForType(MBand.class);
if (bands.isEmpty()) return null;
MBand firstBand = (MBand)bands.get(0);
JSSCompoundCommand cmd = new JSSCompoundCommand(firstBand);
for(Object obj : bands){
MBand bandNode = (MBand)obj;
if ( bandNode.getBandType() == BandTypeEnum.GROUP_FOOTER || bandNode.getBandType() == BandTypeEnum.GROUP_HEADER){
cmd.add(new ReorderBandCommandByRelativeIndex((MBandGroupFooter) bandNode, -1));
} else if (bandNode.getBandType() == BandTypeEnum.DETAIL) {
cmd.add(new ReorderBandCommandByRelativeIndex(bandNode, (MReport) bandNode.getParent(), -1));
}
}
return cmd.isEmpty() ? null : cmd;
}
示例4: NullBandNode
public NullBandNode(JasperDesign jd, NullBand band,Lookup doLkp)
{
super (Children.LEAF, new ProxyLookup( doLkp, Lookups.fixed(jd, band)));
this.jd = jd;
this.band = band;
setDisplayName ( ModelUtils.nameOf(band.getOrigin()));
if (band.getOrigin().getBandTypeValue() == BandTypeEnum.GROUP_FOOTER)
{
setIconBaseWithExtension("com/jaspersoft/ireport/designer/resources/groupfooter-16.png");
}
else if (band.getOrigin().getBandTypeValue() == BandTypeEnum.GROUP_HEADER)
{
setIconBaseWithExtension("com/jaspersoft/ireport/designer/resources/groupheader-16.png");
}
else
{
setIconBaseWithExtension("com/jaspersoft/ireport/designer/resources/band-16.png");
}
}
示例5: isColumnBand
protected boolean isColumnBand()
{
BandTypeEnum bandType = origin.getBandTypeValue();
return
bandType == BandTypeEnum.GROUP_HEADER
|| bandType == BandTypeEnum.GROUP_FOOTER
|| bandType == BandTypeEnum.DETAIL;
}
示例6: isGroupFooter
public static boolean isGroupFooter(JRBand b, JasperDesign jd) {
if (b == null) return false;
return ((JRDesignBand)b).getOrigin().getBandTypeValue() == BandTypeEnum.GROUP_FOOTER;
// JRGroup[] groups = jd.getGroups();
// for (int i=0; i<groups.length; ++i)
// {
// if (b == groups[i].getGroupFooter()) return true;
// }
// return false;
}
示例7: JRDesignGroup
/**
*
*/
public JRDesignGroup()
{
groupHeaderSection = new JRDesignSection(new JROrigin(null, getName(), BandTypeEnum.GROUP_HEADER));
groupFooterSection = new JRDesignSection(new JROrigin(null, getName(), BandTypeEnum.GROUP_FOOTER));
}
示例8: isMultiBand
public static boolean isMultiBand(MBand mband) {
return mband.getBandType() == BandTypeEnum.DETAIL || mband.getBandType() == BandTypeEnum.GROUP_HEADER
|| mband.getBandType() == BandTypeEnum.GROUP_FOOTER;
}
示例9: MBandGroupFooter
/**
* Instantiates a new m band group footer.
*
* @param parent
* the parent
* @param jrGroup
* the jr group
* @param jrband
* the jrband
* @param index
* the index
*/
public MBandGroupFooter(ANode parent, JRDesignGroup jrGroup, JRBand jrband, int index) {
super(parent, jrGroup, jrband, BandTypeEnum.GROUP_FOOTER, index);
}