本文整理汇总了Java中net.sf.jasperreports.engine.JRField.getDescription方法的典型用法代码示例。如果您正苦于以下问题:Java JRField.getDescription方法的具体用法?Java JRField.getDescription怎么用?Java JRField.getDescription使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jasperreports.engine.JRField
的用法示例。
在下文中一共展示了JRField.getDescription方法的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: JRBaseField
import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
/**
*
*/
protected JRBaseField(JRField field, JRBaseObjectFactory factory)
{
factory.put(field, this);
name = field.getName();
description = field.getDescription();
valueClassName = field.getValueClassName();
propertiesMap = field.getPropertiesMap().cloneProperties();
propertyExpressions = factory.getPropertyExpressions(field.getPropertyExpressions());
}
示例5: getPropertyName
import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
@Override
public String getPropertyName(JRField field)
{
if (field.getDescription() == null)
{
return field.getName();
}
return field.getDescription();
}
示例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: getColumnName
import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
private String getColumnName(JRField field) {
return field.getDescription() == null || field.getDescription().trim().equals("")
? field.getName() : field.getDescription();
}
示例8: getColumnName
import net.sf.jasperreports.engine.JRField; //导入方法依赖的package包/类
private String getColumnName(JRField field) {
return field.getDescription() == null || field.getDescription().trim().equals("")
? field.getName() : field.getDescription();
}