org.wicketopia.joda.util.format
Class JodaFormatSupport<T>

java.lang.Object
  extended by org.wicketopia.joda.util.format.JodaFormatSupport<T>
All Implemented Interfaces:
Serializable, org.apache.wicket.util.io.IClusterable

public class JodaFormatSupport<T>
extends Object
implements org.apache.wicket.util.io.IClusterable

See Also:
Serialized Form

Field Summary
static int DEFAULT_PIVOT_YEAR
           
 
Constructor Summary
JodaFormatSupport(DateTimeTranslator<T> translator, FormatProvider formatProvider)
           
JodaFormatSupport(DateTimeTranslator<T> translator, FormatProvider formatProvider, boolean applyTimeZoneDifference, int pivotYear)
           
JodaFormatSupport(DateTimeTranslator<T> translator, String defaultStyle)
           
 
Method Summary
 T convertToObject(String value, Locale locale)
           
 String convertToString(T object, Locale locale)
           
 int getPivotYear()
           
 boolean isApplyTimeZoneDifference()
           
 void setApplyTimeZoneDifference(boolean applyTimeZoneDifference)
           
 void setPivotYear(int pivotYear)
           
 JodaFormatSupport<T> withProvider(FormatProvider formatProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PIVOT_YEAR

public static final int DEFAULT_PIVOT_YEAR
See Also:
Constant Field Values
Constructor Detail

JodaFormatSupport

public JodaFormatSupport(DateTimeTranslator<T> translator,
                         String defaultStyle)

JodaFormatSupport

public JodaFormatSupport(DateTimeTranslator<T> translator,
                         FormatProvider formatProvider)

JodaFormatSupport

public JodaFormatSupport(DateTimeTranslator<T> translator,
                         FormatProvider formatProvider,
                         boolean applyTimeZoneDifference,
                         int pivotYear)
Method Detail

getPivotYear

public int getPivotYear()

setPivotYear

public void setPivotYear(int pivotYear)

isApplyTimeZoneDifference

public boolean isApplyTimeZoneDifference()

setApplyTimeZoneDifference

public void setApplyTimeZoneDifference(boolean applyTimeZoneDifference)

convertToObject

public T convertToObject(String value,
                         Locale locale)

convertToString

public String convertToString(T object,
                              Locale locale)

withProvider

public JodaFormatSupport<T> withProvider(FormatProvider formatProvider)


Copyright © 2010-2013. All Rights Reserved.