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


Java JRField.hasProperties方法代码示例

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


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

示例1: getFieldExpression

import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
protected String getFieldExpression(JRField field) {
    String fieldExpression = null;

    if (field.hasProperties()) {
        fieldExpression = field.getPropertiesMap().getProperty(PROPERTY_FIELD_EXPRESSION);
    }

    if (fieldExpression == null) {
        fieldExpression = field.getDescription();

        if (fieldExpression == null || fieldExpression.length() == 0) {
            fieldExpression = field.getName();
        }
    }

    return fieldExpression;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:18,代码来源:JsonQLDataSource.java

示例2: getFieldExpression

import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
protected String getFieldExpression(JRField field)
{
	String fieldExpression = null;
	if (field.hasProperties())
	{
		fieldExpression = field.getPropertiesMap().getProperty(PROPERTY_FIELD_EXPRESSION);
	}
	if (fieldExpression == null)
	{
		fieldExpression = field.getDescription();
		if (fieldExpression == null || fieldExpression.length() == 0)
		{
			fieldExpression = field.getName();
		}
	}
	return fieldExpression;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:18,代码来源:JsonDataSource.java

示例3: getFieldExpression

import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
protected String getFieldExpression(JRField field)
{
	String fieldExpression = null;
	if (field.hasProperties())
	{
		fieldExpression = field.getPropertiesMap().getProperty(PROPERTY_FIELD_EXPRESSION);
	}
	if (fieldExpression == null || fieldExpression.length() == 0)
	{
		fieldExpression = field.getDescription();
		if (fieldExpression == null || fieldExpression.length() == 0)
		{
			fieldExpression = field.getName();
		}
	}
	return fieldExpression;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:18,代码来源:AbstractXmlDataSource.java

示例4: JRFillField

import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
/**
 *
 */
protected JRFillField(
	JRField field, 
	JRFillObjectFactory factory
	)
{
	factory.put(field, this);

	parent = field;

	expressionEvaluator = factory.getExpressionEvaluator();

	staticProperties = field.hasProperties() ? field.getPropertiesMap().cloneProperties() : null;
	mergedProperties = staticProperties;

	JRPropertyExpression[] fieldPropertyExpressions = field.getPropertyExpressions();
	propertyExpressions = 
		fieldPropertyExpressions == null 
		? new ArrayList<JRPropertyExpression>(0)
		: new ArrayList<JRPropertyExpression>(Arrays.asList(fieldPropertyExpressions));
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:24,代码来源:JRFillField.java

示例5: getPropertyName

import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
@Override
public String getPropertyName(JRField field) 
{
	String fieldPropertyName = null;

	if (fieldPropertyNames.containsKey(field.getName()))
	{
		fieldPropertyName = fieldPropertyNames.get(field.getName());
	}
	else
	{
		if (field.hasProperties())
		{
			fieldPropertyName = field.getPropertiesMap().getProperty(PROPERTY_JAVABEAN_FIELD_PROPERTY);
		}
		
		if (fieldPropertyName == null)
		{
			if (isUseFieldDescription && field.getDescription() != null)
			{
				fieldPropertyName = field.getDescription();
			}
			else
			{
				fieldPropertyName = field.getName();
			}
		}
		
		fieldPropertyNames.put(field.getName(), fieldPropertyName);
	}
	
	return fieldPropertyName;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:34,代码来源:JRAbstractBeanDataSource.java

示例6: getFieldMapping

import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
protected String getFieldMapping(JRField field)
{
	String fieldMapping = null;
	if (field.hasProperties())
	{
		fieldMapping = field.getPropertiesMap().getProperty(PROPERTY_FIELD_MAPPING);
	}
	if (fieldMapping == null)
	{
		fieldMapping = field.getDescription();
	}
	return fieldMapping;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:14,代码来源:JROlapDataSource.java

示例7: getColumnIndex

import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
/**
 *
 */
private Integer getColumnIndex(JRField field) throws JRException
{
	String fieldName = field.getName();
	Integer columnIndex = columnIndexMap.get(fieldName);
	if (columnIndex == null)
	{
		if (field.hasProperties())
		{
			String columnName = field.getPropertiesMap().getProperty(PROPERTY_FIELD_COLUMN_NAME);
			if (columnName != null)
			{
				columnIndex = columnNames.get(columnName);
				if (columnIndex == null)
				{
					throw 
						new JRException(
							EXCEPTION_MESSAGE_KEY_UNKNOWN_COLUMN_NAME,
							new Object[]{columnName});
				}
			}
		}

		if (columnIndex == null)
		{
			if (field.hasProperties())
			{
				String index = field.getPropertiesMap().getProperty(PROPERTY_FIELD_COLUMN_INDEX);
				if (index != null)
				{
					columnIndex = Integer.valueOf(index);
				}
			}
		}
		
		if (columnIndex == null)
		{
			columnIndex = columnNames.get(fieldName);
		}
		
		if (columnIndex == null && fieldName.startsWith(INDEXED_COLUMN_PREFIX))
		{
			columnIndex = Integer.valueOf(fieldName.substring(INDEXED_COLUMN_PREFIX_LENGTH));
		}
		
		if (columnIndex == null)
		{
			throw 
				new JRException(
					EXCEPTION_MESSAGE_KEY_UNKNOWN_COLUMN_NAME,
					new Object[]{fieldName});
		}

		columnIndexMap.put(fieldName, columnIndex);
	}
	
	return columnIndex;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:61,代码来源:JRCsvDataSource.java

示例8: getColumnIndex

import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
protected Integer getColumnIndex(JRField field) throws JRException
{
	String fieldName = field.getName();
	Integer columnIndex = columnIndexMap.get(fieldName);
	if (columnIndex == null)
	{
		if (field.hasProperties())
		{
			String columnName = field.getPropertiesMap().getProperty(PROPERTY_FIELD_COLUMN_NAME);
			if (columnName != null)
			{
				columnIndex = columnNames.get(columnName);
				if (columnIndex == null)
				{
					throw 
						new JRException(
							EXCEPTION_MESSAGE_KEY_UNKNOWN_COLUMN_NAME,
							new Object[]{columnName});
				}
			}
		}

		if (columnIndex == null)
		{
			if (field.hasProperties())
			{
				String index = field.getPropertiesMap().getProperty(PROPERTY_FIELD_COLUMN_INDEX);
				if (index != null)
				{
					columnIndex = Integer.valueOf(index);
				}
			}
		}
		
		if (columnIndex == null)
		{
			columnIndex = columnNames.get(fieldName);
		}
		
		if (columnIndex == null && fieldName.startsWith(INDEXED_COLUMN_PREFIX))
		{
			columnIndex = Integer.valueOf(fieldName.substring(INDEXED_COLUMN_PREFIX_LENGTH));
		}
		
		if (columnIndex == null)
		{
			throw 
				new JRException(
					EXCEPTION_MESSAGE_KEY_UNKNOWN_COLUMN_NAME,
					new Object[]{fieldName});
		}

		columnIndexMap.put(fieldName, columnIndex);
	}
	
	return columnIndex;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:58,代码来源:AbstractXlsDataSource.java


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