Share this page

com.hp.lft.sdk.web

## Class LinkDescription.Init<T extends LinkDescription.Init<T>>

- java.lang.Object
- - com.hp.lft.sdk.DescriptionBase.Init<T>
  - - com.hp.lft.sdk.web.WebBaseDescription.Init<T>
    - - com.hp.lft.sdk.web.WebElementDescription.Init<T>
      - - com.hp.lft.sdk.web.LinkDescription.Init<T>

- Direct Known Subclasses:
    LinkDescription.Builder
  Enclosing class:
    LinkDescription

      protected abstract static class LinkDescription.Init<T extends LinkDescription.Init<T>>
      extends WebElementDescription.Init<T>

  Helper class for LinkDescription.Builder.

- - ### Constructor Summary

    Modifier | Constructor and Description
    --- | ---
    `protected` | `Init()`

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `T` | `backgroundColor(java.lang.String backgroundColor)` Initializes the link's background color.
    `T` | `backgroundColor(StringProperty backgroundColor)` Initializes the link's background color.
    `LinkDescription` | `build()` Returns the built description instance (builder pattern).
    `T` | `color(java.lang.String color)` Initializes the link's color.
    `T` | `color(StringProperty color)` Initializes the link's color.
    `T` | `fontName(java.lang.String fontName)` Initializes the link's font.
    `T` | `fontName(StringProperty fontName)` Initializes the link's font.
    `T` | `href(java.lang.String href)` Initializes the location to which the browser navigates when the image is clicked.
    `T` | `href(StringProperty href)` Initializes the location to which the browser navigates when the image is clicked.
    `T` | `target(java.lang.String target)` Initializes the name of the frame that will be navigated to when the user clicks on the frame.
    `T` | `target(StringProperty target)` Initializes the name of the frame that will be navigated to when the user clicks on the frame.

    - ### Methods inherited from class com.hp.lft.sdk.web.WebElementDescription.Init

      `accessibilityName, accessibilityName, cssSelector, cssSelector, role, role, xpath, xpath`

    - ### Methods inherited from class com.hp.lft.sdk.web.WebBaseDescription.Init

      `absoluteLocation, absoluteLocation, absoluteLocation, attribute, attribute, attributes, className, className, id, id, innerHTML, innerHTML, innerText, innerText, location, location, location, name, name, outerHTML, outerHTML, outerText, outerText, size, size, size, style, style, styles, tagName, tagName, title, title, visible`

    - ### Methods inherited from class com.hp.lft.sdk.DescriptionBase.Init

      `index, self, vri, vri`

    - ### 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

    - #### build

          public LinkDescription build()

      Description copied from class: `DescriptionBase.Init`
      Returns the built description instance (builder pattern).
      Overrides:
        `build` in class `WebElementDescription.Init<T extends LinkDescription.Init<T>>`
      Returns:
        The built description instance (builder pattern).

    - #### target

          public T target(java.lang.String target)

      Initializes the name of the frame that will be navigated to when the user clicks on the frame.
      Parameters:
        `target` - the name of the frame. Possible values: Any valid HTML target attribute value, for example, framename, _blank, or _self.
      Returns:
        the description instance with the update state (builder pattern).

    - #### target

          public T target(StringProperty target)

      Initializes the name of the frame that will be navigated to when the user clicks on the frame.
      Parameters:
        `target` - a StringProperty(or RegExpProperty) representing the name of the target frame of the navigation. Possible values: Any valid HTML target attribute value, for example, framename, _blank, or _self.
      Returns:
        the description instance with the update state (builder pattern).

    - #### fontName

          public T fontName(java.lang.String fontName)

      Initializes the link's font.
      Parameters:
        `fontName` - the font name.
      Returns:
        the description instance with the update state (builder pattern).

    - #### fontName

          public T fontName(StringProperty fontName)

      Initializes the link's font.
      Parameters:
        `fontName` - a StringProperty(or RegExpProperty) representing the font name.
      Returns:
        the description instance with the update state (builder pattern).

    - #### href

          public T href(java.lang.String href)

      Initializes the location to which the browser navigates when the image is clicked.
      Parameters:
        `href` - the location to which the browser navigates when the image is clicked.
      Returns:
        the description instance with the update state (builder pattern).

    - #### href

          public T href(StringProperty href)

      Initializes the location to which the browser navigates when the image is clicked.
      Parameters:
        `href` - a StringProperty(or RegExpProperty) representing the location to which the browser navigates when the image is clicked.
      Returns:
        the description instance with the update state (builder pattern).

    - #### color

          public T color(java.lang.String color)

      Initializes the link's color.
      Parameters:
        `color` - the link's color.
      Returns:
        the description instance with the update state (builder pattern).

    - #### color

          public T color(StringProperty color)

      Initializes the link's color.
      Parameters:
        `color` - a StringProperty(or RegExpProperty) representing the link's color.
      Returns:
        the description instance with the update state (builder pattern).

    - #### backgroundColor

          public T backgroundColor(java.lang.String backgroundColor)

      Initializes the link's background color.
      Parameters:
        `backgroundColor` - the link's background color.
      Returns:
        the description instance with the update state (builder pattern).

    - #### backgroundColor

          public T backgroundColor(StringProperty backgroundColor)

      Initializes the link's background color.
      Parameters:
        `backgroundColor` - a StringProperty(or RegExpProperty) representing the link's background color.
      Returns:
        the description instance with the update state (builder pattern).

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: