Interface Window

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

public interface Window extends UiObjectWithLayoutInfo, TopLevelObject
A PowerBuilder window.
  • Method Details

    • 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