java.lang.Object
org.tentackle.fx.translate.AbstractValueTranslator<Integer,String>
org.tentackle.fx.translate.ValueStringTranslator<Integer>
org.tentackle.fx.translate.NumberStringTranslator<Integer>
org.tentackle.fx.translate.IntegerStringTranslator
- All Implemented Interfaces:
ValueTranslator<Integer,String>
@ValueTranslatorService(modelClass=java.lang.Integer.class,
viewClass=java.lang.String.class)
public class IntegerStringTranslator
extends NumberStringTranslator<Integer>
Integer translator.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the default pattern according to the type.Function to translate a view value to a model value.Function to translate a model value to a view value.Methods inherited from class org.tentackle.fx.translate.NumberStringTranslator
getFormat, getValidChars, parseMethods inherited from class org.tentackle.fx.translate.ValueStringTranslator
getComponent, toModelMethods inherited from class org.tentackle.fx.translate.AbstractValueTranslator
isLenient, isMappingIncomplete, isModelModified, saveModelValue, setLenientMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tentackle.fx.ValueTranslator
bindingPropertiesUpdated, needsToModelTwice, toView
-
Constructor Details
-
IntegerStringTranslator
Creates a translator.- Parameters:
component- the text component
-
-
Method Details
-
toViewFunction
Description copied from interface:ValueTranslatorFunction to translate a model value to a view value.- Returns:
- the function
-
toModelFunction
Description copied from interface:ValueTranslatorFunction to translate a view value to a model value.- Returns:
- the function
-
getDefaultPattern
Description copied from class:NumberStringTranslatorGets the default pattern according to the type.- Specified by:
getDefaultPatternin classNumberStringTranslator<Integer>- Returns:
- the pattern
-