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 class
This class can be used to construct an instance of the WindowDescription class using the builder pattern.protected static class
WindowDescription.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.protected
WindowDescription
(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.void
setMinimized
(Boolean minimized) Sets whether the window is minimized.void
setProgram
(StringProperty program) Sets the name of the SAP source program that is currently executing.void
setProgram
(String program) Sets the name of the SAP source program that is currently executing.void
setScreenNumber
(Long screenNumber) Sets the number of the currently displayed screen.void
setText
(StringProperty text) Sets the text associated with the window.void
Sets the text associated with the window.void
setTransaction
(StringProperty transaction) Sets the transaction the user is currently executing.void
setTransaction
(String transaction) Sets the transaction the user is currently executing.void
Sets the window's working pane size in character metric.void
setWorkingPaneSize
(Dimension size) Sets the window's working pane size in character metric.void
setWorkingPaneSize
(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, setType
Methods inherited from class com.hp.lft.sdk.DescriptionBase
cloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRI
Methods inherited from class com.hp.lft.sdk.PropertiesDescription
clone
Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValue
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.
-