- java.lang.Object
-
- org.tentackle.fx.translate.AbstractValueTranslator<T,T>
-
- org.tentackle.fx.translate.IdentityTranslator<T>
-
- Type Parameters:
T- the type
- All Implemented Interfaces:
ValueTranslator<T,T>
- Direct Known Subclasses:
BooleanBooleanTranslator,CharArrayCharArrayTranslator,ColorColorTranslator,EnumEnumTranslator,StringStringTranslator
public abstract class IdentityTranslator<T> extends AbstractValueTranslator<T,T>
The identity translator base class.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description IdentityTranslator(FxComponent component)Creates a dummy translator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Function<T,T>toModelFunction()Function to translate a view value to a model value.java.util.function.Function<T,T>toViewFunction()Function to translate a model value to a view value.-
Methods inherited from class org.tentackle.fx.translate.AbstractValueTranslator
getComponent, 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, toModel, toView
-
-
-
-
Constructor Detail
-
IdentityTranslator
public IdentityTranslator(FxComponent component)
Creates a dummy translator.- Parameters:
component- the component
-
-
Method Detail
-
toViewFunction
public java.util.function.Function<T,T> toViewFunction()
Description copied from interface:ValueTranslatorFunction to translate a model value to a view value.- Returns:
- the function
-
toModelFunction
public java.util.function.Function<T,T> toModelFunction()
Description copied from interface:ValueTranslatorFunction to translate a view value to a model value.- Returns:
- the function
-
-