Share this page

com.hp.lft.sdk.web

## Class EditFieldDescription.Init<T extends EditFieldDescription.Init<T>>

- java.lang.Object
- - com.hp.lft.sdk.DescriptionBase.Init<T>
  - - com.hp.lft.sdk.web.WebBaseDescription.Init<T>
    - - com.hp.lft.sdk.web.WebElementDescription.Init<T>
      - - com.hp.lft.sdk.web.FormFieldDescription.Init<T>
        - - com.hp.lft.sdk.web.EditFieldBaseDescription.Init<T>
          - - com.hp.lft.sdk.web.EditFieldDescription.Init<T>

- Direct Known Subclasses:
    EditFieldDescription.Builder, EditFieldDescription.Init, NumericFieldDescription.Init
  Enclosing class:
    EditFieldDescription

      protected abstract static class EditFieldDescription.Init<T extends EditFieldDescription.Init<T>>
      extends EditFieldBaseDescription.Init<T>

  Helper class for EditFieldDescription.Builder.

- - ### Constructor Summary

    Modifier | Constructor and Description
    --- | ---
    `protected` | `Init()`

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `EditFieldDescription` | `build()` Returns the built description instance (builder pattern).
    `T` | `defaultValue(java.lang.String defaultValue)` Initializes the default value that will be presented in the edit field.
    `T` | `defaultValue(StringProperty defaultValue)` Initializes the default value that will be presented in the edit field.
    `T` | `maxLength(java.lang.Integer maxLength)` Initializes the max number of characters that can be entered in the input field.
    `T` | `pattern(java.lang.String pattern)` Initializes the input pattern, for example, a phone number.
    `T` | `pattern(StringProperty pattern)` Initializes the input pattern, for example, a phone number.
    `T` | `rowsCount(java.lang.Integer rowsCount)` Initializes the number of rows for multi-line objects.

    - ### Methods inherited from class com.hp.lft.sdk.web.EditFieldBaseDescription.Init

      `maxCharsInLine, placeholder, placeholder, readOnly, required, value, value`

    - ### Methods inherited from class com.hp.lft.sdk.web.FormFieldDescription.Init

      `type, type`

    - ### Methods inherited from class com.hp.lft.sdk.web.WebElementDescription.Init

      `accessibilityName, accessibilityName, cssSelector, cssSelector, role, role, xpath, xpath`

    - ### Methods inherited from class com.hp.lft.sdk.web.WebBaseDescription.Init

      `absoluteLocation, absoluteLocation, absoluteLocation, attribute, attribute, attributes, className, className, id, id, innerHTML, innerHTML, innerText, innerText, location, location, location, name, name, outerHTML, outerHTML, outerText, outerText, size, size, size, style, style, styles, tagName, tagName, title, title, visible`

    - ### Methods inherited from class com.hp.lft.sdk.DescriptionBase.Init

      `index, self, vri, vri`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Init

          protected Init()

  - ### Method Detail

    - #### build

          public EditFieldDescription build()

      Description copied from class: `DescriptionBase.Init`
      Returns the built description instance (builder pattern).
      Overrides:
        `build` in class `WebElementDescription.Init<T extends EditFieldDescription.Init<T>>`
      Returns:
        The built description instance (builder pattern).

    - #### defaultValue

          public T defaultValue(java.lang.String defaultValue)

      Initializes the default value that will be presented in the edit field.
      Parameters:
        `defaultValue` - the default value that will be presented in the edit field.
      Returns:
        the description instance with the update state (builder pattern).

    - #### defaultValue

          public T defaultValue(StringProperty defaultValue)

      Initializes the default value that will be presented in the edit field.
      Parameters:
        `defaultValue` - a StringProperty (or RegExpProperty) representing the default value that will be presented in the edit field.
      Returns:
        the description instance with the update state (builder pattern).

    - #### maxLength

          public T maxLength(java.lang.Integer maxLength)

      Initializes the max number of characters that can be entered in the input field.
      Parameters:
        `maxLength` - the max number of characters that can be entered in the input field.
      Returns:
        the description instance with the update state (builder pattern).

    - #### pattern

          public T pattern(java.lang.String pattern)

      Initializes the input pattern, for example, a phone number.
      Parameters:
        `pattern` - the pattern of the input.
      Returns:
        the description instance with the update state (builder pattern).

    - #### pattern

          public T pattern(StringProperty pattern)

      Initializes the input pattern, for example, a phone number.
      Parameters:
        `pattern` - a StringProperty (or RegExpProperty) representing the pattern of the input.
      Returns:
        the description instance with the update state (builder pattern).

    - #### rowsCount

          public T rowsCount(java.lang.Integer rowsCount)

      Initializes the number of rows for multi-line objects.
      Parameters:
        `rowsCount` - the number of rows for multi-line objects.
      Returns:
        the description instance with the update state (builder pattern).

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: