- java.lang.Object
-
- org.tentackle.fx.translate.AbstractValueTranslator<M,java.lang.String>
-
- org.tentackle.fx.translate.ValueStringTranslator<java.time.LocalTime>
-
- org.tentackle.fx.translate.LocalTimeStringConverter
-
- All Implemented Interfaces:
ValueTranslator<java.time.LocalTime,java.lang.String>
@ValueTranslatorService(modelClass=java.time.LocalTime.class, viewClass=java.lang.String.class) public class LocalTimeStringConverter extends ValueStringTranslator<java.time.LocalTime>
LocalTime translator.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description LocalTimeStringConverter(FxTextComponent component)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Function<java.lang.String,java.time.LocalTime>toModelFunction()Function to translate a view value to a model value.java.util.function.Function<java.time.LocalTime,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
-
LocalTimeStringConverter
public LocalTimeStringConverter(FxTextComponent component)
-
-
Method Detail
-
toViewFunction
public java.util.function.Function<java.time.LocalTime,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.LocalTime> toModelFunction()
Description copied from interface:ValueTranslatorFunction to translate a view value to a model value.- Returns:
- the function
-
-