com.hp.lft.sdk.web

Class BrowserDescription.Init<T extends BrowserDescription.Init<T>>

  • java.lang.Object
    • com.hp.lft.sdk.web.BrowserDescription.Init<T>
  • Direct Known Subclasses:
    BrowserDescription.Builder
    Enclosing class:
    BrowserDescription


    protected abstract static class BrowserDescription.Init<T extends BrowserDescription.Init<T>>
    extends java.lang.Object
    Helper class for BrowserDescription.Builder.
    • Constructor Summary

      ModifierConstructor and Description
      protected Init() 
    • Method Summary

      Modifier and TypeMethod and Description
      BrowserDescriptionbuild() 
      TopenTitle(java.lang.String openTitle)
      Initializes the browser's initial title when first opened.
      TopenTitle(StringProperty openTitle)
      Initializes the browser's initial title when first opened.
      TopenURL(java.lang.String openURL)
      Initializes the URL from which the browser is first opened.
      TopenURL(StringProperty openURL)
      Initializes the URL from which the browser is first opened.
      protected abstract Tself() 
      Tset(java.lang.String capability, java.lang.Object value)
      Initializes a BrowserDescription capability to the given value.
      Ttitle(java.lang.String title)
      Initializes the browser's title.
      Ttitle(StringProperty title)
      Initializes the browser's title.
      Ttype(BrowserType type)
      Initializes the type of the Browser.
      Turl(java.lang.String url)
      Initializes the current URL of the browser tab.
      Turl(StringProperty url)
      Initializes the current URL of the browser tab.
      • 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

      • self

        protected abstract T self()
      • openTitle

        public T openTitle(java.lang.String openTitle)
        Initializes the browser's initial title when first opened.
        Parameters:
        openTitle - the browser's initial title when first opened.
        Returns:
        the description instance with the update state (builder pattern).
      • openTitle

        public T openTitle(StringProperty openTitle)
        Initializes the browser's initial title when first opened.
        Parameters:
        openTitle - a StringProperty(or RegExpProperty) representing the browser's initial title when first opened.
        Returns:
        the description instance with the update state (builder pattern).
      • openURL

        public T openURL(java.lang.String openURL)
        Initializes the URL from which the browser is first opened.
        Parameters:
        openURL - the URL from which the browser is first opened.
        Returns:
        the description instance with the update state (builder pattern).
      • openURL

        public T openURL(StringProperty openURL)
        Initializes the URL from which the browser is first opened.
        Parameters:
        openURL - a StringProperty(or RegExpProperty) representing the URL from which the browser is first opened.
        Returns:
        the description instance with the update state (builder pattern).
      • title

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

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

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

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

        public T type(BrowserType type)
        Initializes the type of the Browser.
        Parameters:
        type - the type of the Browser.
        Returns:
        the description instance with the update state (builder pattern).
      • set

        public T set(java.lang.String capability,
                     java.lang.Object value)
        Initializes a BrowserDescription capability to the given value.
        Parameters:
        capability - the name of the capability to set value for.
        value - the new value of the capability.
        Returns:
        the description instance with the update state (builder pattern).