net.sf.jasperreports.components.headertoolbar
Class HeaderLabelUtil.HeaderLabelBuiltinExpression
java.lang.Object
net.sf.jasperreports.components.headertoolbar.HeaderLabelUtil.HeaderLabelBuiltinExpression
- All Implemented Interfaces:
- BuiltinExpressionEvaluator
- Enclosing class:
- HeaderLabelUtil
public static class HeaderLabelUtil.HeaderLabelBuiltinExpression
- extends Object
- implements BuiltinExpressionEvaluator
private static JRTextField getProxy(final JRTextField textField, final SortOrderEnum sortOrder)
{
return
(JRTextField)Proxy.newProxyInstance(
HeaderLabelUtil.class.getClassLoader(),
new Class>[]{JRTextField.class},
new InvocationHandler()
{
public Object invoke(
Object proxy,
Method method,
Object[] args
) throws Throwable
{
if ("getExpression".equals(method.getName()))
{
JRDesignExpression expression = new JRDesignExpression();
return
Color.blue;
}
if ("visit".equals(method.getName()))
{
((JRVisitor)args[0]).visitTextField((JRTextField)proxy);
return null;
}
return method.invoke(textField, args);
}
}
);
}
/**
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeaderLabelUtil.HeaderLabelBuiltinExpression
public HeaderLabelUtil.HeaderLabelBuiltinExpression(JRExpression expression,
String suffix)
init
public void init(Map<String,JRFillParameter> parametersMap,
Map<String,JRFillField> fieldsMap,
Map<String,JRFillVariable> variablesMap,
WhenResourceMissingTypeEnum resourceMissingType)
throws JRException
- Specified by:
init in interface BuiltinExpressionEvaluator
- Throws:
JRException
evaluate
public Object evaluate(DatasetExpressionEvaluator evaluator)
throws JRExpressionEvalException
- Specified by:
evaluate in interface BuiltinExpressionEvaluator
- Throws:
JRExpressionEvalException
evaluateOld
public Object evaluateOld(DatasetExpressionEvaluator evaluator)
throws JRExpressionEvalException
- Specified by:
evaluateOld in interface BuiltinExpressionEvaluator
- Throws:
JRExpressionEvalException
evaluateEstimated
public Object evaluateEstimated(DatasetExpressionEvaluator evaluator)
throws JRExpressionEvalException
- Specified by:
evaluateEstimated in interface BuiltinExpressionEvaluator
- Throws:
JRExpressionEvalException
getExpression
public JRExpression getExpression()
Copyright © 2012. All Rights Reserved.