com.hp.lft.sdk.sap.gui

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

    • Constructor Summary

      ModifierConstructor and Description
      protected Init() 
    • Method Summary

      Modifier and TypeMethod and Description
      TabsoluteLocation(java.lang.Integer absX, java.lang.Integer absY)
      Initializes the element's coordinates in pixels relative to the screen.
      TabsoluteLocation(LocationProperty absLocation)
      Initializes the element's coordinates in pixels relative to the screen.
      TabsoluteLocation(java.awt.Point absLocation)
      Initializes the element's coordinates in pixels relative to the screen.
      ElementDescriptionbuild()
      Returns the built description instance (builder pattern).
      Tid(java.lang.String id)
      Initializes the element's unique identifier in text format.
      Tid(StringProperty id)
      Initializes the element's unique identifier in text format.
      Tlocation(java.lang.Integer x, java.lang.Integer y)
      Initializes this element's coordinates in pixels relative to the parent window.
      Tlocation(LocationProperty location)
      Initializes this element's coordinates in pixels relative to the parent window.
      Tlocation(java.awt.Point location)
      Initializes this element's coordinates in pixels relative to the parent window.
      Tname(java.lang.String name)
      Initializes the name of the element.
      Tname(StringProperty name)
      Initializes the name of the element.
      Tsize(java.awt.Dimension size)
      Initializes the test element's size in pixels.
      Tsize(java.lang.Integer width, java.lang.Integer height)
      Initializes the test element's size in pixels.
      Tsize(SizeProperty size)
      Initializes the test element's size in pixels.
      Ttype(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).