public class HeaderLabelUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HeaderLabelUtil.HeaderLabelBuiltinExpression
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);
}
}
);
}
/**
|
Constructor and Description |
---|
HeaderLabelUtil() |
Modifier and Type | Method and Description |
---|---|
static HeaderLabelUtil.HeaderLabelBuiltinExpression |
alterHeaderLabel(JRDesignFrame frame,
String suffix) |
public static HeaderLabelUtil.HeaderLabelBuiltinExpression alterHeaderLabel(JRDesignFrame frame, String suffix)
Copyright © 2016. All rights reserved.