Class DefaultValueHandler
java.lang.Object
com.saperion.ngc.iform.field.defaultValue.DefaultValueHandler
Utility class used to handle default values in IntelligentFields. The values are translated to
strings that can be used by actual field.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultValueHandler
forFieldAndString
(IntelligentField field, String value) Initializes the handler with the default value string as defined in the mask.Translates the current default value string so that the field can use the value.
-
Method Details
-
forFieldAndString
Initializes the handler with the default value string as defined in the mask.- Parameters:
value
- default value stringfield
- the intelligent field containing the value- Returns:
- DefaultValueHandler for the specified string
-
handleValue
Translates the current default value string so that the field can use the value. If the default value can not be handled, this method returns null.- Returns:
- translated string
-