Package org.dashbuilder.displayer.client
Class DisplayerGwtFormatter
- java.lang.Object
-
- org.dashbuilder.displayer.client.DisplayerGwtFormatter
-
- All Implemented Interfaces:
AbstractDisplayer.Formatter
public class DisplayerGwtFormatter extends Object implements AbstractDisplayer.Formatter
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,com.google.gwt.i18n.client.DateTimeFormat>datePatternMapprotected static Map<String,com.google.gwt.i18n.client.NumberFormat>numberPatternMap
-
Constructor Summary
Constructors Constructor Description DisplayerGwtFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringformatDate(String pattern, Date d)StringformatDayOfWeek(org.dashbuilder.dataset.date.DayOfWeek dayOfWeek)StringformatMonth(org.dashbuilder.dataset.date.Month month)StringformatNumber(String pattern, Number n)protected com.google.gwt.i18n.client.DateTimeFormatgetDateFormat(String pattern)protected com.google.gwt.i18n.client.NumberFormatgetNumberFormat(String pattern)DateparseDate(String pattern, String d)
-
-
-
Method Detail
-
parseDate
public Date parseDate(String pattern, String d)
- Specified by:
parseDatein interfaceAbstractDisplayer.Formatter
-
formatDate
public String formatDate(String pattern, Date d)
- Specified by:
formatDatein interfaceAbstractDisplayer.Formatter
-
formatNumber
public String formatNumber(String pattern, Number n)
- Specified by:
formatNumberin interfaceAbstractDisplayer.Formatter
-
formatDayOfWeek
public String formatDayOfWeek(org.dashbuilder.dataset.date.DayOfWeek dayOfWeek)
- Specified by:
formatDayOfWeekin interfaceAbstractDisplayer.Formatter
-
formatMonth
public String formatMonth(org.dashbuilder.dataset.date.Month month)
- Specified by:
formatMonthin interfaceAbstractDisplayer.Formatter
-
getNumberFormat
protected com.google.gwt.i18n.client.NumberFormat getNumberFormat(String pattern)
-
getDateFormat
protected com.google.gwt.i18n.client.DateTimeFormat getDateFormat(String pattern)
-
-