first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package net.sf.jasperreports.engine.fill;
|
||||
|
||||
public abstract class AbstractValueProvider {
|
||||
private static AbstractValueProvider currentValueProvider = new AbstractValueProvider() {
|
||||
public Object getValue(JRCalculable calculable) {
|
||||
return calculable.getValue();
|
||||
}
|
||||
};
|
||||
|
||||
private static AbstractValueProvider estimatedValueProvider = new AbstractValueProvider() {
|
||||
public Object getValue(JRCalculable calculable) {
|
||||
return ((JRFillVariable)calculable).getEstimatedValue();
|
||||
}
|
||||
};
|
||||
|
||||
public static AbstractValueProvider getCurrentValueProvider() {
|
||||
return currentValueProvider;
|
||||
}
|
||||
|
||||
public static AbstractValueProvider getEstimatedValueProvider() {
|
||||
return estimatedValueProvider;
|
||||
}
|
||||
|
||||
public abstract Object getValue(JRCalculable paramJRCalculable);
|
||||
}
|
Reference in New Issue
Block a user