1 28 package net.sf.jasperreports.engine.export.data; 29 30 import net.sf.jasperreports.engine.JRException; 31 32 36 public class NumberTextValue extends TextValue 37 { 38 private final Number value; 39 private final String pattern; 40 41 public NumberTextValue(String text, Number value, String pattern) 42 { 43 super(text); 44 45 this.value = value; 46 this.pattern = pattern; 47 } 48 49 public String getPattern() 50 { 51 return pattern; 52 } 53 54 public Number getValue() 55 { 56 return value; 57 } 58 59 public void handle(TextValueHandler handler) throws JRException 60 { 61 handler.handle(this); 62 } 63 64 } 65 | Popular Tags |