1 28 package net.sf.jasperreports.engine.fill; 29 30 31 35 public abstract class AbstractValueProvider 36 { 37 38 39 42 private static AbstractValueProvider currentValueProvider = 43 new AbstractValueProvider() 44 { 45 public Object getValue(JRCalculable calculable) 46 { 47 return calculable.getValue(); 48 } 49 }; 50 51 54 private static AbstractValueProvider estimatedValueProvider = 55 new AbstractValueProvider() 56 { 57 public Object getValue(JRCalculable calculable) 58 { 59 return ((JRFillVariable) calculable).getEstimatedValue(); 60 } 61 }; 62 63 64 67 public static AbstractValueProvider getCurrentValueProvider() 68 { 69 return currentValueProvider; 70 } 71 72 73 76 public static AbstractValueProvider getEstimatedValueProvider() 77 { 78 return estimatedValueProvider; 79 } 80 81 82 85 public abstract Object getValue(JRCalculable calculable); 86 87 88 } 89 | Popular Tags |