Share this page

com.hp.lft.sdk.wpf

## Class WindowDescription

- java.lang.Object
- - com.hp.lft.sdk.internal.PropertiesDescriptionBase
  - - com.hp.lft.sdk.PropertiesDescription
    - - com.hp.lft.sdk.DescriptionBase
      - - com.hp.lft.sdk.wpf.UiObjectDescriptionBase
        - - com.hp.lft.sdk.wpf.WindowDescription

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

      public class WindowDescription
      extends UiObjectDescriptionBase

  The description of a WPF Window test object.

- - ### Nested Class Summary

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

  - ### Field Summary

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

      `properties`

  - ### Constructor Summary

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

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `StringProperty` | `getParentText()` Return the text associated with the parent object of the object.
    `java.lang.Boolean` | `isModal()` Indicates whether the window is modal.
    `void` | `setModal(java.lang.Boolean isModal)` Set whether the window is the modal object.
    `void` | `setParentText(java.lang.String parentText)` Sets the text associated with the parent object of this object.
    `void` | `setParentText(StringProperty parentText)` Sets the text associated with the parent object of this object.

    - ### Methods inherited from class com.hp.lft.sdk.wpf.UiObjectDescriptionBase

      `canFocus, getAbsoluteLocation, getAttachedText, getFullNamePath, getFullType, getLocation, getNativeClass, getObjectName, getObjectProperties, getSize, getText, getWindowTitleRegExp, isEnabled, isFocused, isVisible, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setAttachedText, setAttachedText, setCanFocus, setEnabled, setFocused, setFullNamePath, setFullNamePath, setFullType, setFullType, setLocation, setLocation, setLocation, setNativeClass, setNativeClass, setObjectName, setObjectName, setObjectProperties, setSize, setSize, setSize, setText, setText, setVisible, setWindowTitleRegExp, setWindowTitleRegExp`

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

    - #### WindowDescription

          public WindowDescription()

      Initializes a new instance of the WindowDescription class.

    - #### WindowDescription

          protected WindowDescription(WindowDescription.Init<?> init)

  - ### Method Detail

    - #### setModal

          public void setModal(java.lang.Boolean isModal)

      Set whether the window is the modal object.
      Parameters:
        `isModal` - whether the window is modal.

    - #### isModal

          public java.lang.Boolean isModal()

      Indicates whether the window is modal.
      Returns:
        true, if the window is modal.

    - #### setParentText

          public void setParentText(java.lang.String parentText)

      Sets the text associated with the parent object of this object.
      Parameters:
        `parentText` - the text to associate with the parent object

    - #### setParentText

          public void setParentText(StringProperty parentText)

      Sets the text associated with the parent object of this object.
      Parameters:
        `parentText` - a StringProperty or RegExpProperty

    - #### getParentText

          public StringProperty getParentText()

      Return the text associated with the parent object of the object.
      Returns:
        parentText the text associated with the parent

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: