net.sf.dynamicreports.report.builder.datatype
Class DateType

java.lang.Object
  extended by net.sf.dynamicreports.report.base.datatype.AbstractDataType<Date,Date>
      extended by net.sf.dynamicreports.report.builder.datatype.DateType
All Implemented Interfaces:
Serializable, DRIDataType<Date,Date>
Direct Known Subclasses:
DateDayType, DateMonthType, DateYearToFractionType, DateYearToHourType, DateYearToMinuteType, DateYearToMonthType, DateYearToSecondType, DateYearType, TimeHourToFractionType, TimeHourToMinuteType, TimeHourToSecondType

public class DateType
extends AbstractDataType<Date,Date>

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)
See Also:
Serialized Form

Constructor Summary
DateType()
           
 
Method Summary
 HorizontalAlignment getHorizontalAlignment()
           
 String getPattern()
           
 Date stringToValue(String value, Locale locale)
           
 String valueToString(Date value, Locale locale)
           
 
Methods inherited from class net.sf.dynamicreports.report.base.datatype.AbstractDataType
getValueClass, getValueFormatter, stringToValue, stringToValue, valueToString, valueToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateType

public DateType()
Method Detail

getPattern

public String getPattern()
Specified by:
getPattern in interface DRIDataType<Date,Date>
Overrides:
getPattern in class AbstractDataType<Date,Date>

getHorizontalAlignment

public HorizontalAlignment getHorizontalAlignment()
Specified by:
getHorizontalAlignment in interface DRIDataType<Date,Date>
Overrides:
getHorizontalAlignment in class AbstractDataType<Date,Date>

valueToString

public String valueToString(Date value,
                            Locale locale)
Specified by:
valueToString in interface DRIDataType<Date,Date>
Overrides:
valueToString in class AbstractDataType<Date,Date>

stringToValue

public Date stringToValue(String value,
                          Locale locale)
                   throws DRException
Specified by:
stringToValue in interface DRIDataType<Date,Date>
Overrides:
stringToValue in class AbstractDataType<Date,Date>
Throws:
DRException


Copyright © 2010-2014. All Rights Reserved.