Class DefaultValueHandler
- java.lang.Object
-
- com.saperion.ngc.iform.field.defaultValue.DefaultValueHandler
-
public final class DefaultValueHandler extends java.lang.Object
Utility class used to handle default values in IntelligentFields. The values are translated to strings that can be used by actual field.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultValueHandler
forFieldAndString(IntelligentField field, java.lang.String value)
Initializes the handler with the default value string as defined in the mask.java.lang.String
handleValue()
Translates the current default value string so that the field can use the value.
-
-
-
Method Detail
-
forFieldAndString
public static DefaultValueHandler forFieldAndString(IntelligentField field, java.lang.String value)
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
public java.lang.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
-
-