Class UiObjectBaseDescription

java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.oracle.UiObjectBaseDescription
All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable
Direct Known Subclasses:
ApplicationSessionDescription, ButtonDescription, CalendarDescription, CheckBoxDescription, EditFieldDescription, FlexFieldWindowDescription, ListDescription, ListOfValuesDescription, LogonWindowDescription, NavigatorWindowDescription, NotificationDescription, PickListDescription, RadioGroupDescription, StatusBarDescription, TabDescription, TableDescription, TreeViewDescription, UiFormBaseDescription

public abstract class UiObjectBaseDescription extends DescriptionBase
The base description of all Oracle test objects.
  • Constructor Details

    • UiObjectBaseDescription

      public UiObjectBaseDescription()
      Constructs a new instance of UiObjectDescriptionBase.
    • UiObjectBaseDescription

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

    • setObjectType

      public void setObjectType(String objectType)
      Sets the general object type.
      Parameters:
      objectType - the general object type.
    • setObjectType

      public void setObjectType(StringProperty objectType)
      Sets general object type.
      Parameters:
      objectType - a StringProperty or RegExpProperty.
    • getObjectType

      public StringProperty getObjectType()
      Returns the general object type.
      Returns:
      the general object type.
    • setLocation

      public void setLocation(LocationProperty location)
      Sets the object's coordinates in pixels relative to the parent window.
      Parameters:
      location - the coordinates relative to the parent window.
    • setLocation

      public void setLocation(Integer x, Integer y)
      Sets the object's coordinates in pixels relative to the parent window.
      Parameters:
      x - in pixels.
      y - in pixels.
    • setLocation

      public void setLocation(Point location)
      Sets the object's coordinates in pixels relative to the parent window.
      Parameters:
      location - the coordinates relative to the parent window.
    • getLocation

      public LocationProperty getLocation()
      Returns the object's coordinates in pixels relative to the parent window.
      Returns:
      the coordinates relative to the parent window.
    • setAbsoluteLocation

      public void setAbsoluteLocation(LocationProperty absLocation)
      Sets the object's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.

      In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration.

      Parameters:
      absLocation - the coordinates relative to the screen.
    • setAbsoluteLocation

      public void setAbsoluteLocation(Integer absX, Integer absY)
      Sets the object's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.

      In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration.

      Parameters:
      absX - in pixels.
      absY - in pixels.
    • setAbsoluteLocation

      public void setAbsoluteLocation(Point absLocation)
      Sets the object's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
      Parameters:
      absLocation - the coordinates relative to the screen.
    • getAbsoluteLocation

      public LocationProperty getAbsoluteLocation()
      Returns the object's coordinates in pixels relative to the screen.

      In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration.

      Returns:
      the coordinates relative to the screen.
    • setSize

      public void setSize(SizeProperty size)
      Sets the test object's size in pixels.
      Parameters:
      size - the size.
    • setSize

      public void setSize(Dimension size)
      Sets the test object's size in pixels.
      Parameters:
      size - the size.
    • setSize

      public void setSize(Integer width, Integer height)
      Sets the test object's size in pixels.
      Parameters:
      width - in pixels.
      height - in pixels.
    • getSize

      public SizeProperty getSize()
      Returns the test object's size in pixels.
      Returns:
      the size.