com.hp.lft.sdk.sap.gui

Class ElementDescription.Init<T extends ElementDescription.Init<T>>

    • Constructor Summary

      Modifier Constructor and Description
      protected Init() 
    • Method Summary

      Modifier and Type Method and Description
      T absoluteLocation(java.lang.Integer absX, java.lang.Integer absY)
      Initializes the element's coordinates in pixels relative to the screen.
      T absoluteLocation(LocationProperty absLocation)
      Initializes the element's coordinates in pixels relative to the screen.
      T absoluteLocation(java.awt.Point absLocation)
      Initializes the element's coordinates in pixels relative to the screen.
      ElementDescription build()
      Returns the built description instance (builder pattern).
      T id(java.lang.String id)
      Initializes the element's unique identifier in text format.
      T id(StringProperty id)
      Initializes the element's unique identifier in text format.
      T location(java.lang.Integer x, java.lang.Integer y)
      Initializes this element's coordinates in pixels relative to the parent window.
      T location(LocationProperty location)
      Initializes this element's coordinates in pixels relative to the parent window.
      T location(java.awt.Point location)
      Initializes this element's coordinates in pixels relative to the parent window.
      T name(java.lang.String name)
      Initializes the name of the element.
      T name(StringProperty name)
      Initializes the name of the element.
      T size(java.awt.Dimension size)
      Initializes the test element's size in pixels.
      T size(java.lang.Integer width, java.lang.Integer height)
      Initializes the test element's size in pixels.
      T size(SizeProperty size)
      Initializes the test element's size in pixels.
      T type(ComponentType type)
      Initializes the GUI component type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Init

        protected Init()
    • Method Detail

      • type

        public T type(ComponentType type)
        Initializes the GUI component type.
        Parameters:
        type - the GUI component type.
        Returns:
        the description instance with the update state (builder pattern).
      • id

        public T id(StringProperty id)
        Initializes the element's unique identifier in text format.
        Parameters:
        id - a StringProperty or RegExpProperty.
        Returns:
        the description instance with the update state (builder pattern).
      • id

        public T id(java.lang.String id)
        Initializes the element's unique identifier in text format.
        Parameters:
        id - the element's unique identifier in text format.
        Returns:
        the description instance with the update state (builder pattern).
      • name

        public T name(java.lang.String name)
        Initializes the name of the element.
        Parameters:
        name - the name of the element.
        Returns:
        the description instance with the update state (builder pattern).
      • location

        public T location(java.lang.Integer x,
                          java.lang.Integer y)
        Initializes this element's coordinates in pixels relative to the parent window.
        Parameters:
        x - in pixels.
        y - in pixels.
        Returns:
        the description instance with the update state (builder pattern).
      • location

        public T location(LocationProperty location)
        Initializes this element's coordinates in pixels relative to the parent window.
        Parameters:
        location - the element's coordinates.
        Returns:
        the description instance with the update state (builder pattern).
      • location

        public T location(java.awt.Point location)
        Initializes this element's coordinates in pixels relative to the parent window.
        Parameters:
        location - the element's coordinates.
        Returns:
        the description instance with the update state (builder pattern).
      • absoluteLocation

        public T absoluteLocation(java.lang.Integer absX,
                                  java.lang.Integer absY)
        Initializes the element's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
        Parameters:
        absX - the absolute X.
        absY - the absolute Y.
        Returns:
        the description instance with the update state (builder pattern)
      • absoluteLocation

        public T absoluteLocation(LocationProperty absLocation)
        Initializes the element's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
        Parameters:
        absLocation - the element's absolute coordinates.
        Returns:
        the description instance with the update state (builder pattern)
      • absoluteLocation

        public T absoluteLocation(java.awt.Point absLocation)
        Initializes the element's coordinates in pixels relative to the screen. 0,0 is the top-left corner of the primary monitor.
        Parameters:
        absLocation - the element's absolute coordinates.
        Returns:
        the description instance with the update state (builder pattern)
      • size

        public T size(SizeProperty size)
        Initializes the test element's size in pixels.
        Parameters:
        size - the size.
        Returns:
        the description instance with the update state (builder pattern).
      • size

        public T size(java.lang.Integer width,
                      java.lang.Integer height)
        Initializes the test element's size in pixels.
        Parameters:
        width - in pixels.
        height - in pixels.
        Returns:
        the description instance with the update state (builder pattern).
      • size

        public T size(java.awt.Dimension size)
        Initializes the test element's size in pixels.
        Parameters:
        size - the size.
        Returns:
        the description instance with the update state (builder pattern).