本文整理汇总了Java中net.sf.jasperreports.engine.JRHyperlinkHelper.isEmpty方法的典型用法代码示例。如果您正苦于以下问题:Java JRHyperlinkHelper.isEmpty方法的具体用法?Java JRHyperlinkHelper.isEmpty怎么用?Java JRHyperlinkHelper.isEmpty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jasperreports.engine.JRHyperlinkHelper
的用法示例。
在下文中一共展示了JRHyperlinkHelper.isEmpty方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: customEvaluate
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入方法依赖的package包/类
@Override
protected void customEvaluate(JRCalculator calculator) throws JRExpressionEvalException
{
if (pieSeries != null && pieSeries.length > 0)
{
for(int i = 0; i < pieSeries.length; i++)
{
pieSeries[i].evaluate(calculator);
}
}
otherKey = (String)calculator.evaluate(getOtherKeyExpression());
otherLabel = (String)calculator.evaluate(getOtherLabelExpression());
if (!JRHyperlinkHelper.isEmpty(getOtherSectionHyperlink()))
{
evaluateOtherSectionHyperlink(calculator);
}
}
示例2: hasItemHyperlinks
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入方法依赖的package包/类
public boolean hasItemHyperlinks()
{
return !JRHyperlinkHelper.isEmpty(getItemHyperlink());
}
示例3: hasItemHyperlink
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入方法依赖的package包/类
public boolean hasItemHyperlink()
{
return !JRHyperlinkHelper.isEmpty(getItemHyperlink());
}
示例4: hasSectionHyperlinks
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入方法依赖的package包/类
public boolean hasSectionHyperlinks()
{
return !JRHyperlinkHelper.isEmpty(getSectionHyperlink());
}
示例5: getCustomDataset
import net.sf.jasperreports.engine.JRHyperlinkHelper; //导入方法依赖的package包/类
@Override
public Dataset getCustomDataset()
{
double total = 0;
List<Double> sortedValues = new ArrayList<Double>();
for(Number nv: values.values())
{
double dvalue = nv.doubleValue();
total += dvalue;
sortedValues.add(dvalue);
}
Collections.sort(sortedValues);
Double minValue = null;
if (getMinPercentage() != null && getMinPercentage().intValue() >= 0 && getMinPercentage().intValue() <= 100)//FIXMENOW why intValue?
{
minValue = new Double((getMinPercentage().doubleValue() * total) / 100);
}
if (getMaxCount() != null && getMaxCount().intValue() >= 0 && getMaxCount().intValue() <= values.size())
{
Double minValue2 = sortedValues.get(sortedValues.size() - getMaxCount().intValue());
minValue = minValue != null && minValue.doubleValue() > minValue2.doubleValue() ? minValue : minValue2;
}
int otherCount = 0;
Comparable<?> lastOtherKey = null;
Number lastOtherValue = null;
double otherTotal = 0;
DefaultPieDataset dataset = new DefaultPieDataset();
for(Iterator<Comparable<?>> it = values.keySet().iterator(); it.hasNext();)
{
Comparable<?> key = it.next();
Number value = values.get(key);
if (
minValue == null
|| value.doubleValue() >= minValue.doubleValue()
)
{
dataset.setValue(key, value);
}
else
{
otherCount++;
lastOtherKey = key;
lastOtherValue = value;
otherTotal += value.doubleValue();
}
}
if (otherCount == 1)
{
dataset.setValue(lastOtherKey, lastOtherValue);
}
else if (otherCount > 1)
{
otherKey = otherKey == null ? "Other" : otherKey;
dataset.setValue(otherKey, new Double(otherTotal));
labels.put(otherKey, otherLabel);
if (!JRHyperlinkHelper.isEmpty(getOtherSectionHyperlink()))
{
sectionHyperlinks.put(otherKey, otherSectionHyperlink);
}
}
return dataset;
}