Open topic with navigation

com.hp.lft.sdk.java

# Interface ExpandBar

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

      public interface ExpandBar
      extends UiObjectBase, TestObject

  A Java control that contains labeled bar items that can be expanded or collapsed by the user.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<ExpandBarItem>` | `getExpandedItems()` Returns a list of the expanded `ExpandBarItem` objects in the ExpandBar.
    `ExpandBarItem` | `getItem(java.lang.String text)` Returns the `ExpandBarItem` object with the specified text.
    `java.util.List<ExpandBarItem>` | `getItems()` Returns a list of the `ExpandBarItem` objects in the ExpandBar.

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

    - #### getExpandedItems

          java.util.List<ExpandBarItem> getExpandedItems()
                                                  throws GeneralLeanFtException

      Returns a list of the expanded `ExpandBarItem` objects in the ExpandBar.
      Returns:
        a list of the expanded `ExpandBarItem` objects in the ExpandBar.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getItem

                                                      ExpandBarItem getItem(java.lang.String text)
                         throws GeneralLeanFtException

      Returns the `ExpandBarItem` object with the specified text.
      Parameters:
        `text` - the text of the item.
      Returns:
        the `ExpandBarItem` object with the specified text.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getItems

          java.util.List<ExpandBarItem> getItems()
                                          throws GeneralLeanFtException

      Returns a list of the `ExpandBarItem` objects in the ExpandBar.
      Returns:
        a list of the `ExpandBarItem` objects in the ExpandBar.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.