Package com.hp.lft.sdk.sap.gui
Class WindowDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.sap.gui.ElementDescription
com.hp.lft.sdk.sap.gui.WindowDescription
- All Implemented Interfaces:
CloneableObject,Description,com.hp.lft.sdk.internal.DescriptionWithVri,Cloneable
Description of a window in a SAP GUI for Windows application.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class can be used to construct an instance of the WindowDescription class using the builder pattern.protected static classWindowDescription.Init<T extends WindowDescription.Init<T>>Helper class for WindowDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties -
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the WindowDescription class.protectedWindowDescription(WindowDescription.Init<?> init) Initializes a new instance of the WindowDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the SAP source program that is currently executing.Returns the number of the currently displayed screen.getText()Returns the text associated with the window.Returns the transaction the user is currently executing.Returns the window's working pane size in character metric.Indicates whether the window is minimized.voidsetMinimized(Boolean minimized) Sets whether the window is minimized.voidsetProgram(StringProperty program) Sets the name of the SAP source program that is currently executing.voidsetProgram(String program) Sets the name of the SAP source program that is currently executing.voidsetScreenNumber(Long screenNumber) Sets the number of the currently displayed screen.voidsetText(StringProperty text) Sets the text associated with the window.voidSets the text associated with the window.voidsetTransaction(StringProperty transaction) Sets the transaction the user is currently executing.voidsetTransaction(String transaction) Sets the transaction the user is currently executing.voidSets the window's working pane size in character metric.voidsetWorkingPaneSize(Dimension size) Sets the window's working pane size in character metric.voidsetWorkingPaneSize(Integer width, Integer height) Sets the window's working pane size in character metric.Methods inherited from class com.hp.lft.sdk.sap.gui.ElementDescription
getAbsoluteLocation, getId, getLocation, getName, getSize, getType, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setId, setId, setLocation, setLocation, setLocation, setName, setName, setSize, setSize, setSize, setTypeMethods inherited from class com.hp.lft.sdk.DescriptionBase
cloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescription
cloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hp.lft.sdk.CloneableObject
clone
-
Constructor Details
-
WindowDescription
public WindowDescription()Initializes a new instance of the WindowDescription class. -
WindowDescription
Initializes a new instance of the WindowDescription class using the Builder pattern.- Parameters:
init- the Builder pattern.
-
-
Method Details
-
setText
Sets the text associated with the window.- Parameters:
text- the text.
-
setText
Sets the text associated with the window.- Parameters:
text- the text.
-
getText
Returns the text associated with the window.- Returns:
- the text.
-
setWorkingPaneSize
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
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
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
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
Sets whether the window is minimized.- Parameters:
minimized- true if minimized.
-
IsMinimized
Indicates whether the window is minimized.- Returns:
- true if minimized.
-
setTransaction
Sets the transaction the user is currently executing.- Parameters:
transaction- the transaction name.
-
setTransaction
Sets the transaction the user is currently executing.- Parameters:
transaction- the transaction name.
-
getTransaction
Returns the transaction the user is currently executing.- Returns:
- the transaction name.
-
setScreenNumber
Sets the number of the currently displayed screen.- Parameters:
screenNumber- the screen number.
-
getScreenNumber
Returns the number of the currently displayed screen.- Returns:
- the screen number.
-
setProgram
Sets the name of the SAP source program that is currently executing.- Parameters:
program- the program name.
-
setProgram
Sets the name of the SAP source program that is currently executing.- Parameters:
program- the program name.
-
getProgram
Returns the name of the SAP source program that is currently executing.- Returns:
- the program name.
-