com.hp.lft.sdk.web

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