Share this page

com.hp.lft.sdk.java

# Interface Slider

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber, UiObjectBase, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider

      public interface Slider
      extends UiObjectBase, TestObject

  A Java slider.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getContainerAttachedText()` Returns the text of the slider object's container.
    `int` | `getMaxPosition()` Returns the maximum position of the slider.
    `int` | `getMinPosition()` Returns the minimum position of the slider.
    `SliderOrientation` | `getOrientation()` Returns the orientation of the slider.
    `int` | `getPosition()` Returns the position of the slider.
    `boolean` | `isScrollBar()` Indicates whether slider is a scrollBar.
    `void` | `nextLine()` Moves the slider downward, or to the right, by one line.
    `void` | `nextLine(int numberOfLines)` Moves the slider downward, or to the right, the specified number of lines.
    `void` | `previousLine()` Moves the slider upward, or to the left, by one line.
    `void` | `previousLine(int numberOfLines)` Moves the slider upward, or to the left, the specified number of lines.
    `void` | `setPosition(int position)` Sets the position of the slider.

    - ### Methods inherited from interface com.hp.lft.sdk.java.UiObjectBase

      `createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isEnabled, isFocused, isVisible, sendKeys, sendKeys`

    - ### Methods inherited from interface com.hp.lft.sdk.Clickable

      `click, click, click`

    - ### Methods inherited from interface com.hp.lft.sdk.DoubleClickable

      `doubleClick, doubleClick, doubleClick`

    - ### Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider

      `getAbsoluteLocation, getLocation, getSize`

    - ### Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject

      `getNativeObject`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObject

      `exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists`

    - ### Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber

      `describe`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider

      `waitUntilEnabled, waitUntilEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.EnabledProvider

      `isEnabled`

    - ### Methods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider

      `waitUntilVisible, waitUntilVisible`

    - ### Methods inherited from interface com.hp.lft.sdk.VisibleProvider

      `isVisible`

- - ### Method Detail

    - #### getContainerAttachedText

          java.lang.String getContainerAttachedText()
                                             throws GeneralLeanFtException

      Returns the text of the slider object's container.
      Returns:
        the container's text.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getOrientation

                                                      SliderOrientation getOrientation()
                                    throws GeneralLeanFtException

      Returns the orientation of the slider.
      Returns:
        a value of the `SliderOrientation` enum.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getPosition

          int getPosition()
                   throws GeneralLeanFtException

      Returns the position of the slider.
      Returns:
        the position of the slider.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### setPosition

          void setPosition(int position)
                    throws GeneralLeanFtException

      Sets the position of the slider.
      Parameters:
        `position` - the position of the slider.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getMaxPosition

          int getMaxPosition()
                      throws GeneralLeanFtException

      Returns the maximum position of the slider.
      Returns:
        the maximum position of the slider.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getMinPosition

          int getMinPosition()
                      throws GeneralLeanFtException

      Returns the minimum position of the slider.
      Returns:
        the minimum position of the slider.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### nextLine

          void nextLine(int numberOfLines)
                 throws GeneralLeanFtException

      Moves the slider downward, or to the right, the specified number of lines.
      Parameters:
        `numberOfLines` - the number of lines to move the slider.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### nextLine

          void nextLine()
                 throws GeneralLeanFtException

      Moves the slider downward, or to the right, by one line.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### previousLine

          void previousLine(int numberOfLines)
                     throws GeneralLeanFtException

      Moves the slider upward, or to the left, the specified number of lines.
      Parameters:
        `numberOfLines` - the number of lines to move the slider.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### previousLine

          void previousLine()
                     throws GeneralLeanFtException

      Moves the slider upward, or to the left, by one line.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### isScrollBar

          boolean isScrollBar()
                       throws GeneralLeanFtException

      Indicates whether slider is a scrollBar.
      Returns:
        true if slider is a scrollBar.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

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: