StringConverter implementation for Date values that
represent a date and time.
DateStringConverter, TimeStringConverter
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final DateFormat | |
| pack-priv final int | |
| pack-priv final Locale | |
| pack-priv final String | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| public | DateTimeStringConverter()
Create a |
| public | DateTimeStringConverter(int
the given formatting style. For example,
dateStyle, int DateFormat#SHORT for "M/d/yy" in the US locale.the given formatting style. For example,
timeStyle)DateFormat#SHORT for "h:mm a" in the US locale.Create a |
| public | DateTimeStringConverter(Locale
the given locale. locale)Create a |
| public | DateTimeStringConverter(Locale
the given locale. locale, int the given formatting style. For example,
dateStyle, int DateFormat#SHORT for "M/d/yy" in the US locale.the given formatting style. For example,
timeStyle)DateFormat#SHORT for "h:mm a" in the US locale.Create a |
| public | DateTimeStringConverter(String
the pattern describing the date and time format. pattern)Create a |
| public | DateTimeStringConverter(Locale
the given locale. locale, String the pattern describing the date and time format. pattern)Create a |
| public | DateTimeStringConverter(DateFormat
the dateFormat)DateFormat to be used for formatting and
parsing.Create a |
| pack-priv | DateTimeStringConverter(Locale locale, String pattern, DateFormat dateFormat, int dateStyle, int timeStyle)
|
| Modifier and Type | Method and Description |
|---|---|
| public Date | fromString(String
the value)String to convertImplements abstract javafx. Converts the string provided into an object defined by the specific converter. |
| pack-priv DateFormat | getDateFormat()
Returns a |
| public String | toString(Date
the object of type value)T to convertImplements abstract javafx. Converts the object provided into its string form. |
| dateFormat | back to summary |
|---|---|
| pack-priv final DateFormat dateFormat | |
| dateStyle | back to summary |
|---|---|
| pack-priv final int dateStyle | |
| locale | back to summary |
|---|---|
| pack-priv final Locale locale | |
| pattern | back to summary |
|---|---|
| pack-priv final String pattern | |
| timeStyle | back to summary |
|---|---|
| pack-priv final int timeStyle | |
| DateTimeStringConverter | back to summary |
|---|---|
| public DateTimeStringConverter() Create a | |
| DateTimeStringConverter | back to summary |
|---|---|
| public DateTimeStringConverter(int dateStyle, int timeStyle) Create a
| |
| DateTimeStringConverter | back to summary |
|---|---|
| public DateTimeStringConverter(Locale locale) Create a
| |
| DateTimeStringConverter | back to summary |
|---|---|
| public DateTimeStringConverter(Locale locale, int dateStyle, int timeStyle) Create a
| |
| DateTimeStringConverter | back to summary |
|---|---|
| public DateTimeStringConverter(String pattern) Create a
| |
| DateTimeStringConverter | back to summary |
|---|---|
| public DateTimeStringConverter(Locale locale, String pattern) Create a | |
| DateTimeStringConverter | back to summary |
|---|---|
| public DateTimeStringConverter(DateFormat dateFormat) Create a
| |
| DateTimeStringConverter | back to summary |
|---|---|
| pack-priv DateTimeStringConverter(Locale locale, String pattern, DateFormat dateFormat, int dateStyle, int timeStyle) | |
| fromString | back to summary |
|---|---|
| public Date fromString(String value) Implements abstract javafx. Doc from javafx. Converts the string provided into an object defined by the specific converter. Format of the string and type of the resulting object is defined by the specific converter. | |
| getDateFormat | back to summary |
|---|---|
| pack-priv DateFormat getDateFormat() Returns a
| |
| toString | back to summary |
|---|---|
| public String toString(Date value) Implements abstract javafx. Doc from javafx. Converts the object provided into its string form. Format of the returned string is defined by the specific converter. | |