Open topic with navigation

com.hp.lft.sdk.powerbuilder

## Interface Window

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

      public interface Window
      extends UiObjectWithLayoutInfo, TopLevelObject

  A power builder window.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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 the window.
    `WindowState` | `getWindowState()` The current window state.
    `boolean` | `hasBorder()` Indicates whether the window has a thin-line border.
    `boolean` | `hasCaption()` Indicates whether the window has a title bar.
    `boolean` | `hasSizebox()` Indicates whether the window has a sizing border.
    `boolean` | `hasSystemMenu()` Indicates whether the window has a window menu on its title bar.
    `boolean` | `isActive()` Indicates whether the window is the foreground object (currently active).
    `boolean` | `isChildWindow()` Indicates whether the window is a child window.
    `boolean` | `isMaximizable()` Indicates whether the window can be maximized.
    `boolean` | `isMdiChildWindow()` Indicates whether the window is a multiple-document interface (MDI) child window.
    `boolean` | `isMinimizable()` Indicates whether the window can be minimized.
    `boolean` | `isOwnedWindow()` Indicates whether the window has an owner window.
    `boolean` | `isPopupWindow()` Indicates whether the window is a pop-up window.
    `boolean` | `isToolWindow()` Indicates whether the window is a tool window (a floating toolbar).
    `boolean` | `isTopmost()` Indicates whether the window is placed above all non-topmost windows and remains in place, even when the window is deactivated.
    `void` | `maximize()` Maximizes the window.
    `void` | `minimize()` Minimizes the window to an icon.
    `void` | `move(int x, int y)` Moves the window to the specified absolute location on the screen with X,Y coordinates.
    `void` | `move(Point point)` Moves the window to the specified absolute location on the screen with a Point object.
    `void` | `resize(Dimension size)` Resizes the window to the specified dimensions.
    `void` | `resize(int width, int height)` Resizes the window to the specified dimensions by width and height values.
    `void` | `restore()` Restores the window to its previous size.

    - ### Methods inherited from interface com.hp.lft.sdk.powerbuilder.UiObjectWithLayoutInfo

      `isRightAligned, isRightToLeftLayout, isRightToLeftReading`

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

      `getAttachedText, getObjectName, getText, getWindowClassRegExp, getWindowExtendedStyle, getWindowId, getWindowStyle`

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

      `getHandle, getNativeClass, getWindowTitleRegExp, isFocused, 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.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`

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

- - ### Method Detail

    - #### isActive

          boolean isActive()
                    throws GeneralLeanFtException

      Indicates whether the window is the foreground object (currently active).
      Returns:
        true when the window is the foreground object (currently active).
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### hasBorder

          boolean hasBorder()
                     throws GeneralLeanFtException

      Indicates whether the window has a thin-line border.
      Returns:
        true when the window has a thin-line border.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### hasCaption

          boolean hasCaption()
                      throws GeneralLeanFtException

      Indicates whether the window has a title bar.
      Returns:
        true when the window has a title bar.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### hasSizebox

          boolean hasSizebox()
                      throws GeneralLeanFtException

      Indicates whether the window has a sizing border.
      Returns:
        true when the window has a sizing border.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### hasSystemMenu

          boolean hasSystemMenu()
                         throws GeneralLeanFtException

      Indicates whether the window has a window menu on its title bar.
      Returns:
        true when the window has a window menu on its title bar.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isOwnedWindow

          boolean isOwnedWindow()
                         throws GeneralLeanFtException

      Indicates whether the window has an owner window.
      Returns:
        true when the window has an owner window.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isChildWindow

          boolean isChildWindow()
                         throws GeneralLeanFtException

      Indicates whether the window is a child window.
      Returns:
        true when the window is a child window.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isMdiChildWindow

          boolean isMdiChildWindow()
                            throws GeneralLeanFtException

      Indicates whether the window is a multiple-document interface (MDI) child window.
      Returns:
        true when the window is a multiple-document interface (MDI) child window.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isPopupWindow

          boolean isPopupWindow()
                         throws GeneralLeanFtException

      Indicates whether the window is a pop-up window.
      Returns:
        true when the window is a pop-up window..
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isToolWindow

          boolean isToolWindow()
                        throws GeneralLeanFtException

      Indicates whether the window is a tool window (a floating toolbar).
      Returns:
        indicates whether the window is a tool window (a floating toolbar).
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isMaximizable

          boolean isMaximizable()
                         throws GeneralLeanFtException

      Indicates whether the window can be maximized.
      Returns:
        true when the window can be maximized.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isMinimizable

          boolean isMinimizable()
                         throws GeneralLeanFtException

      Indicates whether the window can be minimized.
      Returns:
        true when the window can be minimized.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### getWindowState

          WindowState getWindowState()
                              throws GeneralLeanFtException

      The current window state. Possible values: `WindowState`.
      Returns:
        the current window state. Possible values: `WindowState`.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### isTopmost

          boolean isTopmost()
                     throws GeneralLeanFtException

      Indicates whether the window is placed above all non-topmost windows and remains in place, even when the window is deactivated.
      Returns:
        true when the window is placed above all non-topmost windows and remains in place, even when the window is deactivated..
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### activate

          void activate()
                 throws GeneralLeanFtException

      Activates the window.
      Throws:
        `GeneralLeanFtException` - if 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. Possible values: `MouseButton`
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### close

          void close()
              throws GeneralLeanFtException

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

    - #### maximize

          void maximize()
                 throws GeneralLeanFtException

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

    - #### minimize

          void minimize()
                 throws GeneralLeanFtException

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

    - #### move

          void move(Point point)
             throws GeneralLeanFtException

      Moves the window to the specified absolute location on the screen with a Point object.
      Parameters:
        `point` - absolute pixel location (X,Y) on the screen
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### move

          void move(int x,
                    int y)
             throws GeneralLeanFtException

      Moves the window to the specified absolute location on the screen with X,Y coordinates.
      Parameters:
        `x` - the X coordinate to move to.
        `y` - the Y coordinate to move to.
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### resize

          void resize(Dimension size)
               throws GeneralLeanFtException

      Resizes the window to the specified dimensions.
      Parameters:
        `size` - the size to resize to (in pixels).
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### resize

          void resize(int width,
                      int height)
               throws GeneralLeanFtException

      Resizes the window to the specified dimensions by width and height values.
      Parameters:
        `width` - the width value (in pixels).
        `height` - the height value (in pixels).
      Throws:
        `GeneralLeanFtException` - if error occurs during execution

    - #### restore

          void restore()
                throws GeneralLeanFtException

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