Class LocalTimeStringTranslator
java.lang.Object
org.tentackle.fx.translate.AbstractValueTranslator<LocalTime, String>
org.tentackle.fx.translate.ValueStringTranslator<LocalTime>
org.tentackle.fx.translate.TemporalStringTranslator<LocalTime>
org.tentackle.fx.translate.LocalTimeStringTranslator
- All Implemented Interfaces:
ValueTranslator<LocalTime, String>, NumberShortcut.WindowProvider, SmartDateTimeParser.Shortcut
@ValueTranslatorService(modelClass=LocalTime.class,
viewClass=String.class)
public class LocalTimeStringTranslator
extends TemporalStringTranslator<LocalTime>
Translator for
LocalTime.-
Field Summary
Fields inherited from class TemporalStringTranslator
DAY_WINDOW, MONTH_WINDOW, REFERENCE_DATE_SUPPLIER, YEAR_WINDOW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SmartDateTimeParser<LocalTime> Creates the parser instance according to the concrete data type.Methods inherited from class TemporalStringTranslator
connectAsReferenceDateSuppliers, format, getDayWindow, getDefaultDayWindow, getDefaultMonthWindow, getDefaultYearWindow, getFilters, getHandlers, getLastValue, getMonthWindow, getParser, getReferenceDateSupplier, getShortcuts, getYearWindow, parse, parse, test, toModelFunction, toViewFunctionMethods inherited from class ValueStringTranslator
getComponent, getValidChars, toModelMethods inherited from class AbstractValueTranslator
isLenient, isMappingIncomplete, isModelModified, saveModelValue, setLenientMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ValueTranslator
bindingPropertiesUpdated, needsToModelTwice, toView
-
Constructor Details
-
LocalTimeStringTranslator
Creates a translator.- Parameters:
component- the text component
-
-
Method Details
-
createParser
Description copied from class:TemporalStringTranslatorCreates the parser instance according to the concrete data type.- Specified by:
createParserin classTemporalStringTranslator<LocalTime>- Returns:
- the parser
-