com.hp.lft.sdk.web

Class PageDescription.Init<T extends PageDescription.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 page's absolute coordinates relative to the screen (in pixels).
      TabsoluteLocation(LocationProperty absLocation)
      Initializes the page's absolute coordinates relative to the screen (in pixels).
      TabsoluteLocation(java.awt.Point absLocation)
      Initializes the page's absolute coordinates relative to the screen (in pixels).
      PageDescriptionbuild()
      Returns the built description instance (builder pattern).
      Tsize(java.awt.Dimension size)
      Initializes the page's size (in pixels).
      Tsize(java.lang.Integer width, java.lang.Integer height)
      Initializes the page's size (in pixels).
      Tsize(SizeProperty size)
      Initializes the page's size (in pixels).
      Ttext(java.lang.String text)
      Initializes the inner text of the body element.
      Ttext(StringProperty text)
      Initializes the inner text of the body element.
      Ttitle(java.lang.String title)
      Initializes the page's title attribute.
      Ttitle(StringProperty title)
      Initializes the page's title attribute.
      Turl(java.lang.String url)
      Initializes the URL of the page.
      Turl(StringProperty url)
      Initializes the URL of the page.
      • 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

      • url

        public T url(java.lang.String url)
        Initializes the URL of the page.
        Parameters:
        url - the URL of the page.
        Returns:
        the description instance with the update state (builder pattern).
      • url

        public T url(StringProperty url)
        Initializes the URL of the page.
        Parameters:
        url - a StringProperty(or RegExpProperty) representing the URL of the page.
        Returns:
        the description instance with the update state (builder pattern).
      • text

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

        public T text(StringProperty text)
        Initializes the inner text of the body element.
        Parameters:
        text - a StringProperty(or RegExpProperty) representing the inner text of the body element.
        Returns:
        the description instance with the update state (builder pattern).
      • title

        public T title(java.lang.String title)
        Initializes the page's title attribute.
        Parameters:
        title - the page's title attribute.
        Returns:
        the description instance with the update state (builder pattern).
      • title

        public T title(StringProperty title)
        Initializes the page's title attribute.
        Parameters:
        title - a StringProperty(or RegExpProperty) representing the page's title attribute.
        Returns:
        the description instance with the update state (builder pattern).
      • absoluteLocation

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

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

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

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

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

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