Class DefaultValueHandler

java.lang.Object
com.saperion.ngc.iform.field.defaultValue.DefaultValueHandler

public final class DefaultValueHandler extends Object
Utility class used to handle default values in IntelligentFields. The values are translated to strings that can be used by actual field.
  • Method Details

    • forFieldAndString

      public static DefaultValueHandler forFieldAndString(IntelligentField field, String value)
      Initializes the handler with the default value string as defined in the mask.
      Parameters:
      value - default value string
      field - the intelligent field containing the value
      Returns:
      DefaultValueHandler for the specified string
    • handleValue

      public 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