Package com.hp.lft.sdk.sap.gui
Class ElementDescription
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
- All Implemented Interfaces:
- CloneableObject,- Description,- com.hp.lft.sdk.internal.DescriptionWithVri,- Cloneable
- Direct Known Subclasses:
- ButtonDescription,- CalendarDescription,- CheckBoxDescription,- ComboBoxDescription,- EditFieldDescription,- EditorDescription,- LabelDescription,- MenubarDescription,- OKCodeDescription,- RadioButtonDescription,- StatusBarDescription,- TabControlDescription,- TableBaseDescription,- ToolBarDescription,- TreeViewDescription,- WindowDescription
The description of a SAP GUI for Windows element.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThis class can be used to construct an instance of the ElementDescription class using the builder pattern.protected static classElementDescription.Init<T extends ElementDescription.Init<T>>Helper class for ElementDescription.Builder.
- 
Field SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructorsModifierConstructorDescriptionInitializes a new instance of the ElementDescription class.protectedInitializes a new instance of the ElementDescription class using the Builder pattern.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the element's coordinates relative to the screen in pixels.getId()Returns the element's unique identifier.Returns the element's coordinates relative to the parent window in pixels.getName()Returns the name of the element.getSize()Returns the element's size in pixels.getType()Returns the GUI component type.voidsetAbsoluteLocation(LocationProperty absLocation) Sets the element's coordinates relative to the screen, in pixels.voidsetAbsoluteLocation(Point absLocation) Sets the element's coordinates relative to the screen, in pixels.voidsetAbsoluteLocation(Integer absX, Integer absY) Sets the element's coordinates relative to the screen, in pixels.voidsetId(StringProperty id) Sets the element's unique identifier.voidSets the element's unique identifier.voidsetLocation(LocationProperty location) Sets the element's coordinates relative to the parent window.voidsetLocation(Point location) Sets the element's coordinates relative to the parent window.voidsetLocation(Integer x, Integer y) Sets the element's coordinates relative to the parent window.voidsetName(StringProperty name) Sets the name of the element.voidSets the name of the element.voidsetSize(SizeProperty size) Sets the element's size in pixels.voidSets the element's size in pixels.voidSets the element's size in pixels.voidsetType(ComponentType type) Sets the GUI component type.Methods inherited from class com.hp.lft.sdk.DescriptionBasecloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescriptioncloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBasegetValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hp.lft.sdk.CloneableObjectclone
- 
Constructor Details- 
ElementDescriptionpublic ElementDescription()Initializes a new instance of the ElementDescription class.
- 
ElementDescriptionInitializes a new instance of the ElementDescription class using the Builder pattern.- Parameters:
- init- the Builder pattern.
 
 
- 
- 
Method Details- 
setTypeSets the GUI component type.- Parameters:
- type- the GUI component type.
 
- 
getTypeReturns the GUI component type.- Returns:
- the GUI component type.
 
- 
setIdSets the element's unique identifier.- Parameters:
- id- a- StringPropertyor- RegExpProperty.
 
- 
setIdSets the element's unique identifier.- Parameters:
- id- the element's unique identifier in text format.
 
- 
getIdReturns the element's unique identifier.- Returns:
- the unique identifier.
 
- 
setNameSets the name of the element.- Parameters:
- name- a- StringPropertyor- RegExpProperty.
 
- 
setNameSets the name of the element.- Parameters:
- name- the name of the element.
 
- 
getNameReturns the name of the element.- Returns:
- the name of the element.
 
- 
setLocationSets the element's coordinates relative to the parent window.- Parameters:
- location- the coordinates in pixels.
 
- 
setLocationSets the element's coordinates relative to the parent window.- Parameters:
- x- in pixels.
- y- in pixels.
 
- 
setLocationSets the element's coordinates relative to the parent window.- Parameters:
- location- the coordinates in pixels.
 
- 
getLocationReturns the element's coordinates relative to the parent window in pixels.- Returns:
- the coordinates.
 
- 
setAbsoluteLocationSets the element's coordinates relative to the screen, in pixels. 0,0 is the top-left corner of the primary monitor.- Parameters:
- absLocation- the element's absolute coordinates.
 
- 
setAbsoluteLocationSets the element's coordinates relative to the screen, in pixels. 0,0 is the top-left corner of the primary monitor.- Parameters:
- absX- the absolute X.
- absY- the absolute Y.
 
- 
setAbsoluteLocationSets the element's coordinates relative to the screen, in pixels. 0,0 is the top-left corner of the primary monitor.- Parameters:
- absLocation- the element's absolute coordinates.
 
- 
getAbsoluteLocationReturns the element's coordinates relative to the screen in pixels. 0,0 is the top-left corner of the primary monitor.- Returns:
- the element's absolute coordinates.
 
- 
setSizeSets the element's size in pixels.- Parameters:
- size- the size.
 
- 
setSizeSets the element's size in pixels.- Parameters:
- size- the size.
 
- 
setSizeSets the element's size in pixels.- Parameters:
- width- the width.
- height- the height.
 
- 
getSizeReturns the element's size in pixels.- Returns:
- the size.
 
 
-