java.lang.Object
javafx.util.StringConverter<Date>
javafx.util.converter.DateTimeStringConverter
javafx.util.converter.TimeStringConverter
StringConverter implementation for Date values that
 represent time.
- Since:
- JavaFX 2.1
- See Also:
- 
Field SummaryFields declared in class javafx.util.converter.DateTimeStringConverterdateFormat, dateStyle, locale, pattern, timeStyle
- 
Constructor SummaryConstructorsConstructorDescriptionTimeStringConverter(int timeStyle) TimeStringConverter(String pattern) Create aStringConverterforDatevalues, using the specified pattern.TimeStringConverter(DateFormat dateFormat) TimeStringConverter(Locale locale) Create aStringConverterforDatevalues, using the specified locale and theDateFormat.DEFAULTtime style.TimeStringConverter(Locale locale, int timeStyle) TimeStringConverter(Locale locale, String pattern) Create aStringConverterforDatevalues, using the specified locale and pattern.
- 
Method SummaryModifier and TypeMethodDescriptionprotected DateFormatReturn aDateFormatinstance to use for formatting and parsing in thisStringConverter.Methods declared in class javafx.util.converter.DateTimeStringConverterfromString, toString
- 
Constructor Details- 
TimeStringConverterpublic TimeStringConverter()
- 
TimeStringConverterpublic TimeStringConverter(int timeStyle) - Parameters:
- timeStyle- the given formatting style. For example,- DateFormat.SHORTfor "h:mm a" in the US locale.
- Since:
- JavaFX 8u40
 
- 
TimeStringConverterCreate aStringConverterforDatevalues, using the specified locale and theDateFormat.DEFAULTtime style.- Parameters:
- locale- the given locale.
 
- 
TimeStringConverter- Parameters:
- locale- the given locale.
- timeStyle- the given formatting style. For example,- DateFormat.SHORTfor "h:mm a" in the US locale.
- Since:
- JavaFX 8u40
 
- 
TimeStringConverterCreate aStringConverterforDatevalues, using the specified pattern.- Parameters:
- pattern- the pattern describing the time format.
 
- 
TimeStringConverterCreate aStringConverterforDatevalues, using the specified locale and pattern.- Parameters:
- locale- the given locale.
- pattern- the pattern describing the time format.
 
- 
TimeStringConverter- Parameters:
- dateFormat- the- DateFormatto be used for formatting and parsing.
 
 
- 
- 
Method Details- 
getDateFormatReturn a DateFormatinstance to use for formatting and parsing in thisStringConverter.- Overrides:
- getDateFormatin class- DateTimeStringConverter
- Returns:
- a DateFormatinstance for formatting and parsing in thisStringConverter
 
 
-