Open topic with navigation

com.hp.lft.sdk.wpf

## Interface Window

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportDragAndDrop, SupportSendKeys, SupportsNativeObject, TestObject, TestObjectDescriber, TopLevelObject, UiObjectBase, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider

      public interface Window
      extends UiObjectBase, TopLevelObject

  A WPF window.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `activate()` Activates the window.
    `void` | `activate(MouseButton button)` Activates the window using the specified mouse button.
    `void` | `close()` Closes this window.
    `java.lang.String` | `getParentText()` Returns the text associated with the parent object of this object.
    `WindowState` | `getWindowState()` Returns the window state: maximized, minimized or normal.
    `boolean` | `isModal()` Indicates whether the window is modal.
    `void` | `maximize()` Maximizes this window.
    `void` | `minimize()` Minimizes this window to an icon.
    `void` | `move(int x, int y)` Moves this window to the specified absolute location on the screen.
    `void` | `move(java.awt.Point point)` Moves this window to the specified absolute location on the screen.
    `void` | `resize(java.awt.Dimension size)` Resizes this window to the specified dimensions.
    `void` | `resize(int width, int height)` Resizes this window to the specified dimensions.
    `void` | `restore()` Restores this window to its previous size.

    - ### Methods inherited from interface com.hp.lft.sdk.wpf.UiObjectBase

      `canFocus, getAttachedText, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, makeVisible, showContextMenu`

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

      `getHandle, getNativeClass, getWindowTitleRegExp, isEnabled, isFocused, isVisible, mouseMove`

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

      `click, click, click`

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

      `doubleClick, doubleClick, doubleClick`

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

      `getAbsoluteLocation, getLocation, getSize`

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

      `sendKeys, sendKeys`

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

      `dragAndDropOn, dragAndDropOn`

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

      `getNativeObject`

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

      `exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists`

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

      `describe`

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

      `waitUntilEnabled, waitUntilEnabled`

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

      `isEnabled`

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

      `waitUntilVisible, waitUntilVisible`

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

      `isVisible`

- - ### Method Detail

    - #### activate

          void activate()
                 throws GeneralLeanFtException

      Activates the window.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### activate

          void activate(MouseButton button)
                 throws GeneralLeanFtException

      Activates the window using the specified mouse button.
      Parameters:
        `button` - the mouse button used to click the window.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### close

          void close()
              throws GeneralLeanFtException

      Closes this window.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### maximize

          void maximize()
                 throws GeneralLeanFtException

      Maximizes this window.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### minimize

          void minimize()
                 throws GeneralLeanFtException

      Minimizes this window to an icon.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### move

          void move(java.awt.Point point)
             throws GeneralLeanFtException

      Moves this window to the specified absolute location on the screen.
      Parameters:
        `point` - absolute pixel location on the screen
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### move

          void move(int x,
                    int y)
             throws GeneralLeanFtException

      Moves this window to the specified absolute location on the screen.
      Parameters:
        `x` - in pixels
        `y` - in pixels
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### resize

          void resize(java.awt.Dimension size)
               throws GeneralLeanFtException

      Resizes this window to the specified dimensions.
      Parameters:
        `size` - the new dimensions
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### resize

          void resize(int width,
                      int height)
               throws GeneralLeanFtException

      Resizes this window to the specified dimensions.
      Parameters:
        `width` - in pixels
        `height` - in pixels
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### restore

          void restore()
                throws GeneralLeanFtException

      Restores this window to its previous size.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getWindowState

                                                      WindowState getWindowState()
                              throws GeneralLeanFtException

      Returns the window state: maximized, minimized or normal.
      Returns:
        the window state
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isModal

          boolean isModal()
                   throws GeneralLeanFtException

      Indicates whether the window is modal.
      Returns:
        true, if the window is modal.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getParentText

          java.lang.String getParentText()
                                  throws GeneralLeanFtException

      Returns the text associated with the parent object of this object.
      Returns:
        the text associated with the parent
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.