- java.lang.Object
-
- org.tentackle.fx.translate.AbstractValueTranslator<M,java.lang.String>
-
- org.tentackle.fx.translate.ValueStringTranslator<java.time.LocalDate>
-
- org.tentackle.fx.translate.LocalDateStringConverter
-
- All Implemented Interfaces:
ValueTranslator<java.time.LocalDate,java.lang.String>
@ValueTranslatorService(modelClass=java.time.LocalDate.class, viewClass=java.lang.String.class) public class LocalDateStringConverter extends ValueStringTranslator<java.time.LocalDate>
LocalDate translator.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description LocalDateStringConverter(FxTextComponent component)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Function<java.lang.String,java.time.LocalDate>toModelFunction()Function to translate a view value to a model value.java.util.function.Function<java.time.LocalDate,java.lang.String>toViewFunction()Function to translate a model value to a view value.-
Methods inherited from class org.tentackle.fx.translate.ValueStringTranslator
getComponent, getValidChars, toModel
-
Methods inherited from class org.tentackle.fx.translate.AbstractValueTranslator
isLenient, setLenient
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tentackle.fx.ValueTranslator
bindingPropertiesUpdated, needsToModelTwice, toView
-
-
-
-
Constructor Detail
-
LocalDateStringConverter
public LocalDateStringConverter(FxTextComponent component)
-
-
Method Detail
-
toViewFunction
public java.util.function.Function<java.time.LocalDate,java.lang.String> toViewFunction()
Description copied from interface:ValueTranslatorFunction to translate a model value to a view value.- Returns:
- the function
-
toModelFunction
public java.util.function.Function<java.lang.String,java.time.LocalDate> toModelFunction()
Description copied from interface:ValueTranslatorFunction to translate a view value to a model value.- Returns:
- the function
-
-