Share this page

com.hp.lft.sdk.web

## Class EditFieldBaseDescription.Init<T extends EditFieldBaseDescription.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>

- Direct Known Subclasses:
    EditFieldDescription.Init, FileFieldDescription.Init
  Enclosing class:
    EditFieldBaseDescription

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

  Helper class for derived Builder classes.

- - ### Constructor Summary

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

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `T` | `maxCharsInLine(java.lang.Integer maxCharsInLine)` Initializes the number of characters that will be presented in each row.
    `T` | `placeholder(java.lang.String placeholder)` Initializes the hint text that is displayed in the edit box until a value is entered into it.
    `T` | `placeholder(StringProperty placeholder)` Initializes the hint text that is displayed in the edit box until a value is entered into it.
    `T` | `readOnly(java.lang.Boolean readOnly)` Initializes whether or not the control is read only.
    `T` | `required(java.lang.Boolean required)` Initializes whether or not the field is mandatory in the form.
    `T` | `value(java.lang.String value)` Initializes the text in the field.
    `T` | `value(StringProperty value)` Initializes the text in the field.

    - ### 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, build, 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

    - #### value

          public T value(java.lang.String value)

      Initializes the text in the field.
      Parameters:
        `value` - the text in the field.
      Returns:
        the description instance with the update state (builder pattern).

    - #### value

          public T value(StringProperty value)

      Initializes the text in the field.
      Parameters:
        `value` - a StringProperty (or RegExpProperty) representing the text in the field.
      Returns:
        the description instance with the update state (builder pattern).

    - #### placeholder

          public T placeholder(java.lang.String placeholder)

      Initializes the hint text that is displayed in the edit box until a value is entered into it.
      Parameters:
        `placeholder` - the hint text that is displayed in the edit box until a value is entered into it.
      Returns:
        the description instance with the update state (builder pattern).

    - #### placeholder

          public T placeholder(StringProperty placeholder)

      Initializes the hint text that is displayed in the edit box until a value is entered into it.
      Parameters:
        `placeholder` - a StringProperty (or RegExpProperty) representing the hint text that is displayed in the edit box until a value is entered into it.
      Returns:
        the description instance with the update state (builder pattern).

    - #### readOnly

          public T readOnly(java.lang.Boolean readOnly)

      Initializes whether or not the control is read only.
      Parameters:
        `readOnly` - whether or not the control is read only.
      Returns:
        the description instance with the update state (builder pattern).

    - #### required

          public T required(java.lang.Boolean required)

      Initializes whether or not the field is mandatory in the form.
      Parameters:
        `required` - whether or not the field is mandatory in the form.
      Returns:
        the description instance with the update state (builder pattern).

    - #### maxCharsInLine

          public T maxCharsInLine(java.lang.Integer maxCharsInLine)

      Initializes the number of characters that will be presented in each row.
      Parameters:
        `maxCharsInLine` - the number of characters that will be presented in each row.
      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: