Class WindowDescription

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

public class WindowDescription extends ElementDescription
Description of a window in a SAP GUI for Windows application.
  • Constructor Details

    • WindowDescription

      public WindowDescription()
      Initializes a new instance of the WindowDescription class.
    • WindowDescription

      protected WindowDescription(WindowDescription.Init<?> init)
      Initializes a new instance of the WindowDescription class using the Builder pattern.
      Parameters:
      init - the Builder pattern.
  • Method Details

    • setText

      public void setText(StringProperty text)
      Sets the text associated with the window.
      Parameters:
      text - the text.
    • setText

      public void setText(String text)
      Sets the text associated with the window.
      Parameters:
      text - the text.
    • getText

      public StringProperty getText()
      Returns the text associated with the window.
      Returns:
      the text.
    • setWorkingPaneSize

      public void setWorkingPaneSize(SizeProperty size)
      Sets the window's working pane size in character metric. The working pane is the area between the toolbar and the status bar.
      Parameters:
      size - the size.
    • setWorkingPaneSize

      public void setWorkingPaneSize(Dimension size)
      Sets the window's working pane size in character metric. The working pane is the area between the toolbar and the status bar.
      Parameters:
      size - the size.
    • setWorkingPaneSize

      public void setWorkingPaneSize(Integer width, Integer height)
      Sets the window's working pane size in character metric. The working pane is the area between the toolbar and the status bar.
      Parameters:
      width - in character metric.
      height - in character metric.
    • getWorkingPaneSize

      public SizeProperty getWorkingPaneSize()
      Returns the window's working pane size in character metric. The working pane is the area between the toolbar and the status bar.
      Returns:
      the pane size.
    • setMinimized

      public void setMinimized(Boolean minimized)
      Sets whether the window is minimized.
      Parameters:
      minimized - true if minimized.
    • IsMinimized

      public Boolean IsMinimized()
      Indicates whether the window is minimized.
      Returns:
      true if minimized.
    • setTransaction

      public void setTransaction(StringProperty transaction)
      Sets the transaction the user is currently executing.
      Parameters:
      transaction - the transaction name.
    • setTransaction

      public void setTransaction(String transaction)
      Sets the transaction the user is currently executing.
      Parameters:
      transaction - the transaction name.
    • getTransaction

      public StringProperty getTransaction()
      Returns the transaction the user is currently executing.
      Returns:
      the transaction name.
    • setScreenNumber

      public void setScreenNumber(Long screenNumber)
      Sets the number of the currently displayed screen.
      Parameters:
      screenNumber - the screen number.
    • getScreenNumber

      public Long getScreenNumber()
      Returns the number of the currently displayed screen.
      Returns:
      the screen number.
    • setProgram

      public void setProgram(StringProperty program)
      Sets the name of the SAP source program that is currently executing.
      Parameters:
      program - the program name.
    • setProgram

      public void setProgram(String program)
      Sets the name of the SAP source program that is currently executing.
      Parameters:
      program - the program name.
    • getProgram

      public StringProperty getProgram()
      Returns the name of the SAP source program that is currently executing.
      Returns:
      the program name.