Share this page

com.hp.lft.sdk.oracle

# 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.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `protected static class` | `UiObjectBaseDescription.Init<T extends UiObjectBaseDescription.Init<T>>` Helper class for derived Builder classes.

    - ### Nested classes/interfaces inherited from class com.hp.lft.sdk.DescriptionBase

      `DescriptionBase.Builder`

  - ### Field Summary

    - ### Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `properties`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `` | `UiObjectBaseDescription()` Constructs a new instance of UiObjectDescriptionBase.
    `protected` | `UiObjectBaseDescription(UiObjectBaseDescription.Init<?> init)` Initializes a new instance of the UiObjectBaseDescription class using the Builder pattern.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `LocationProperty` | `getAbsoluteLocation()` Returns the object's coordinates in pixels relative to the screen.
    `LocationProperty` | `getLocation()` Returns the object's coordinates in pixels relative to the parent window.
    `StringProperty` | `getObjectType()` Returns the general object type.
    `SizeProperty` | `getSize()` Returns the test object's size in pixels.
    `void` | `setAbsoluteLocation(Integer absX, Integer absY)` Sets the object's coordinates in pixels relative to the screen.
    `void` | `setAbsoluteLocation(LocationProperty absLocation)` Sets the object's coordinates in pixels relative to the screen.
    `void` | `setAbsoluteLocation(Point absLocation)` Sets the object's coordinates in pixels relative to the screen.
    `void` | `setLocation(Integer x, Integer y)` Sets the object's coordinates in pixels relative to the parent window.
    `void` | `setLocation(LocationProperty location)` Sets the object's coordinates in pixels relative to the parent window.
    `void` | `setLocation(Point location)` Sets the object's coordinates in pixels relative to the parent window.
    `void` | `setObjectType(String objectType)` Sets the general object type.
    `void` | `setObjectType(StringProperty objectType)` Sets general object type.
    `void` | `setSize(Dimension size)` Sets the test object's size in pixels.
    `void` | `setSize(Integer width, Integer height)` Sets the test object's size in pixels.
    `void` | `setSize(SizeProperty size)` Sets the test object's size in pixels.

    - ### Methods inherited from class com.hp.lft.sdk.DescriptionBase

      `cloneTo, getIndex, getIndexType, getVRI, setIndex, setIndexType, 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 Detail

    - #### 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 Detail

    - #### 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.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: