Share this page

com.hp.lft.sdk.sap.gui

## Class ButtonDescription

- java.lang.Object
- - com.hp.lft.sdk.internal.PropertiesDescriptionBase
  - - com.hp.lft.sdk.PropertiesDescription
    - - com.hp.lft.sdk.DescriptionBase
      - - com.hp.lft.sdk.sap.gui.ElementDescription
        - - com.hp.lft.sdk.sap.gui.ButtonDescription

- All Implemented Interfaces:
    CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, java.lang.Cloneable

      public class ButtonDescription
      extends ElementDescription

  Description of a SAP GUI for Windows button.

- - ### Nested Class Summary

    Modifier and Type | Class and Description
    --- | ---
    `static class` | `ButtonDescription.Builder` This class can be used to construct an instance of the ButtonDescription class using the builder pattern.
    `protected static class` | `ButtonDescription.Init<T extends ButtonDescription.Init<T>>` Helper class for ButtonDescription.Builder.

  - ### Field Summary

    - ### Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `properties`

  - ### Constructor Summary

    Modifier | Constructor and Description
    --- | ---
    `` | `ButtonDescription()` Initializes a new instance of the ButtonDescription class.
    `protected` | `ButtonDescription(ButtonDescription.Init<?> init)` Initializes a new instance of the ButtonDescription class using the Builder pattern.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `StringProperty` | `getContainerName()` Returns the name of the parent object.
    `StringProperty` | `getText()` Returns the text associated with the object.
    `StringProperty` | `getTooltip()` Returns the text of the label.
    `java.lang.Boolean` | `isEnabled()` Indicates whether the object can accept user input.
    `void` | `setContainerName(java.lang.String containerName)` Sets the name of the parent object.
    `void` | `setContainerName(StringProperty containerName)` Sets the name of the parent object.
    `void` | `setEnabled(java.lang.Boolean isEnabled)` Sets whether the object can accept user input.
    `void` | `setText(java.lang.String text)` Sets the text associated with the object.
    `void` | `setText(StringProperty text)` Sets the text associated with the object.
    `void` | `setTooltip(java.lang.String tooltip)` Sets the value of the object's tooltip.
    `void` | `setTooltip(StringProperty tooltip)` Sets the value of the object's tooltip.

    - ### Methods inherited from class com.hp.lft.sdk.sap.gui.ElementDescription

      `getAbsoluteLocation, getId, getLocation, getName, getSize, getType, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setId, setId, setLocation, setLocation, setLocation, setName, setName, setSize, setSize, setSize, setType`

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

      `cloneTo, getIndex, getIndexType, getVRI, setIndex, setIndexType, setVRI, setVRI`

    - ### Methods inherited from class com.hp.lft.sdk.PropertiesDescription

      `clone`

    - ### Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `getValueAs, getValueAsStringProperty, insertValue`

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

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

    - ### Methods inherited from interface com.hp.lft.sdk.CloneableObject

      `clone`

- - ### Constructor Detail

    - #### ButtonDescription

          public ButtonDescription()

      Initializes a new instance of the ButtonDescription class.

    - #### ButtonDescription

          protected ButtonDescription(ButtonDescription.Init<?> init)

      Initializes a new instance of the ButtonDescription class using the Builder pattern.
      Parameters:
        `init` - the Builder pattern.

  - ### Method Detail

    - #### setTooltip

          public void setTooltip(StringProperty tooltip)

      Sets the value of the object's tooltip.
      Parameters:
        `tooltip` - a `StringProperty` or `RegExpProperty`.

    - #### setTooltip

          public void setTooltip(java.lang.String tooltip)

      Sets the value of the object's tooltip.
      Parameters:
        `tooltip` - the value of the object's tooltip.

    - #### getTooltip

          public StringProperty getTooltip()

      Returns the text of the label.
      Returns:
        a StringProperty representing the text of the label.

    - #### setContainerName

          public void setContainerName(StringProperty containerName)

      Sets the name of the parent object.
      Parameters:
        `containerName` - a `StringProperty` or `RegExpProperty`.

    - #### setContainerName

          public void setContainerName(java.lang.String containerName)

      Sets the name of the parent object.
      Parameters:
        `containerName` - the name of the parent object.

    - #### getContainerName

          public StringProperty getContainerName()

      Returns the name of the parent object.
      Returns:
        a StringProperty representing the name of the parent object.

    - #### setText

          public void setText(StringProperty text)

      Sets the text associated with the object.
      Parameters:
        `text` - a `StringProperty` or `RegExpProperty`.

    - #### setText

          public void setText(java.lang.String text)

      Sets the text associated with the object.
      Parameters:
        `text` - the text associated with the object.

    - #### getText

          public StringProperty getText()

      Returns the text associated with the object.
      Returns:
        the a StringProperty representing text associated with the object.

    - #### setEnabled

          public void setEnabled(java.lang.Boolean isEnabled)

      Sets whether the object can accept user input.
      Parameters:
        `isEnabled` - true to set as enabled.

    - #### isEnabled

          public java.lang.Boolean isEnabled()

      Indicates whether the object can accept user input.
      Returns:
        true if enabled.

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: