StringConverter implementation for LocalTime values.
LocalDateStringConverter, LocalDateTimeStringConverter
| Modifier and Type | Field and Description |
|---|---|
| pack-priv LocalDateTimeStringConverter. |
| Access | Constructor and Description |
|---|---|
| public | LocalTimeStringConverter()
Create a |
| public | LocalTimeStringConverter(FormatStyle
The timeStyle)FormatStyle that will be used by the default
formatter and parser. If null then FormatStyle#SHORT will be used.Create a |
| public | LocalTimeStringConverter(FormatStyle
The timeStyle, Locale FormatStyle that will be used by the default
formatter and parser. If null then FormatStyle#SHORT will be used.The locale)Locale that will be used by the default
formatter and parser. If null then
Locale.getDefault(Locale.Category.FORMAT) will be used.Create a StringConverter for |
| public | LocalTimeStringConverter(DateTimeFormatter
An instance of formatter, DateTimeFormatter DateTimeFormatter which
will be used for formatting by the toString() method. If null
then a default formatter will be used.An instance of parser)DateTimeFormatter which
will be used for parsing by the fromString() method. This can
be identical to formatter. If null, then formatter will be
used, and if that is also null, then a default parser will be
used.Create a StringConverter for |
| Modifier and Type | Method and Description |
|---|---|
| public LocalTime | fromString(String value)
Implements abstract javafx. Converts the string provided into an object defined by the specific converter. |
| public String | toString(LocalTime value)
Implements abstract javafx. Converts the object provided into its string form. |
| ldtConverter | back to summary |
|---|---|
| pack-priv LocalDateTimeStringConverter. | |
| LocalTimeStringConverter | back to summary |
|---|---|
| public LocalTimeStringConverter() Create a | |
| LocalTimeStringConverter | back to summary |
|---|---|
| public LocalTimeStringConverter(FormatStyle timeStyle) Create a
| |
| LocalTimeStringConverter | back to summary |
|---|---|
| public LocalTimeStringConverter(FormatStyle timeStyle, Locale locale) Create a StringConverter for
| |
| LocalTimeStringConverter | back to summary |
|---|---|
| public LocalTimeStringConverter(DateTimeFormatter formatter, DateTimeFormatter parser) Create a StringConverter for For example, a fixed pattern can be used for converting both ways:
| |
| fromString | back to summary |
|---|---|
| public LocalTime 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.
| |
| toString | back to summary |
|---|---|
| public String toString(LocalTime 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.
| |