Share this page

com.hp.lft.sdk.web

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

- Direct Known Subclasses:
    ListBoxDescription.Builder, ListBoxDescription.Init
  Enclosing class:
    ListBoxDescription

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

  Helper class for ListBoxDescription.Builder.

- - ### Constructor Summary

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

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `ListBoxDescription` | `build()` Returns the built description instance (builder pattern).
    `T` | `defaultValue(java.lang.String defaultValue)` Initializes the initial text value, which is set when the object is reset.
    `T` | `defaultValue(StringProperty defaultValue)` Initializes the initial text value, which is set when the object is reset.
    `T` | `enabled(java.lang.Boolean isEnabled)` Initializes whether the list box is enabled.
    `T` | `firstItem(java.lang.String firstItem)` Initializes the first item in the list of items in the list.
    `T` | `firstItem(StringProperty firstItem)` Initializes the first item in the list of items in the list.
    `T` | `items(java.lang.String[] items)` Initializes the items in the list.
    `T` | `itemsCount(java.lang.Integer count)` Initializes the number of items in the list.
    `T` | `multiple(java.lang.Boolean isMultiple)` Initializes whether the user can select multiple choices.
    `T` | `selectedItems(java.lang.String[] selectedItems)` Initializes the selected items in the list.
    `T` | `value(java.lang.String value)` Initializes the current text in the edit field.
    `T` | `value(StringProperty value)` Initializes the current text in the edit field.
    `T` | `visibleItemsCount(java.lang.Integer visibleItemsCount)` Initializes the number of items that are displayed in the list box.

    - ### 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 ListBoxDescription build()

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

    - #### value

          public T value(java.lang.String value)

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

    - #### value

          public T value(StringProperty value)

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

    - #### defaultValue

          public T defaultValue(java.lang.String defaultValue)

      Initializes the initial text value, which is set when the object is reset.
      Parameters:
        `defaultValue` - the initial text value, which is set when the object is reset.
      Returns:
        the description instance with the update state (builder pattern).

    - #### defaultValue

          public T defaultValue(StringProperty defaultValue)

      Initializes the initial text value, which is set when the object is reset.
      Parameters:
        `defaultValue` - a StringProperty (or RegExpProperty) representing the initial text value, which is set when the object is reset.
      Returns:
        the description instance with the update state (builder pattern).

    - #### enabled

          public T enabled(java.lang.Boolean isEnabled)

      Initializes whether the list box is enabled.
      Parameters:
        `isEnabled` - true if the list box is enabled.
      Returns:
        the description instance with the update state (builder pattern).

    - #### multiple

          public T multiple(java.lang.Boolean isMultiple)

      Initializes whether the user can select multiple choices.
      Parameters:
        `isMultiple` - true if the user can select multiple choices.
      Returns:
        the description instance with the update state (builder pattern).

    - #### visibleItemsCount

          public T visibleItemsCount(java.lang.Integer visibleItemsCount)

      Initializes the number of items that are displayed in the list box.
      Parameters:
        `visibleItemsCount` - the number of items that are displayed in the list box.
      Returns:
        the description instance with the update state (builder pattern).

    - #### items

          public T items(java.lang.String[] items)

      Initializes the items in the list.
      Parameters:
        `items` - the items in the list.
      Returns:
        the description instance with the update state (builder pattern).

    - #### selectedItems

          public T selectedItems(java.lang.String[] selectedItems)

      Initializes the selected items in the list.
      Parameters:
        `selectedItems` - the selected items in the list.
      Returns:
        the description instance with the update state (builder pattern).

    - #### itemsCount

          public T itemsCount(java.lang.Integer count)

      Initializes the number of items in the list.
      Parameters:
        `count` - the number of items in the list.
      Returns:
        the description instance with the update state (builder pattern).

    - #### firstItem

          public T firstItem(java.lang.String firstItem)

      Initializes the first item in the list of items in the list.
      Parameters:
        `firstItem` - the first item in the list of items in the list.
      Returns:
        the description instance with the update state (builder pattern).

    - #### firstItem

          public T firstItem(StringProperty firstItem)

      Initializes the first item in the list of items in the list.
      Parameters:
        `firstItem` - a StringProperty (or RegExpProperty) representing the first item in the list of items in the list.
      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: