• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java JRDesignCrosstabMeasure类的典型用法和代码示例

java 2次浏览

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

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

示例1: createObject

点赞 3

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@Override
public Object createObject(Attributes attributes)
{
	JRDesignCrosstabMeasure measure = (JRDesignCrosstabMeasure) digester.peek();

	JRDesignExpression expression = new JRDesignExpression();
	if (
		measure.getCalculationValue() == CalculationEnum.COUNT
		|| measure.getCalculationValue() == CalculationEnum.DISTINCT_COUNT
		)
	{
		expression.setValueClassName(Object.class.getName());
	}
	else
	{
		expression.setValueClassName(measure.getValueClassName());
	}

	return expression;
}
 

开发者ID:TIBCOSoftware,
项目名称:jasperreports,
代码行数:21,
代码来源:JRCrosstabMeasureExpressionFactory.java

示例2: getColumnImage

点赞 3

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
public Image getColumnImage(Object element, int columnIndex) {
	JRDesignCrosstabMeasure m = (JRDesignCrosstabMeasure) element;
	String txt = m.getValueExpression().getText();
	switch (columnIndex) {
	case 0:
		if (txt.startsWith("$F{")) //$NON-NLS-1$
			return JaspersoftStudioPlugin.getInstance().getImage(
					MField.getIconDescriptor().getIcon16());
		if (txt.startsWith("$P{")) //$NON-NLS-1$
			return JaspersoftStudioPlugin.getInstance().getImage(
					MParameter.getIconDescriptor().getIcon16());
		if (txt.startsWith("$V{")) //$NON-NLS-1$
			return JaspersoftStudioPlugin.getInstance().getImage(
					MVariable.getIconDescriptor().getIcon16());
	}
	return null;
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:18,
代码来源:CrosstabWizardMeasurePage.java

示例3: getPropertyValue

点赞 3

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
public Object getPropertyValue(Object id) {
	JRDesignCrosstabMeasure jrField = (JRDesignCrosstabMeasure) getValue();
	if (id.equals(JRDesignCrosstabMeasure.PROPERTY_NAME))
		return jrField.getName();
	if (id.equals(JRDesignCrosstabMeasure.PROPERTY_CALCULATION))
		return calculationD.getEnumValue(jrField.getCalculationValue());
	if (id.equals(JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_OF_TYPE))
		return percentOfTypeD.getEnumValue(jrField.getPercentageType());
	if (id.equals(JRDesignCrosstabMeasure.PROPERTY_VALUE_EXPRESSION))
		return ExprUtil.getExpression(jrField.getValueExpression());

	if (id.equals(JRDesignCrosstabMeasure.PROPERTY_VALUE_CLASS))
		return jrField.getValueClassName();
	if (id.equals(JRDesignCrosstabMeasure.PROPERTY_INCREMENTER_FACTORY_CLASS_NAME))
		return jrField.getIncrementerFactoryClassName();
	if (id.equals(JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_CALCULATION_CLASS_NAME))
		return jrField.getPercentageCalculatorClassName();
	return null;
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:20,
代码来源:MMeasure.java

示例4: setPropertyValue

点赞 3

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
public void setPropertyValue(Object id, Object value) {
	JRDesignCrosstabMeasure jrField = (JRDesignCrosstabMeasure) getValue();
	if (id.equals(JRDesignCrosstabMeasure.PROPERTY_NAME))
		jrField.setName((String) value);
	else if (id.equals(JRDesignCrosstabMeasure.PROPERTY_CALCULATION))
		jrField.setCalculation((CalculationEnum) calculationD
				.getEnumValue(value));
	else if (id.equals(JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_OF_TYPE))
		jrField.setPercentageType((CrosstabPercentageEnum) percentOfTypeD
				.getEnumValue(value));
	else if (id.equals(JRDesignCrosstabMeasure.PROPERTY_VALUE_EXPRESSION))
		jrField.setValueExpression(ExprUtil.setValues(
				jrField.getValueExpression(), value));
	else if (id.equals(JRDesignCrosstabMeasure.PROPERTY_VALUE_CLASS))
		jrField.setValueClassName((String) value);
	else if (id
			.equals(JRDesignCrosstabMeasure.PROPERTY_INCREMENTER_FACTORY_CLASS_NAME))
		jrField.setIncrementerFactoryClassName((String) value);
	else if (id
			.equals(JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_CALCULATION_CLASS_NAME))
		jrField.setPercentageCalculatorClassName((String) value);
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:23,
代码来源:MMeasure.java

示例5: ValueExpressionProperty

点赞 3

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public ValueExpressionProperty(JRDesignCrosstabMeasure measure, JRDesignCrosstab crosstab, JasperDesign jd)
{
    super(measure, new ExpressionContext( ModelUtils.getCrosstabDataset(crosstab, jd)));
    setName( JRDesignCrosstabMeasure.PROPERTY_VALUE_EXPRESSION);
    setDisplayName("Value Expression");
    setShortDescription("The expression of the measure.");
    this.crosstab = crosstab;
    this.measure = measure;
    this.jd = jd;
    crosstab.getEventSupport().addPropertyChangeListener(JRDesignCrosstab.PROPERTY_DATASET,  new PropertyChangeListener() {

        public void propertyChange(PropertyChangeEvent evt) {
            setValue(ExpressionContext.ATTRIBUTE_EXPRESSION_CONTEXT, ModelUtils.getElementDataset(getCrosstab(), getJasperDesign()));
        }
    });
    
    

}
 

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

示例6: getMeasure

点赞 3

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
public JRDesignCrosstabMeasure getMeasure()
{
    JRDesignCrosstabMeasure measure = new JRDesignCrosstabMeasure();
    measure.setName( groupPanel1.getGroupMeasureName()+I18n.getString("CrosstabVisualPanel4.Label.Measure") );
    measure.setValueExpression( groupPanel1.getDesignExpression() );
    measure.setCalculation( groupPanel1.getCalculationType() );
    measure.setValueClassName( groupPanel1.getDesignExpression().getValueClassName() );
    if (groupPanel1.getCalculationType() == CalculationEnum.COUNT)
    {
        measure.setValueClassName( "java.lang.Integer");
    }
    else
    {
        measure.setValueClassName( measure.getValueExpression().getValueClassName() );
    }
    
    return measure;
}
 

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

示例7: createObject

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@Override
public Object createObject(Attributes attributes)
{
	JRDesignCrosstabMeasure measure = new JRDesignCrosstabMeasure();
	
	measure.setName(attributes.getValue(ATTRIBUTE_name));
	measure.setValueClassName(attributes.getValue(ATTRIBUTE_class));
	measure.setIncrementerFactoryClassName(attributes.getValue(ATTRIBUTE_incrementerFactoryClass));
	
	String calcAttr = attributes.getValue(ATTRIBUTE_calculation);
	if (calcAttr != null)
	{
		CalculationEnum calculation = CalculationEnum.getByName(attributes.getValue(JRXmlConstants.ATTRIBUTE_calculation));
		measure.setCalculation(calculation);

	}
	
	CrosstabPercentageEnum percentage = CrosstabPercentageEnum.getByName(attributes.getValue(ATTRIBUTE_percentageOf));
	if (percentage != null)
	{
		measure.setPercentageType(percentage);
	}
	
	String percentageCalcAttr = attributes.getValue(ATTRIBUTE_percentageCalculatorClass);
	if (percentageCalcAttr != null)
	{
		measure.setPercentageCalculatorClassName(percentageCalcAttr);
	}
	
	return measure;
}
 

开发者ID:TIBCOSoftware,
项目名称:jasperreports,
代码行数:32,
代码来源:JRCrosstabMeasureFactory.java

示例8: createControls

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
/**
 * @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#createControls(org.eclipse.swt.widgets.Composite,
 *      org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
 */
public void createControls(final Composite parent,
		TabbedPropertySheetPage tabbedPropertySheetPage) {
	super.createControls(parent, tabbedPropertySheetPage);

	parent.setLayout(new GridLayout(3, false));

	GridData gd = new GridData(GridData.FILL_HORIZONTAL);
	gd.horizontalSpan = 2;
	createWidget4Property(parent, JRDesignCrosstabMeasure.PROPERTY_NAME)
			.getControl().setLayoutData(gd);

	gd = new GridData();
	gd.horizontalSpan = 2;
	createWidget4Property(parent,
			JRDesignCrosstabMeasure.PROPERTY_CALCULATION).getControl()
			.setLayoutData(gd);

	gd = new GridData();
	gd.horizontalSpan = 2;
	createWidget4Property(parent,
			JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_OF_TYPE)
			.getControl().setLayoutData(gd);

	gd = new GridData(GridData.FILL_HORIZONTAL);
	gd.horizontalSpan = 2;
	createWidget4Property(parent,
			JRDesignCrosstabMeasure.PROPERTY_VALUE_EXPRESSION).getControl()
			.setLayoutData(gd);

	createWidget4Property(parent,
			JRDesignCrosstabMeasure.PROPERTY_VALUE_CLASS);

	createWidget4Property(parent,
			JRDesignCrosstabMeasure.PROPERTY_INCREMENTER_FACTORY_CLASS_NAME);

	createWidget4Property(
			parent,
			JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_CALCULATION_CLASS_NAME);
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:44,
代码来源:CrosstabMeasureSection.java

示例9: initializeProvidedProperties

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@Override
protected void initializeProvidedProperties() {
	super.initializeProvidedProperties();
	addProvidedProperties(JRDesignCrosstabMeasure.PROPERTY_NAME, Messages.common_name);
	addProvidedProperties(JRDesignCrosstabMeasure.PROPERTY_CALCULATION, Messages.common_calculation);
	addProvidedProperties(JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_OF_TYPE, Messages.MMeasure_percentage_of_type);
	addProvidedProperties(JRDesignCrosstabMeasure.PROPERTY_VALUE_EXPRESSION, Messages.MMeasure_value_expression);
	addProvidedProperties(JRDesignCrosstabMeasure.PROPERTY_VALUE_CLASS, Messages.MMeasure_value_class);
	addProvidedProperties(JRDesignCrosstabMeasure.PROPERTY_INCREMENTER_FACTORY_CLASS_NAME, Messages.MMeasure_incrementer_factory_class_name);
	addProvidedProperties(JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_CALCULATION_CLASS_NAME, Messages.MMeasure_percentage_calculation_class_name);
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:12,
代码来源:CrosstabMeasureSection.java

示例10: getColumnText

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
public String getColumnText(Object element, int columnIndex) {
	JRDesignCrosstabMeasure m = (JRDesignCrosstabMeasure) element;
	String txt = m.getValueExpression().getText();
	switch (columnIndex) {
	case 0:
		return txt.substring(3, txt.length() - 1);
	case 1:
		if (m == null || m.getCalculationValue() == null)
			return "";
		return m.getCalculationValue().getName();
	}
	return ""; //$NON-NLS-1$
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:14,
代码来源:CrosstabWizardMeasurePage.java

示例11: setupMeasures

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
private void setupMeasures(JRDesignCrosstab jdc) {
	for (JRCrosstabMeasure cm : jdc.getMeasures()) {
		CalculationEnum calculationValue = cm.getCalculationValue();
		if(calculationValue == null)
			continue;
		if (calculationValue.equals(CalculationEnum.COUNT)
				|| calculationValue.equals(
						CalculationEnum.DISTINCT_COUNT))
			((JRDesignCrosstabMeasure) cm).setValueClassName(Integer.class
					.getName());
	}

}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:14,
代码来源:CrosstabWizard.java

示例12: execute

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@Override
public void execute() {
	MTextField mElement = new MTextField();
	JRDesignTextField textElement =  mElement.createJRElement(parent.getJasperDesign());
	String measureName = "$V{"+(String)child.getPropertyActualValue(JRDesignCrosstabMeasure.PROPERTY_NAME)+"}";
	textElement.setExpression(new JRDesignExpression(measureName));
	newElement = textElement;
	parent.getValue().addElement(textElement);
	setElementBounds(textElement,mElement);
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:11,
代码来源:CreateMeasureFieldCommand.java

示例13: CreateMeasureCommand

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
private CreateMeasureCommand(ANode destNode, MMeasure srcNode, int index) {
	super();
	this.jrCrosstab = (JRDesignCrosstab) destNode.getValue();
	this.index = index;
	if (srcNode != null && srcNode.getValue() != null)
		this.jrMeasure = (JRDesignCrosstabMeasure) srcNode.getValue();
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:8,
代码来源:CreateMeasureCommand.java

示例14: CrosstabMeasureNode

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
public CrosstabMeasureNode(JasperDesign jd, JRDesignCrosstab crosstab, JRDesignCrosstabMeasure measure, Lookup doLkp)
{
    super (Children.LEAF, new ProxyLookup(doLkp, Lookups.fixed(jd, crosstab, measure)));
    this.jd = jd;
    this.measure = measure;
    this.crosstab = crosstab;
    setDisplayName ( measure.getName());
    super.setName( measure.getName() );
    
    setIconBaseWithExtension("com/jaspersoft/ireport/designer/resources/crosstabmeasures-16.png");
    measure.getEventSupport().addPropertyChangeListener(this);
}
 

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

示例15: propertyChange

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
public void propertyChange(PropertyChangeEvent evt) {
    
    com.jaspersoft.ireport.designer.IReportManager.getInstance().notifyReportChange();
    if (evt.getPropertyName() == null) return;
    if (evt.getPropertyName().equals( JRDesignCrosstabMeasure.PROPERTY_NAME ))
    {
        super.setName(getMeasure().getName());
        this.setDisplayName(getMeasure().getName());
    }
    
    // Update the sheet
    this.firePropertyChange(evt.getPropertyName(), evt.getOldValue(), evt.getNewValue() );
}
 

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

示例16: NameProperty

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public NameProperty(JRDesignCrosstabMeasure measure, JasperDesign jd, JRDesignCrosstab crosstab)
{
    super(measure);
    setName(JRDesignCrosstabMeasure.PROPERTY_NAME);
    setDisplayName("Name");
    setShortDescription("Name of the measure");
    this.measure = measure;
    this.crosstab = crosstab;
    this.jd = jd;
    this.setValue("oneline", Boolean.TRUE);
}
 

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

示例17: CalculationProperty

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public CalculationProperty(JRDesignCrosstabMeasure measure, JRDesignCrosstab crosstab)
{
    super(CalculationEnum.class,  measure);
    this.crosstab = crosstab;
    this.measure = measure;
}
 

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

示例18: ValueClassNameProperty

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public ValueClassNameProperty(JRDesignCrosstabMeasure measure)
{
    super(measure);
    setName( JRDesignCrosstabMeasure.PROPERTY_VALUE_CLASS);
    setDisplayName("Measure Class");
    setShortDescription("Measure Class");
    this.measure = measure;
}
 

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

示例19: IncrementerFactoryClassNameProperty

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public IncrementerFactoryClassNameProperty(JRDesignCrosstabMeasure measure)
{
    super(JRDesignCrosstabMeasure.PROPERTY_INCREMENTER_FACTORY_CLASS_NAME,String.class, "Incrementer Factory", "The class to use as Factory for the Incrementer.",true, true);
    this.measure = measure;
    this.setValue("oneline", Boolean.TRUE);
}
 

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

示例20: PercentageCalculatorClassNameProperty

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public PercentageCalculatorClassNameProperty(JRDesignCrosstabMeasure measure)
{
    super(JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_CALCULATION_CLASS_NAME,String.class, "Percentage calculator", "The class to use to calculate the percentage",true, true);
    this.measure = measure;
    this.setValue("oneline", Boolean.TRUE);
}
 

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

示例21: measure

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
/**
 * Measure instance used for crosstabs.
 */
protected JRDesignCrosstabMeasure measure(final String name) {
    final JRDesignCrosstabMeasure retval = new JRDesignCrosstabMeasure();
    final JRDesignExpression expression = new JRDesignExpression();
    expression.setValueClass(java.math.BigDecimal.class);
    expression.setText("$F{" + name + "}");
    retval.setValueExpression(expression);
    retval.setName(name + "Measure");
    retval.setValueClassName("java.math.BigDecimal");
    retval.setCalculation(CALCULATION_SUM);

    return retval;
}
 

开发者ID:kuali,
项目名称:kfs,
代码行数:16,
代码来源:TravelReportFactoryServiceImpl.java

示例22: addMeasure

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
private void addMeasure(JRDesignCrosstab jrCrosstab, DRIDesignCrosstabMeasure measure) {
	JRDesignCrosstabMeasure jrMeasure = new JRDesignCrosstabMeasure();
	jrMeasure.setName(measure.getName());
	jrMeasure.setValueExpression(accessor.getExpressionTransform().getExpression(measure.getValueExpression()));
	jrMeasure.setValueClassName(measure.getValueClass().getName());
	jrMeasure.setCalculation(ConstantTransform.calculation(measure.getCalculation()));
	jrMeasure.setPercentageType(ConstantTransform.crosstabPercentageType(measure.getPercentageType()));

	try {
		jrCrosstab.addMeasure(jrMeasure);
	} catch (JRException e) {
		throw new JasperDesignException("Registration failed for crosstab measure \"" + measure.getName() + "\"", e);
	}
}
 

开发者ID:svn2github,
项目名称:dynamicreports-jasper,
代码行数:15,
代码来源:CrosstabTransform.java

示例23: createPropertyDescriptors

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
/**
 * Creates the property descriptors.
 * 
 * @param desc
 *            the desc
 */
@Override
public void createPropertyDescriptors(List<IPropertyDescriptor> desc,
		Map<String, Object> defaultsMap) {
	NTextPropertyDescriptor nameD = new NTextPropertyDescriptor(
			JRDesignCrosstabMeasure.PROPERTY_NAME, Messages.common_name);
	nameD.setDescription(Messages.MMeasure_name_description);
	desc.add(nameD);

	calculationD = new JSSEnumPropertyDescriptor(
			JRDesignCrosstabMeasure.PROPERTY_CALCULATION,
			Messages.common_calculation, CalculationEnum.class,
			NullEnum.NOTNULL);
	calculationD.setDescription(Messages.MMeasure_calculation_description);
	desc.add(calculationD);

	percentOfTypeD = new JSSEnumPropertyDescriptor(
			JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_OF_TYPE,
			Messages.MMeasure_percentage_of_type,
			CrosstabPercentageEnum.class, NullEnum.NOTNULL);
	percentOfTypeD
			.setDescription(Messages.MMeasure_percentage_of_type_description);
	desc.add(percentOfTypeD);

	JRExpressionPropertyDescriptor valueExprD = new JRExpressionPropertyDescriptor(
			JRDesignCrosstabMeasure.PROPERTY_VALUE_EXPRESSION,
			Messages.MMeasure_value_expression);
	valueExprD
			.setDescription(Messages.MMeasure_value_expression_description);
	desc.add(valueExprD);

	NClassTypePropertyDescriptor valueClassD = new NClassTypePropertyDescriptor(
			JRDesignCrosstabMeasure.PROPERTY_VALUE_CLASS,
			Messages.MMeasure_value_class);
	valueClassD.setDescription(Messages.MMeasure_value_class_description);
	desc.add(valueClassD);

	NClassTypePropertyDescriptor incFactClassD = new NClassTypePropertyDescriptor(
			JRDesignCrosstabMeasure.PROPERTY_INCREMENTER_FACTORY_CLASS_NAME,
			Messages.MMeasure_incrementer_factory_class_name);
	incFactClassD
			.setDescription(Messages.MMeasure_incrementer_factory_class_name_description);
	desc.add(incFactClassD);

	NClassTypePropertyDescriptor percCalcClassD = new NClassTypePropertyDescriptor(
			JRDesignCrosstabMeasure.PROPERTY_PERCENTAGE_CALCULATION_CLASS_NAME,
			Messages.MMeasure_percentage_calculation_class_name);
	percCalcClassD
			.setDescription(Messages.MMeasure_percentage_calculation_class_name_description);
	desc.add(percCalcClassD);
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:57,
代码来源:MMeasure.java

示例24: createMesure

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
public static JRDesignCrosstabMeasure createMesure(
		JRDesignCrosstab jrCrosstab, String name) {
	JRDesignCrosstabMeasure jrMeasure = new JRDesignCrosstabMeasure();
	jrMeasure.setName(ModelUtils.getDefaultName(jrCrosstab, name));
	return jrMeasure;
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:7,
代码来源:CreateMeasureCommand.java

示例25: getMeasure

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
public JRDesignCrosstabMeasure getMeasure() {
    return measure;
}
 

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

示例26: getName

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@Override
public String getName()
{
    return JRDesignCrosstabMeasure.PROPERTY_CALCULATION;
}
 

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

示例27: PercentageOfTypeProperty

点赞 2

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public PercentageOfTypeProperty(JRDesignCrosstabMeasure measure)
{
    super(CrosstabPercentageEnum.class, measure);
    this.measure = measure;
}
 

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

示例28: ReorderMeasureCommand

点赞 1

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
/**
 * Instantiates a new reorder parameter command.
 * 
 * @param child
 *          the child
 * @param parent
 *          the parent
 * @param newIndex
 *          the new index
 */
public ReorderMeasureCommand(MMeasure child, MMeasures parent, int newIndex) {
	super(Messages.common_reorder_elements);

	this.newIndex = Math.max(0, newIndex);
	this.jrCrosstab = (JRDesignCrosstab) parent.getValue();
	this.jrMeasure = (JRDesignCrosstabMeasure) child.getValue();
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:18,
代码来源:ReorderMeasureCommand.java

示例29: DeleteMeasureCommand

点赞 1

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
/**
 * Instantiates a new delete parameter command.
 * 
 * @param destNode
 *          the dest node
 * @param srcNode
 *          the src node
 */
public DeleteMeasureCommand(MMeasures destNode, MMeasure srcNode) {
	super();
	this.jrCrosstab = (JRDesignCrosstab) destNode.getValue();
	this.jrMeasure = (JRDesignCrosstabMeasure) srcNode.getValue();
}
 

开发者ID:OpenSoftwareSolutions,
项目名称:PDFReporter-Studio,
代码行数:14,
代码来源:DeleteMeasureCommand.java

示例30: createNodes

点赞 1

import net.sf.jasperreports.crosstabs.design.JRDesignCrosstabMeasure; //导入依赖的package包/类
protected Node[] createNodes(Object key) {
    
    return new Node[]{new CrosstabMeasureNode(jd, crosstab, (JRDesignCrosstabMeasure)key,doLkp)};
}
 

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


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)