java.lang.Object
org.tentackle.fx.translate.AbstractValueTranslator<M,String>
org.tentackle.fx.translate.ValueStringTranslator<M>
- Type Parameters:
M- the model's type
- All Implemented Interfaces:
ValueTranslator<M,String>
- Direct Known Subclasses:
DateStringTranslator,I18NTextStringTranslator,NumberStringTranslator,TemporalStringTranslator,TimestampStringTranslator,TimeStringTranslator
A value translator for text components.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the component.Gets the valid input characters.Converts a view value to a model value.Methods 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, toModelFunction, toView, toViewFunction
-
Constructor Details
-
ValueStringTranslator
Creates the translator.- Parameters:
component- the text component
-
-
Method Details
-
getComponent
Description copied from interface:ValueTranslatorGets the component.- Specified by:
getComponentin interfaceValueTranslator<M,String> - Overrides:
getComponentin classAbstractValueTranslator<M,String> - Returns:
- the component
-
toModel
Description copied from interface:ValueTranslatorConverts a view value to a model value.- Parameters:
text- the view's value- Returns:
- the model's value
-
getValidChars
Gets the valid input characters.- Returns:
- the valid input chars, null if unlimited
-