org.ztemplates.property
Class ZDateProperty

java.lang.Object
  extended by org.ztemplates.property.ZProperty<Date>
      extended by org.ztemplates.property.ZDateProperty

public class ZDateProperty
extends ZProperty<Date>


Field Summary
 
Fields inherited from class org.ztemplates.property.ZProperty
log
 
Constructor Summary
ZDateProperty(DateFormat df)
           
ZDateProperty(String name, DateFormat df)
           
 
Method Summary
 String format(Date date)
           
 Date parse(String formattedValue)
           
 
Methods inherited from class org.ztemplates.property.ZProperty
clear, getName, getStringValue, getStringValues, getValidators, getValue, getValues, isEmpty, isReadable, isRequired, isWriteable, setName, setReadable, setRequired, setStringValue, setStringValues, setValue, setWriteable, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZDateProperty

public ZDateProperty(String name,
                     DateFormat df)

ZDateProperty

public ZDateProperty(DateFormat df)
Method Detail

format

public String format(Date date)
Specified by:
format in class ZProperty<Date>

parse

public Date parse(String formattedValue)
           throws Exception
Specified by:
parse in class ZProperty<Date>
Throws:
Exception


Copyright © 2011. All Rights Reserved.