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
-
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, parse
Methods inherited from class org.tentackle.fx.translate.ValueStringTranslator
getComponent, toModel
Methods inherited from class org.tentackle.fx.translate.AbstractValueTranslator
isLenient, isMappingIncomplete, isModelModified, saveModelValue, 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 Details
-
IntegerStringTranslator
Creates a translator.- Parameters:
component
- the text component
-
-
Method Details
-
toViewFunction
Description copied from interface:ValueTranslator
Function to translate a model value to a view value.- Returns:
- the function
-
toModelFunction
Description copied from interface:ValueTranslator
Function to translate a view value to a model value.- Returns:
- the function
-
getDefaultPattern
Description copied from class:NumberStringTranslator
Gets the default pattern according to the type.- Specified by:
getDefaultPattern
in classNumberStringTranslator<Integer>
- Returns:
- the pattern
-