Share this page

com.hp.lft.sdk.winforms

## 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.winforms.UiObjectDescriptionBase
        - - com.hp.lft.sdk.winforms.WindowDescription

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

      public class WindowDescription
      extends UiObjectDescriptionBase

  The description of a .NET Windows Forms 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
    --- | ---
    `java.lang.Boolean` | `hasBorder()` Indicates whether the object has a thin-line border.
    `java.lang.Boolean` | `hasCaption()` Indicates whether this object has a title bar.
    `java.lang.Boolean` | `hasSizebox()` Indicates whether this object has a sizing border.
    `java.lang.Boolean` | `hasSystemMenu()` Indicates whether this object has a window menu on its title bar.
    `java.lang.Boolean` | `isActive()` Indicates whether this object is the foreground object
    `java.lang.Boolean` | `isMaximizable()` Indicates whether this object can be maximized.
    `java.lang.Boolean` | `isMdiChildWindow()` Indicates whether this object is a multiple-document interface (MDI) child window.
    `java.lang.Boolean` | `isMinimizable()` Indicates whether this object can be minimized.
    `java.lang.Boolean` | `isPopupWindow()` Indicates whether this object is a pop-up window.
    `java.lang.Boolean` | `isToolWindow()` Indicates whether this object is intended to be a floating toolbar.
    `java.lang.Boolean` | `isTopmost()` Sets whether this object should stay above all non-topmost windows, even when this object is deactivated.
    `void` | `setActive(java.lang.Boolean isActive)` Sets whether this object is the foreground object.
    `void` | `setBorder(java.lang.Boolean hasBorder)` Sets whether this object has a thin-line border.
    `void` | `setCaption(java.lang.Boolean hasCaption)` Sets whether this object has a title bar.
    `void` | `setMaximizable(java.lang.Boolean isMaximizable)` Sets whether this object can be maximized.
    `void` | `setMdiChildWindow(java.lang.Boolean isMdiChildWindow)` Sets whether this object is a multiple-document interface (MDI) child window.
    `void` | `setMinimizable(java.lang.Boolean isMinimizable)` Sets whether this object can be minimized.
    `void` | `setPopupWindow(java.lang.Boolean isPopupWindow)` Sets whether this object is a pop-up window.
    `void` | `setSizebox(java.lang.Boolean hasSizebox)` Sets whether this object has a sizing border.
    `void` | `setSystemMenu(java.lang.Boolean hasSystemMenu)` Sets whether this object has a window menu on its title bar.
    `void` | `setToolWindow(java.lang.Boolean isToolWindow)` Sets whether this object is intended to be a floating toolbar.
    `void` | `setTopmost(java.lang.Boolean isTopmost)` Sets whether this object should stay above all non-topmost windows, even when this object is deactivated.

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

      `getAbsoluteLocation, getFullNamePath, getFullType, getLocation, getNativeClass, getObjectName, getObjectProperties, getSize, getText, getWindowClassRegExp, getWindowId, getWindowTitleRegExp, isChildWindow, isEnabled, isFocused, isOwnedWindow, isVisible, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setChildWindow, setEnabled, setFocused, setFullNamePath, setFullNamePath, setFullType, setFullType, setLocation, setLocation, setLocation, setNativeClass, setNativeClass, setObjectName, setObjectName, setObjectProperties, setOwnedWindow, setSize, setSize, setSize, setText, setText, setVisible, setWindowClassRegExp, setWindowClassRegExp, setWindowId, 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

    - #### setActive

          public void setActive(java.lang.Boolean isActive)

      Sets whether this object is the foreground object.
      Parameters:
        `isActive` - true if foreground

    - #### isActive

          public java.lang.Boolean isActive()

      Indicates whether this object is the foreground object
      Returns:
        true if foreground

    - #### setBorder

          public void setBorder(java.lang.Boolean hasBorder)

      Sets whether this object has a thin-line border.
      Parameters:
        `hasBorder` - true if has thin-line border

    - #### hasBorder

          public java.lang.Boolean hasBorder()

      Indicates whether the object has a thin-line border.
      Returns:
        true if has thin-line border

    - #### setCaption

          public void setCaption(java.lang.Boolean hasCaption)

      Sets whether this object has a title bar.
      Parameters:
        `hasCaption` - true if has title bar

    - #### hasCaption

          public java.lang.Boolean hasCaption()

      Indicates whether this object has a title bar.
      Returns:
        true if has title bar

    - #### setSizebox

          public void setSizebox(java.lang.Boolean hasSizebox)

      Sets whether this object has a sizing border.
      Parameters:
        `hasSizebox` - true if has sizing border

    - #### hasSizebox

          public java.lang.Boolean hasSizebox()

      Indicates whether this object has a sizing border.
      Returns:
        true if has sizing border

    - #### setSystemMenu

          public void setSystemMenu(java.lang.Boolean hasSystemMenu)

      Sets whether this object has a window menu on its title bar.
      Parameters:
        `hasSystemMenu` - true if has window menu on its title bar

    - #### hasSystemMenu

          public java.lang.Boolean hasSystemMenu()

      Indicates whether this object has a window menu on its title bar.
      Returns:
        true if has window menu on its title bar

    - #### setMdiChildWindow

          public void setMdiChildWindow(java.lang.Boolean isMdiChildWindow)

      Sets whether this object is a multiple-document interface (MDI) child window.
      Parameters:
        `isMdiChildWindow` - true if is MDI child window

    - #### isMdiChildWindow

          public java.lang.Boolean isMdiChildWindow()

      Indicates whether this object is a multiple-document interface (MDI) child window.
      Returns:
        true if is MDI child window

    - #### setPopupWindow

          public void setPopupWindow(java.lang.Boolean isPopupWindow)

      Sets whether this object is a pop-up window.
      Parameters:
        `isPopupWindow` - true if is pop-up window

    - #### isPopupWindow

          public java.lang.Boolean isPopupWindow()

      Indicates whether this object is a pop-up window.
      Returns:
        true if is pop-up window

    - #### setToolWindow

          public void setToolWindow(java.lang.Boolean isToolWindow)

      Sets whether this object is intended to be a floating toolbar.
      Parameters:
        `isToolWindow` - true if is tool window

    - #### isToolWindow

          public java.lang.Boolean isToolWindow()

      Indicates whether this object is intended to be a floating toolbar.
      Returns:
        true if is tool window

    - #### setMaximizable

          public void setMaximizable(java.lang.Boolean isMaximizable)

      Sets whether this object can be maximized.
      Parameters:
        `isMaximizable` - true if can be maximized

    - #### isMaximizable

          public java.lang.Boolean isMaximizable()

      Indicates whether this object can be maximized.
      Returns:
        true if can be maximized

    - #### setMinimizable

          public void setMinimizable(java.lang.Boolean isMinimizable)

      Sets whether this object can be minimized.
      Parameters:
        `isMinimizable` - true if can be minimized

    - #### isMinimizable

          public java.lang.Boolean isMinimizable()

      Indicates whether this object can be minimized.
      Returns:
        true if can be minimized

    - #### setTopmost

          public void setTopmost(java.lang.Boolean isTopmost)

      Sets whether this object should stay above all non-topmost windows, even when this object is deactivated.
      Parameters:
        `isTopmost` - true if should stay above all non-topmost windows

    - #### isTopmost

          public java.lang.Boolean isTopmost()

      Sets whether this object should stay above all non-topmost windows, even when this object is deactivated.
      Returns:
        true if should stay above all non-topmost windows

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: