Share this page

com.hp.lft.sdk.stdwin

## Interface ToolBar

- All Superinterfaces:
    Clickable, DoubleClickable, LocationInfoProvider, SupportDragAndDrop, SupportSendKeys, TestObject, TestObjectDescriber, UiObjectBase, UiObjectWithLayoutInfo, VisibleProvider, WaitUntilVisibleProvider, WaitUntilEnabledProvider, EnabledProvider

      public interface ToolBar
      extends UiObjectWithLayoutInfo, TestObject

  A standard Windows toolbar.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `ToolBarButton` | `getButton(java.lang.String text)` Returns an button with the given text.
    `java.util.List<ToolBarButton>` | `getButtons()` Returns all toolbar buttons in this toolbar.
    `java.util.List<ToolBarButton>` | `getSelectedButtons()` Returns all selected buttons in this toolbar.

    - ### Methods inherited from interface com.hp.lft.sdk.stdwin.UiObjectWithLayoutInfo

      `isRightAligned, isRightToLeftLayout, isRightToLeftReading`

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

      `getAccessibleName, getAttachedText, getText, getWindowClassRegExp, getWindowExtendedStyle, getWindowExtendedStyleAsLong, getWindowId, getWindowStyle, getWindowStyleAsLong`

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

      `getHandle, getNativeClass, getWindowTitleRegExp, isEnabled, isFocused, isVisible, mouseMove`

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

      `sendKeys, sendKeys`

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

      `dragAndDropOn, dragAndDropOn`

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

    - #### getButtons

          java.util.List<ToolBarButton> getButtons()
                                            throws GeneralLeanFtException

      Returns all toolbar buttons in this toolbar.
      Returns:
        all toolbar buttons in this toolbar.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSelectedButtons

          java.util.List<ToolBarButton> getSelectedButtons()
                                                    throws GeneralLeanFtException

      Returns all selected buttons in this toolbar.
      Returns:
        all selected buttons in this toolbar.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getButton

                                                      ToolBarButton getButton(java.lang.String text)
                           throws GeneralLeanFtException

      Returns an button with the given text.
      Parameters:
        `text` - the text of the specified button.
      Returns:
        the button with the given text.
      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: