本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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));
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}