Share this page

com.hp.lft.sdk.mobile

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

- java.lang.Object
- - com.hp.lft.sdk.mobile.UiObjectBaseDescription.Init<T>
  - - com.hp.lft.sdk.mobile.ButtonDescription.Init<T>

- Direct Known Subclasses:
    ButtonDescription.Builder
  Enclosing class:
    ButtonDescription

      protected abstract static class ButtonDescription.Init<T extends ButtonDescription.Init<T>>
      extends UiObjectBaseDescription.Init<T>

  Helper class for ButtonDescription.Builder.

- - ### Constructor Summary

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

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `ButtonDescription` | `build()`
    `T` | `text(java.lang.String text)` Initializes the text on the button.
    `T` | `text(StringProperty text)` Initializes the text on the button.

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

      `accessibilityId, accessibilityId, className, container, mobileCenterIndex, resourceId, resourceId, 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 ButtonDescription build()

    - #### text

          public T text(StringProperty text)

      Initializes the text on the button.
      Parameters:
        `text` - a StringProperty (or RegExpProperty) representing the text on the button.
      Returns:
        the description instance with the updated state (builder pattern).

    - #### text

          public T text(java.lang.String text)

      Initializes the text on the button.
      Parameters:
        `text` - the text on the button.
      Returns:
        the description instance with the updated 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: