Interface InputTextStepPropertyBuilder<T,V>

All Superinterfaces:
StepPropertyBuilder<InputTextStepPropertyBuilder<T,V>,T,V>
All Known Subinterfaces:
NumberStepPropertyBuilder, StringStepPropertyBuilder

public interface InputTextStepPropertyBuilder<T,V> extends StepPropertyBuilder<InputTextStepPropertyBuilder<T,V>,T,V>
Builder for step property that takes a user input in a text field as an input. Extended by NumberStepPropertyBuilder and StringStepPropertyBuilder.
Since:
2.0.0
  • Method Details

    • withIsRequired

      InputTextStepPropertyBuilder<T,V> withIsRequired(boolean isRequired)
      Configures whether this step property must have a value assigned.
      Parameters:
      isRequired - requires a value to be assigned
      Returns:
      Input text step property builder
    • withPlaceHolder

      InputTextStepPropertyBuilder<T,V> withPlaceHolder(String placeHolder)
      Configures the placeholder of the input text field. A placeholder is a hint is displayed in the input field before the user enters a value.
      Parameters:
      placeHolder - hint to be displayed in input field
      Returns:
      Input text step property builder
    • withDefaultValue

      InputTextStepPropertyBuilder<T,V> withDefaultValue(V value)
      Configures the default value of the input text field.
      Parameters:
      value - default text field value
      Returns:
      Input text step property builder
    • withDefaultValue

      InputTextStepPropertyBuilder<T,V> withDefaultValue(Function<DefaultValueContext,V> defaultValueSupplier)
      Configures the default value of the input text field with context.
      Parameters:
      defaultValueSupplier - supplier for the default text field value
      Returns:
      Input text step property builder
      Since:
      2.4.0