Share this page

com.hp.lft.sdk.java

# Class SliderDescription

- java.lang.Object
- - com.hp.lft.sdk.internal.PropertiesDescriptionBase
  - - com.hp.lft.sdk.PropertiesDescription
    - - com.hp.lft.sdk.DescriptionBase
      - - com.hp.lft.sdk.java.UiObjectBaseDescription
        - - com.hp.lft.sdk.java.SliderDescription

- All Implemented Interfaces:
    CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, java.lang.Cloneable

      public class SliderDescription
      extends UiObjectBaseDescription

  The description of a Java Slider test object.

- - ### Nested Class Summary

    Modifier and Type | Class and Description
    --- | ---
    `static class` | `SliderDescription.Builder` This class can be used to construct an instance of the SliderDescription class using the builder pattern.
    `protected static class` | `SliderDescription.Init<T extends SliderDescription.Init<T>>` Helper class for SliderDescription.Builder.

  - ### Field Summary

    - ### Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `properties`

  - ### Constructor Summary

    Modifier | Constructor and Description
    --- | ---
    `` | `SliderDescription()` Initializes a new instance of the SliderDescription class.
    `protected` | `SliderDescription(SliderDescription.Init<?> init)` Initializes a new instance of the SliderDescription class using the Builder pattern.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `StringProperty` | `getContainerAttachedText()` Returns the slider container's attached text.
    `java.lang.Integer` | `getMaxPosition()` Returns the maximum position of the slider.
    `java.lang.Integer` | `getMinPosition()` Returns the minimum position of the slider.
    `SliderOrientation` | `getOrientation()` Returns the orientation of the slider.
    `java.lang.Integer` | `getPosition()` Returns the position of the slider.
    `java.lang.Boolean` | `isScrollBar()` Indicates whether slider is a scrollBar.
    `void` | `setContainerAttachedText(java.lang.String containerAttachedText)` Sets the slider container's attached text.
    `void` | `setContainerAttachedText(StringProperty containerAttachedText)` Sets the slider container's attached text.
    `void` | `setMaxPosition(java.lang.Integer maxPosition)` Sets the maximum position of the slider.
    `void` | `setMinPosition(java.lang.Integer minPosition)` Sets the minimum position of the slider.
    `void` | `setOrientation(SliderOrientation orientation)` Sets the orientation of the slider.
    `void` | `setPosition(java.lang.Integer position)` Sets the position of the slider.
    `void` | `setScrollBar(java.lang.Boolean isScrollBar)` Sets whether slider is a scrollBar.

    - ### Methods inherited from class com.hp.lft.sdk.java.UiObjectBaseDescription

      `getAbsoluteLocation, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getLocation, getNativeClass, getObjectName, getObjectProperties, getPath, getSize, getTagName, isEnabled, isFocused, isVisible, isWrapped, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setAttachedText, setAttachedText, setBackgroundColor, setBackgroundColor, setEnabled, setFocused, setForegroundColor, setForegroundColor, setLabel, setLabel, setLocation, setLocation, setLocation, setNativeClass, setNativeClass, setObjectName, setObjectName, setObjectProperties, setPath, setPath, setSize, setSize, setSize, setTagName, setTagName, setVisible, setWrapped`

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

      `cloneTo, getIndex, getIndexType, getVRI, setIndex, setIndexType, setVRI, setVRI`

    - ### Methods inherited from class com.hp.lft.sdk.PropertiesDescription

      `clone`

    - ### Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `getValueAs, getValueAsStringProperty, insertValue`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

      `clone`

- - ### Constructor Detail

    - #### SliderDescription

          public SliderDescription()

      Initializes a new instance of the SliderDescription class.

    - #### SliderDescription

          protected SliderDescription(SliderDescription.Init<?> init)

      Initializes a new instance of the SliderDescription class using the Builder pattern.
      Parameters:
        `init` - the Builder pattern.

  - ### Method Detail

    - #### setContainerAttachedText

          public void setContainerAttachedText(StringProperty containerAttachedText)

      Sets the slider container's attached text.
      Parameters:
        `containerAttachedText` - a `StringProperty` or `RegExpProperty`.

    - #### setContainerAttachedText

          public void setContainerAttachedText(java.lang.String containerAttachedText)

      Sets the slider container's attached text.
      Parameters:
        `containerAttachedText` - the text.

    - #### getContainerAttachedText

          public StringProperty getContainerAttachedText()

      Returns the slider container's attached text.
      Returns:
        the container's attached text.

    - #### getOrientation

          public SliderOrientation getOrientation()

      Returns the orientation of the slider.
      Returns:
        the orientation of the slider.

    - #### setOrientation

          public void setOrientation(SliderOrientation orientation)

      Sets the orientation of the slider.
      Parameters:
        `orientation` - the orientation of the slider.

    - #### getPosition

          public java.lang.Integer getPosition()

      Returns the position of the slider.
      Returns:
        the position of the slider.

    - #### setPosition

          public void setPosition(java.lang.Integer position)

      Sets the position of the slider.
      Parameters:
        `position` - the position of the slider.

    - #### getMaxPosition

          public java.lang.Integer getMaxPosition()

      Returns the maximum position of the slider.
      Returns:
        the maximum position of the slider.

    - #### setMaxPosition

          public void setMaxPosition(java.lang.Integer maxPosition)

      Sets the maximum position of the slider.
      Parameters:
        `maxPosition` - the maximum position of the slider.

    - #### getMinPosition

          public java.lang.Integer getMinPosition()

      Returns the minimum position of the slider.
      Returns:
        the minimum position of the slider.

    - #### setMinPosition

          public void setMinPosition(java.lang.Integer minPosition)

      Sets the minimum position of the slider.
      Parameters:
        `minPosition` - the minimum position of the slider.

    - #### setScrollBar

          public void setScrollBar(java.lang.Boolean isScrollBar)

      Sets whether slider is a scrollBar.
      Parameters:
        `isScrollBar` - true if slider is a scrollBar.

    - #### isScrollBar

          public java.lang.Boolean isScrollBar()

      Indicates whether slider is a scrollBar.
      Returns:
        true if slider is a scrollBar.

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: