Share this page

com.hp.lft.sdk.java

# Interface SpinBox

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

      public interface SpinBox
      extends UiObjectBase, TestObject

  A Java spin box object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `down()` Sets this spin box to the next lower value.
    `java.lang.String` | `getMaximum()` Returns the maximum value of the spin box.
    `java.lang.String` | `getMinimum()` Returns the minimum value of the spin box.
    `java.lang.String` | `getValue()` Returns the spin box value.
    `void` | `setValue(java.lang.String value)` Sets the spin box value.
    `void` | `up()` Sets this spin box to the next higher value.

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

    - #### up

          void up()
           throws GeneralLeanFtException

      Sets this spin box to the next higher value.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### down

          void down()
             throws GeneralLeanFtException

      Sets this spin box to the next lower value.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getValue

          java.lang.String getValue()
                             throws GeneralLeanFtException

      Returns the spin box value.
      Returns:
        the spin box value.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### setValue

          void setValue(java.lang.String value)
                 throws GeneralLeanFtException

      Sets the spin box value.
      Parameters:
        `value` - the value of the spin box.
        Note: For SWT spinner objects, the parameter value must be an Integer (provided in String format, such as: "6", "7000", "34").
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getMaximum

          java.lang.String getMaximum()
                               throws GeneralLeanFtException

      Returns the maximum value of the spin box.
      Returns:
        the maximum value of the spin box.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getMinimum

          java.lang.String getMinimum()
                               throws GeneralLeanFtException

      Returns the minimum value of the spin box.
      Returns:
        the minimum value of the spin box.
      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: