当前位置: 首页>>代码示例>>Java>>正文


Java BandTypeEnum.GROUP_HEADER属性代码示例

本文整理汇总了Java中net.sf.jasperreports.engine.type.BandTypeEnum.GROUP_HEADER属性的典型用法代码示例。如果您正苦于以下问题:Java BandTypeEnum.GROUP_HEADER属性的具体用法?Java BandTypeEnum.GROUP_HEADER怎么用?Java BandTypeEnum.GROUP_HEADER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在net.sf.jasperreports.engine.type.BandTypeEnum的用法示例。


在下文中一共展示了BandTypeEnum.GROUP_HEADER属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createGroupHeader

protected JRBand createGroupHeader(String groupName, List<FillColumn> fillColumns)
{
	JRDesignBand header = new JRDesignBand();
	header.setSplitType(SplitTypeEnum.PREVENT);
	
	ReportBandInfo bandInfo = new ReportBandInfo(header, BandTypeEnum.GROUP_HEADER + "-" + groupName);
	int xOffset = 0;
	for (FillColumn subcolumn : fillColumns)
	{
		GroupHeaderCreator subVisitor = new GroupHeaderCreator(groupName,
				bandInfo, subcolumn, xOffset, 0, 0);
		subVisitor.visit();
		xOffset = subVisitor.xOffset;
	}
	
	setPdfTags(bandInfo, false);
	
	if (header.getHeight() == 0)
	{
		header = null;
	}
	return header;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:23,代码来源:TableReport.java

示例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;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:16,代码来源:MoveDetailDownAction.java

示例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;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:16,代码来源:MoveDetailUpAction.java

示例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");
    }
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:20,代码来源:NullBandNode.java

示例5: isColumnBand

protected boolean isColumnBand()
{
	BandTypeEnum bandType = origin.getBandTypeValue();
	
	return
		bandType == BandTypeEnum.GROUP_HEADER
		|| bandType == BandTypeEnum.GROUP_FOOTER
		|| bandType == BandTypeEnum.DETAIL;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:9,代码来源:JRFillBand.java

示例6: isGroupHeader

public static boolean isGroupHeader(JRBand b, JasperDesign jd) {
        
        if (b == null) return false;
        return ((JRDesignBand)b).getOrigin().getBandTypeValue() == BandTypeEnum.GROUP_HEADER;
//        JRGroup[] groups = jd.getGroups();
//        for (int i=0; i<groups.length; ++i)
//        {
//            if (b == groups[i].getGroupHeader()) return true;
//        }
//        return false;
    }
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:11,代码来源:ModelUtils.java

示例7: JRDesignGroup

/**
 *
 */
public JRDesignGroup() 
{
	groupHeaderSection = new JRDesignSection(new JROrigin(null, getName(), BandTypeEnum.GROUP_HEADER));
	groupFooterSection = new JRDesignSection(new JROrigin(null, getName(), BandTypeEnum.GROUP_FOOTER));
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:8,代码来源:JRDesignGroup.java

示例8: isMultiBand

public static boolean isMultiBand(MBand mband) {
	return mband.getBandType() == BandTypeEnum.DETAIL || mband.getBandType() == BandTypeEnum.GROUP_HEADER
			|| mband.getBandType() == BandTypeEnum.GROUP_FOOTER;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:4,代码来源:MBand.java

示例9: MBandGroupHeader

/**
 * Instantiates a new m band group header.
 * 
 * @param parent
 *          the parent
 * @param jrGroup
 *          the jr group
 * @param jrband
 *          the jrband
 * @param index
 *          the index
 */
public MBandGroupHeader(ANode parent, JRDesignGroup jrGroup, JRBand jrband, int index) {
	super(parent, jrGroup, jrband, BandTypeEnum.GROUP_HEADER, index);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:15,代码来源:MBandGroupHeader.java


注:本文中的net.sf.jasperreports.engine.type.BandTypeEnum.GROUP_HEADER属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。