Open topic with navigation

com.hp.lft.sdk.java

# Interface Window

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber, TopLevelObject, UiObjectBase, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider
  All Known Subinterfaces:
    Dialog, InternalFrame

      public interface Window
      extends UiObjectBase, TopLevelObject

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `activate()` Activates the window.
    `void` | `close()` Closes the window.
    `java.lang.String` | `getTitle()` Returns the window title.
    `WindowState` | `getWindowState()` Returns the window state.
    `boolean` | `isJavaWindow()` Indicates whether the object is a Java window.
    `boolean` | `isMaximizable()` Indicates whether the window can be maximized.
    `boolean` | `isMinimizable()` Indicates whether the window can be minimized.
    `boolean` | `isResizable()` Indicates whether the window is resizable.
    `void` | `maximize()` Maximizes the window to fill the screen.
    `void` | `minimize()` Minimizes the window to an icon.
    `void` | `move(int x, int y)` Moves the window to the specified location on the screen.
    `void` | `move(java.awt.Point point)` Moves the window to the specified location relative to the screen.
    `void` | `resize(java.awt.Dimension size)` Resizes the window to the specified dimensions.
    `void` | `resize(int width, int height)` Resizes the window to the specified dimensions.
    `void` | `restore()` Restores the window to its previous size.

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

      `createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isEnabled, isFocused, isVisible, sendKeys, sendKeys`

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

    - #### close

          void close()
              throws GeneralLeanFtException

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

    - #### maximize

          void maximize()
                 throws GeneralLeanFtException

      Maximizes the window to fill the screen.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### minimize

          void minimize()
                 throws GeneralLeanFtException

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

    - #### move

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

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

    - #### move

          void move(int x,
                    int y)
             throws GeneralLeanFtException

      Moves the window to the specified 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 the window to the specified dimensions.
      Parameters:
        `size` - a Dimension object.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### resize

          void resize(int width,
                      int height)
               throws GeneralLeanFtException

      Resizes the 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 the window to its previous size.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isJavaWindow

          boolean isJavaWindow()
                        throws GeneralLeanFtException

      Indicates whether the object is a Java window.
      Returns:
        true if a Java window.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isMaximizable

          boolean isMaximizable()
                         throws GeneralLeanFtException

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

    - #### getWindowState

                                                      WindowState getWindowState()
                              throws GeneralLeanFtException

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

    - #### isMinimizable

          boolean isMinimizable()
                         throws GeneralLeanFtException

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

    - #### isResizable

          boolean isResizable()
                       throws GeneralLeanFtException

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

    - #### getTitle

          java.lang.String getTitle()
                             throws GeneralLeanFtException

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