java.lang.Object
com.github.copilot.sdk.json.InputOptions
Options for the
SessionUiApi.input(String, InputOptions) convenience
method.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClears the maxLength setting, reverting to the default behavior.Clears the minLength setting, reverting to the default behavior.Gets the default value pre-populated in the field.Gets the descriptive text shown below the field.Gets the semantic format hint (e.g.,"email","uri","date","date-time").Gets the maximum character length.Gets the minimum character length.getTitle()Gets the title label for the input field.setDefaultValue(String defaultValue) Sets the default value pre-populated in the field.setDescription(String description) Sets the descriptive text shown below the field.Sets the semantic format hint.setMaxLength(int maxLength) Sets the maximum character length.setMinLength(int minLength) Sets the minimum character length.Sets the title label for the input field.
-
Constructor Details
-
InputOptions
public InputOptions()
-
-
Method Details
-
getTitle
Gets the title label for the input field. @return the title -
setTitle
Sets the title label for the input field. @param title the title @return this -
getDescription
Gets the descriptive text shown below the field. @return the description -
setDescription
Sets the descriptive text shown below the field. @param description the description @return this -
getMinLength
Gets the minimum character length.- Returns:
- an
OptionalIntcontaining the min length, orOptionalInt.empty()if not set
-
setMinLength
Sets the minimum character length. @param minLength the min length @return this -
clearMinLength
Clears the minLength setting, reverting to the default behavior.- Returns:
- this instance for method chaining
-
getMaxLength
Gets the maximum character length.- Returns:
- an
OptionalIntcontaining the max length, orOptionalInt.empty()if not set
-
setMaxLength
Sets the maximum character length. @param maxLength the max length @return this -
clearMaxLength
Clears the maxLength setting, reverting to the default behavior.- Returns:
- this instance for method chaining
-
getFormat
Gets the semantic format hint (e.g.,"email","uri","date","date-time").- Returns:
- the format hint
-
setFormat
Sets the semantic format hint. @param format the format @return this -
getDefaultValue
Gets the default value pre-populated in the field. @return the default value -
setDefaultValue
Sets the default value pre-populated in the field. @param defaultValue the default value @return this
-