com.miginfocom.util.dates
Interface DateStringProvider

All Superinterfaces:
StringProvider
All Known Implementing Classes:
DefaultDateStringProvider

public interface DateStringProvider
extends StringProvider

A generic formatter that takes a DateRangeI and returns a String.

Since:
6.0

Method Summary
 DateRangeI getDateRange()
          Property: The date range that is used for providing string.
 void setDateRange(DateRangeI dateRange)
          Property: The date range that is used for providing string.
 
Methods inherited from interface com.miginfocom.util.StringProvider
getString, getStringCount
 

Method Detail

setDateRange

void setDateRange(DateRangeI dateRange)
Property: The date range that is used for providing string.

Parameters:
dateRange - A date range. Should handle null and return something appropriate for the current time.

getDateRange

DateRangeI getDateRange()
Property: The date range that is used for providing string.

Returns:
The current date range. May be null.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.