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