• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java JRDesignSection类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中net.sf.jasperreports.engine.design.JRDesignSection的典型用法代码示例。如果您正苦于以下问题:Java JRDesignSection类的具体用法?Java JRDesignSection怎么用?Java JRDesignSection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



JRDesignSection类属于net.sf.jasperreports.engine.design包,在下文中一共展示了JRDesignSection类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: handleChangeOrder

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
/**
 * Handle the change of the position of a band
 * 
 * @param evt the event that changed the band position
 */
private void handleChangeOrder(PropertyChangeEvent evt) {
	if (evt instanceof IndexedPropertyChangeEvent && evt.getNewValue() instanceof Integer) {
		JRDesignSection source = (JRDesignSection) evt.getSource();
		int newInd = ((IndexedPropertyChangeEvent) evt).getIndex();
		JRBand b = source.getBandsList().get(newInd);
		MBand mb = null;
		for (INode n : getChildren()) {
			if (n.getValue() == b) {
				mb = (MBand) n;
				break;
			}
		}
		if (mb != null) {
			newInd = getChildren().indexOf(mb) + (newInd - (Integer) evt.getOldValue());
			getChildren().remove(mb);
			getChildren().add(newInd, mb);
		}
	}
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:25,代码来源:MReport.java


示例2: addBands

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
private static void addBands(List<ColumnFieldTO> columnFields, JasperDesign jasperDesign, boolean isGrid, Locale locale) {
	JRDesignBand band;
	// Title
	if (!isGrid) {
		band = buildTitleBand(jasperDesign);
		jasperDesign.setTitle(band);
	}
	// Page header
	band = buildPageHeaderBand(columnFields, jasperDesign, isGrid);
	jasperDesign.setPageHeader(band);
	// Column header
	// Detail
	band = buildDetailBand(columnFields, jasperDesign, isGrid, locale);
	((JRDesignSection) jasperDesign.getDetailSection()).addBand(band);
	// Column footer
	// Page footer
	if (!isGrid) {
		band = buildPageFooterBand();
		jasperDesign.setPageFooter(band);
	}
	// Summary
}
 
开发者ID:trackplus,项目名称:Genji,代码行数:23,代码来源:ReportOverviewJasperDesign.java


示例3: updateSectionListeners

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
public void updateSectionListeners()
{
    ((JRDesignSection)jd.getDetailSection()).getEventSupport().removePropertyChangeListener(this);
    ((JRDesignSection)jd.getDetailSection()).getEventSupport().addPropertyChangeListener(this);
    
    for (int i=0; i<this.jd.getGroupsList().size(); ++i)
    {
        JRDesignGroup grp = (JRDesignGroup)this.jd.getGroupsList().get(i);
        grp.getEventSupport().removePropertyChangeListener(this);
        grp.getEventSupport().addPropertyChangeListener(this);
        if (((JRDesignSection)grp.getGroupHeaderSection() != null))
        {
            ((JRDesignSection)grp.getGroupHeaderSection()).getEventSupport().removePropertyChangeListener(this);
            ((JRDesignSection)grp.getGroupHeaderSection()).getEventSupport().addPropertyChangeListener(this);
        }
        if (((JRDesignSection)grp.getGroupFooterSection() != null))
        {
            ((JRDesignSection)grp.getGroupFooterSection()).getEventSupport().removePropertyChangeListener(this);
            ((JRDesignSection)grp.getGroupFooterSection()).getEventSupport().addPropertyChangeListener(this);
        }
    }
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:23,代码来源:ReportNode.java


示例4: propertyChange

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
public void propertyChange(PropertyChangeEvent evt) {
    
    com.jaspersoft.ireport.designer.IReportManager.getInstance().notifyReportChange();
    if (evt.getPropertyName() == null) return;
    
    if (ModelUtils.containsProperty(  this.getPropertySets(), evt.getPropertyName()))
    {
        //if (evt.getPropertyName().equals(JRBaseBand.PROPERTY_SPLIT_TYPE))
        //{
        //    this.firePropertyChange(JRBaseBand.PROPERTY_SPLIT_ALLOWED, evt.getOldValue(), evt.getNewValue() );
        //}
        this.firePropertyChange(evt.getPropertyName(), evt.getOldValue(), evt.getNewValue() );
    }
    
    if (evt.getPropertyName().equals(  JRDesignGroup.PROPERTY_NAME) ||
        evt.getPropertyName().equals( JRDesignSection.PROPERTY_BANDS))
    {
        String s = ModelUtils.nameOf(band, jd);
        setDisplayName( s );
        this.fireNameChange(null, getDisplayName());
    }

    
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:25,代码来源:BandNode.java


示例5: updateSectionListeners

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
public void updateSectionListeners()
{
    ((JRDesignSection)getJasperDesign().getDetailSection()).getEventSupport().removePropertyChangeListener(this);
    ((JRDesignSection)getJasperDesign().getDetailSection()).getEventSupport().addPropertyChangeListener(this);


    for (int i=0; i<getJasperDesign().getGroupsList().size(); ++i)
    {
        JRDesignGroup grp = (JRDesignGroup)getJasperDesign().getGroupsList().get(i);
        grp.getEventSupport().removePropertyChangeListener(this);
        grp.getEventSupport().addPropertyChangeListener(this);
        if (((JRDesignSection)grp.getGroupHeaderSection() != null))
        {
            ((JRDesignSection)grp.getGroupHeaderSection()).getEventSupport().removePropertyChangeListener(this);
            ((JRDesignSection)grp.getGroupHeaderSection()).getEventSupport().addPropertyChangeListener(this);
        }
        if (((JRDesignSection)grp.getGroupFooterSection() != null))
        {
            ((JRDesignSection)grp.getGroupFooterSection()).getEventSupport().removePropertyChangeListener(this);
            ((JRDesignSection)grp.getGroupFooterSection()).getEventSupport().addPropertyChangeListener(this);
        }
    }
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:24,代码来源:ReportObjectScene.java


示例6: wrapBand

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
protected JRSection wrapBand(JRBand band, BandTypeEnum bandType)
{
	if (band == null)
	{
		return null;
	}
	
	JROrigin origin = new JROrigin(null, getName(), bandType);
	JRDesignSection section = new JRDesignSection(origin);
	section.addBand(band);
	return section;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:13,代码来源:TableReportGroup.java


示例7: removeUnwantedBand

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
private void removeUnwantedBand(JasperDesign jd){
	/**
	 * Remove unwanted band and the placeholder dataset of the table
	 */
	jd.setColumnHeader(null);
	jd.setColumnFooter(null);
	JRDesignSection bandSection = (JRDesignSection)jd.getDetailSection();
	for(JRBand actualDetail : jd.getDetailSection().getBands())
		bandSection.removeBand(actualDetail);
	//Delete the groups
	while (jd.getGroupsList().size()>0)
		jd.getGroupsList().remove(0);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:14,代码来源:TableTemplateEngine.java


示例8: propertyChange

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
@Override
public void propertyChange(PropertyChangeEvent evt) {
	if (evt.getPropertyName().equals(JasperDesign.PROPERTY_COLUMN_COUNT) || 
			evt.getPropertyName().equals(JasperDesign.PROPERTY_LEFT_MARGIN) ||
			evt.getPropertyName().equals(JasperDesign.PROPERTY_RIGHT_MARGIN) || 
			evt.getPropertyName().equals(JasperDesign.PROPERTY_PAGE_WIDTH) || 
			evt.getPropertyName().equals(JasperDesign.PROPERTY_COLUMN_SPACING)){
		PageFormatUtils.updateColumnWidth(getValue());
	} else if (evt.getPropertyName().equals(JasperDesign.PROPERTY_DATASETS)) {
		handleDatasourceChanged(evt);
	} else if (evt.getPropertyName().equals(JasperDesign.PROPERTY_TITLE)
			|| evt.getPropertyName().equals(JasperDesign.PROPERTY_PAGE_HEADER)
			|| evt.getPropertyName().equals(JasperDesign.PROPERTY_COLUMN_HEADER)
			|| evt.getPropertyName().equals(JasperDesign.PROPERTY_COLUMN_FOOTER)
			|| evt.getPropertyName().equals(JasperDesign.PROPERTY_PAGE_FOOTER)
			|| evt.getPropertyName().equals(JasperDesign.PROPERTY_LAST_PAGE_FOOTER)
			|| evt.getPropertyName().equals(JasperDesign.PROPERTY_SUMMARY)
			|| evt.getPropertyName().equals(JasperDesign.PROPERTY_NO_DATA)
			|| evt.getPropertyName().equals(JasperDesign.PROPERTY_DETAIL)
			|| evt.getPropertyName().equals(JasperDesign.PROPERTY_BACKGROUND)) {
		handleBandChanged(evt);
	} else if (evt.getPropertyName().equals(JRDesignSection.PROPERTY_BANDS)) {
		handleDetailBandChanged(evt);
	} else if (evt.getPropertyName().equals(JRDesignDataset.PROPERTY_GROUPS)) {
		handleGroupChanged(evt);
	} else if (evt.getPropertyName().equals(CHANGE_BAND_POSITION)) {
		handleChangeOrder(evt);
	} else if (evt.getPropertyName().equals(JRDesignDataset.PROPERTY_QUERY))
		return;
	super.propertyChange(evt);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:32,代码来源:MReport.java


示例9: performAction

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
protected void performAction(org.openide.nodes.Node[] activatedNodes) {

        JRDesignGroup group = ((BandNode)activatedNodes[0]).getGroup();
        JRDesignBand band = new JRDesignBand();
        band.setHeight(50);
        ((JRDesignSection)group.getGroupHeaderSection()).addBand(band);
        AddBandUndoableEdit undo = new AddBandUndoableEdit(band,((BandNode)activatedNodes[0]).getJasperDesign());
        IReportManager.getInstance().addUndoableEdit(undo);
    }
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:10,代码来源:AddAnotherGroupHeaderBandAction.java


示例10: performAction

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
protected void performAction(org.openide.nodes.Node[] activatedNodes) {

        JasperDesign jd = IReportManager.getInstance().getActiveReport();
        if (jd != null)
        {
            JRDesignBand band = new JRDesignBand();
            band.setHeight(50);
            ((JRDesignSection)jd.getDetailSection()).addBand(band);
            AddBandUndoableEdit undo = new AddBandUndoableEdit(band,jd);
            IReportManager.getInstance().addUndoableEdit(undo);
        }
    }
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:13,代码来源:AddAnotherDetailBandAction.java


示例11: performAction

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
protected void performAction(org.openide.nodes.Node[] activatedNodes) {

        JRDesignGroup group = ((BandNode)activatedNodes[0]).getGroup();
        JRDesignBand band = new JRDesignBand();
        band.setHeight(50);
        ((JRDesignSection)group.getGroupFooterSection()).addBand(band);
        AddBandUndoableEdit undo = new AddBandUndoableEdit(band,((BandNode)activatedNodes[0]).getJasperDesign());
        IReportManager.getInstance().addUndoableEdit(undo);
    }
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:10,代码来源:AddAnotherGroupFooterBandAction.java


示例12: exportResultFiles

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
/**
 * Export the result files and return a list of the compile filenames
 * 
 * @param result
 * @param directory
 * @param prefix
 * @return
 * @throws JRException
 */
public static List<String> exportResultFiles(BuildResult result, String directory, String prefix, boolean exportJrxml, boolean exportCompiled) throws JRException {
	File dir = new File(directory);
	if (dir.exists() == false && !dir.mkdirs()) {
		return null;
	}

	ArrayList<String> absFilenames = new ArrayList<>();
	for (int i = 0; i < result.designs.size(); i++) {
		JasperDesign design = result.designs.get(i);

		// update subreport reference to use the prefix. Do this on a deep copy of the design
		design = (JasperDesign) Serialization.deepCopy(design);
		JRDesignSection details = (JRDesignSection) design.getDetailSection();
		if (details != null) {
			for (JRBand band : details.getBandsList()) {
				JRDesignBand designBand = (JRDesignBand) band;
				for (JRElement element : designBand.getElements()) {
					if (JRDesignSubreport.class.isInstance(element)) {
						JRDesignSubreport sub = (JRDesignSubreport) element;
						JRDesignExpression expression = (JRDesignExpression) sub.getExpression();
						String newExpression = "\"" + prefix + expression.getText().replaceAll("\"", "") + "\"";
						expression.setText(newExpression);
					}
				}
			}
		}

		if (exportJrxml) {
			JRXmlWriter.writeReport(design, dir.getAbsolutePath() + File.separator + prefix + result.baseFilenames.get(i) + ".jrxml", "UTF-8");
		}

		if (exportCompiled) {
			String absFilename = dir.getAbsolutePath() + File.separator + prefix + result.baseFilenames.get(i) + ".jasper";
			JasperCompileManager.compileReportToFile(design, absFilename);
			absFilenames.add(absFilename);
		}
	}
	return absFilenames;
}
 
开发者ID:PGWelch,项目名称:com.opendoorlogistics,代码行数:49,代码来源:SubreportsWithProviderBuilder.java


示例13: addSummaryGroup

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
protected void addSummaryGroup(List<FillColumn> fillColumns)
{
	JRDesignGroup summaryGroup = new JRDesignGroup();
	summaryGroup.setName(SUMMARY_GROUP_NAME);//TODO check for uniqueness
	
	JRDesignBand groupFooter = new JRDesignBand();
	groupFooter.setSplitType(SplitTypeEnum.PREVENT);
	groupFooter.setHeight(pageFooter.getHeight());
	
	// we need to put everything in a frame so that we can tell the frame
	// not to print when there are no detail bands on the current page
	// 
	// we can't do that directly to the band since its print when expression
	// is evaluated too soon
	JRDesignFrame footerFrame = new JRDesignFrame();
	UUID uuid = DigestUtils.instance().deriveUUID(
			fillContext.getComponentElement().getUUID(), 
			BandTypeEnum.GROUP_FOOTER + "-" + SUMMARY_GROUP_NAME);
	footerFrame.setUUID(uuid);
	footerFrame.setX(0);
	footerFrame.setY(0);
	footerFrame.setWidth(computeTableWidth(fillColumns));
	footerFrame.setHeight(pageFooter.getHeight());
	footerFrame.getLineBox().setPadding(0);
	footerFrame.getLineBox().getPen().setLineWidth(0f);
	footerFrame.setRemoveLineWhenBlank(true);
	
	JRDesignExpression footerPrintWhen = builtinEvaluatorFactory.createExpression(new SummaryGroupFooterPrintWhenEvaluator());
	footerFrame.setPrintWhenExpression(footerPrintWhen);
	
	// clone the contents of the page footer in the frame
	List<JRChild> footerElements = pageFooter.getChildren();
	for (Iterator<JRChild> iterator = footerElements.iterator(); iterator
			.hasNext();)
	{
		JRChild child = iterator.next();
		JRChild childClone = (JRChild) child.clone(footerFrame);
		if (childClone instanceof JRElement)
		{
			footerFrame.addElement((JRElement) childClone);
		}
		else if (childClone instanceof JRElementGroup)
		{
			footerFrame.addElementGroup((JRElementGroup) childClone);
		}
		else
		{
			throw 
				new JRRuntimeException(
					EXCEPTION_MESSAGE_KEY_UNKNOWN_CHILD_TYPE,  
					new Object[]{childClone.getClass().getName()} 
					);
		}
	}
	
	groupFooter.addElement(footerFrame);
	((JRDesignSection) summaryGroup.getGroupFooterSection()).addBand(groupFooter);
	
	mainDataset.addScriptlet(TABLE_SCRIPTLET_NAME, TableReportScriptlet.class);
	mainDataset.addFirstGroup(summaryGroup);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:62,代码来源:TableReport.java


示例14: wrapBand

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
protected JRSection wrapBand(JRBand band, JROrigin origin)
{
	JRDesignSection section = new JRDesignSection(origin);
	section.addBand(band);
	return section;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:7,代码来源:TableReport.java


示例15: propertyChange

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
public void propertyChange(PropertyChangeEvent evt) {
    
    //System.out.println("Model changed: " + evt.getPropertyName() + " " + evt.getSource());
        
    Runnable r = null;
    if (evt.getPropertyName() == null) return;
    if (evt.getPropertyName().equals(JasperDesign.PROPERTY_BACKGROUND) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_TITLE) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_PAGE_HEADER) ||    
        evt.getPropertyName().equals(JasperDesign.PROPERTY_COLUMN_HEADER) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_DETAIL) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_COLUMN_FOOTER) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_PAGE_FOOTER) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_LAST_PAGE_FOOTER) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_SUMMARY) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_NO_DATA) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_PAGE_WIDTH) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_PAGE_HEIGHT) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_TOP_MARGIN) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_BOTTOM_MARGIN) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_LEFT_MARGIN) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_RIGHT_MARGIN) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_COLUMN_COUNT) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_COLUMN_SPACING) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_COLUMN_WIDTH) ||
        evt.getPropertyName().equals(JRDesignGroup.PROPERTY_GROUP_HEADER) ||
        evt.getPropertyName().equals(JRDesignGroup.PROPERTY_GROUP_FOOTER) ||
        evt.getPropertyName().equals(JRDesignDataset.PROPERTY_GROUPS) ||
        evt.getPropertyName().equals(JRDesignSection.PROPERTY_BANDS) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_PRINT_ORDER) ||
        evt.getPropertyName().equals(JasperDesign.PROPERTY_COLUMN_DIRECTION) ||
        // PROPERTY_HEIGHT is used only for the background band when it is detached...
        evt.getPropertyName().equals(JRDesignBand.PROPERTY_HEIGHT))
    {
        updateSectionListeners();
         r = new Runnable(){  
             public void run()  {
                refreshDocument();
            }};
    }
    
    
    if (r != null)
    {
       ThreadUtils.invokeInAWTThread(r);
    }
    
    // Update group listeners...
    if (evt.getPropertyName().equals(JRDesignDataset.PROPERTY_GROUPS))
    {
        // refresh group listening...
        for (int i=0; i<this.jasperDesign.getGroupsList().size(); ++i)
        {
            JRDesignGroup grp = (JRDesignGroup)this.jasperDesign.getGroupsList().get(i);
            grp.getEventSupport().removePropertyChangeListener(this);
            grp.getEventSupport().addPropertyChangeListener(this);
        }
    }
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:60,代码来源:ReportObjectScene.java


示例16: addDetailBand

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
static int addDetailBand(ODLTableDefinition table, int elementWidth, boolean isHeaderRowForSubreport, JasperDesign ret) {

		// add details
		JRDesignSection detailSection = (JRDesignSection) ret.getDetailSection();
		JRDesignBand band = new JRDesignBand();
		List<Double> colWidths = getColumnWidths(table, elementWidth);
		
		// decide on the row height.. set differently if have images; assume images are square
		int headerHeight=0;
		int rowHeight = 18;
		if (isHeaderRowForSubreport) {
			headerHeight = 22;
			rowHeight = 24;
			
			// repeat header for each master report element
			addColumnHeaderToBand(table, elementWidth, band);
		}
		
		// make row taller if we have an image, based on making the image square
		int nc = table.getColumnCount();
		for (int i = 0; i < nc; i++) {
			if (table.getColumnType(i) == ODLColumnType.IMAGE) {
				rowHeight = Math.max(rowHeight, (int)Math.ceil(colWidths.get(i)));
			}
		}
		
		// Add alternating row background BEFORE column data (so drawn behind)
		if (!isHeaderRowForSubreport) {
			addAlternativeRowBackground(elementWidth, rowHeight, band);
		}

		// Add column data
		if (nc > 0) {
			double dx=0;
			for (int i = 0; i < nc; i++) {
				int x = (int) Math.round(dx);

				JRDesignElement element;
				if (table.getColumnType(i) == ODLColumnType.IMAGE) {
					element = createImageField(table, i);

				} else {
					JRDesignTextField textField = createTextField(table, i);

					// make bigger if this is the title row for a subreport
					if (isHeaderRowForSubreport) {
						textField.setFontSize(16);
						textField.setBold(true);
					}

					element = textField;
				}

				element.setX(x);
				element.setY(headerHeight);
				element.setWidth((int) Math.floor(colWidths.get(i)));
				element.setHeight(rowHeight);

				if (isHeaderRowForSubreport) {
					//element.setY(0);
					element.setStretchType(StretchTypeEnum.NO_STRETCH);
				} else {
					element.setStretchType(StretchTypeEnum.RELATIVE_TO_BAND_HEIGHT);
				}

				band.addElement(element);
				dx += colWidths.get(i);
			}
		}

		band.setHeight(headerHeight + rowHeight);
		detailSection.addBand(band);
		
		return headerHeight + rowHeight;
	}
 
开发者ID:PGWelch,项目名称:com.opendoorlogistics,代码行数:76,代码来源:ReportBuilderUtils.java


示例17: ReorderBandCommandByIndex

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
/**
 * Instantiates a new reorder band command.
 * 
 * @param child
 *          the child
 * @param newIndex
 *          the new index
 */
public ReorderBandCommandByIndex(MBandGroup child, int newIndex) {
	super(Messages.common_reorder_elements);

	this.newIndex = Math.max(0, newIndex);
	this.jrDesignSection = (JRDesignSection) child.getSection();
	this.jrBand = (JRDesignBand) child.getValue();
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:16,代码来源:ReorderBandCommandByIndex.java


示例18: ReorderBandCommandBySibling

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
/**
 * Instantiates a new reorder band command.
 * 
 * @param child
 *          the child
 * @param newIndex
 *          the new index
 */
public ReorderBandCommandBySibling(MBandGroup child, JRBand newUpperBand) {
	super(Messages.common_reorder_elements);

	this.newUpperBand = newUpperBand;
	this.jrDesignSection = (JRDesignSection) child.getSection();
	this.jrBand = (JRDesignBand) child.getValue();
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:16,代码来源:ReorderBandCommandBySibling.java


示例19: ReorderBandCommandByRelativeIndex

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
/**
 * Instantiates a new reorder band command.
 * 
 * @param child
 *          the child
 * @param newIndex
 *          the new index
 */
public ReorderBandCommandByRelativeIndex(MBandGroup child, int delta) {
	super(Messages.common_reorder_elements);

	this.delta = delta;
	this.jrDesignSection = (JRDesignSection) child.getSection();
	this.jrBand = (JRDesignBand) child.getValue();
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:16,代码来源:ReorderBandCommandByRelativeIndex.java


示例20: CreateBandDetailCommand

import net.sf.jasperreports.engine.design.JRDesignSection; //导入依赖的package包/类
/**
 * Instantiates a new creates the band detail command.
 * 
 * @param destNode
 *          the dest node
 * @param srcNode
 *          the src node
 */
public CreateBandDetailCommand(MBand destNode, MBand srcNode) {
	super();
	this.jrDesignSection = (JRDesignSection) destNode.getJasperDesign().getDetailSection();
	if (srcNode != null && srcNode.getValue() != null)
		this.jrBand = (JRDesignBand) srcNode.getValue();
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:15,代码来源:CreateBandDetailCommand.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java NodeOp类代码示例发布时间:2022-05-23
下一篇:
Java LdapUtils类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap