|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ds.fw.types.formatter.FwExpirationDateFormatter
Support the formatting and parsing of dates in text fields. Valid formats are: mmyy m/yy m/ccyy mm/yy mm/ccyy mmm yy mmm ccyy
| Field Summary | |
static java.lang.String[] |
MONTH_NAMES
An array containing the short names of the months |
| Constructor Summary | |
FwExpirationDateFormatter()
|
|
| Method Summary | |
int |
asInt(java.lang.String s)
Transform a string (given as parameter) to int |
com.ds.fw.types.data.FwDateIF |
getDateFor(int yy,
int mm)
Gets the date by a given year and month number(from 1 to 12) |
com.ds.fw.types.data.FwDateIF |
getDateFor(int yy,
java.lang.String mmm)
Gets the date by a given year and a short name of a month |
com.ds.fw.types.data.FwDateIF |
getDateFor(java.lang.String s)
Constructs a FwDate object from a given string |
int |
getMonthFor(java.lang.String s)
Gets the month number (from 0 to 11) by the short name of the month |
static java.lang.String |
toStringValue(com.ds.fw.types.data.FwDateIF date,
java.util.Locale loc)
Gets the string representation of a date |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String[] MONTH_NAMES
| Constructor Detail |
public FwExpirationDateFormatter()
| Method Detail |
public static java.lang.String toStringValue(com.ds.fw.types.data.FwDateIF date,
java.util.Locale loc)
date - - the dateloc - - this parameter is not used in the code of the method
public com.ds.fw.types.data.FwDateIF getDateFor(java.lang.String s)
s - - the string we want to parse
public int getMonthFor(java.lang.String s)
s - - the short name of the month
public com.ds.fw.types.data.FwDateIF getDateFor(int yy,
java.lang.String mmm)
yy - - the yearmmm - - the month's short name
public com.ds.fw.types.data.FwDateIF getDateFor(int yy,
int mm)
yy - - the yearmm - - the month number (from 1 to 12)
public int asInt(java.lang.String s)
s - - the string we want to transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||