com.isti.quakewatch.alert
Interface AlertMsgDateFormatterInterface

All Known Implementing Classes:
AlertMsgDateFormatter

public interface AlertMsgDateFormatterInterface

Interface AlertMsgDateFormatterInterface defines an alert message date formatter.


Method Summary
 java.lang.String formatLongMsgDate(java.util.Date dateObj, boolean gmtFlag)
          Formats a date into a string for a long-format message.
 java.lang.String formatShortMsgDate(java.util.Date dateObj)
          Formats a date into a string for a short-format message.
 void updateLocalTimeZone(boolean useGMTShortFlag, java.lang.String localTimeZone, boolean updateShortFlag)
          Updates the date formatters that use the local-time-zone configuration property.
 void updateShortDateFmtZone(boolean useGMTShortFlag, java.lang.String localTimeZone)
          Updates the time zone for the date formatter used for short messages.
 

Method Detail

formatLongMsgDate

java.lang.String formatLongMsgDate(java.util.Date dateObj,
                                   boolean gmtFlag)
Formats a date into a string for a long-format message.

Parameters:
dateObj - the date object to format.
gmtFlag - true for GMT time zone; false for local time zone.
Returns:
The formatted date string.

formatShortMsgDate

java.lang.String formatShortMsgDate(java.util.Date dateObj)
Formats a date into a string for a short-format message.

Parameters:
dateObj - the date object to format.
Returns:
The formatted date string.

updateLocalTimeZone

void updateLocalTimeZone(boolean useGMTShortFlag,
                         java.lang.String localTimeZone,
                         boolean updateShortFlag)
Updates the date formatters that use the local-time-zone configuration property.

Parameters:
useGMTShortFlag - true to use GMT for date/times in short messages.
localTimeZone - the local time zone.
updateShortFlag - true to always update the the date formatter used for short messages.

updateShortDateFmtZone

void updateShortDateFmtZone(boolean useGMTShortFlag,
                            java.lang.String localTimeZone)
Updates the time zone for the date formatter used for short messages.

Parameters:
useGMTShortFlag - true to use GMT for date/times in short messages.
localTimeZone - the local time zone.