Share this page

com.hp.lft.sdk.stdwin

## Interface ListView

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

      public interface ListView
      extends UiObjectWithLayoutInfo, TestObject, ListBase<ListViewItem>

  A standard Windows list-view object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<ListViewItem>` | `getCheckedItems()` Returns all items marked as checked to a unmodified list object.
    `java.lang.String` | `getColumnHeader(int columnIndex)` Returns the text header of the specified (report-style) list-view column.
    `int` | `getVisibleColumnsCount()` Returns the number of visible columns in the list-view object.

    - ### 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.stdwin.ListBase

      `activateItem, activateItem, activateItem, activateItem, activateItem, activateItem, deselect, deselect, deselect, extendSelect, extendSelect, extendSelect, getItem, getItems, getSelectedItems, select, select, select, selectRange, selectRange, selectRange, selectRange, selectRange, selectRange`

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

      `waitUntilEnabled, waitUntilEnabled`

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

      `isEnabled`

- - ### Method Detail

    - #### getVisibleColumnsCount

          int getVisibleColumnsCount()
                              throws GeneralLeanFtException

      Returns the number of visible columns in the list-view object.
      Returns:
        the number of visible columns in the list-view object.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getCheckedItems

          java.util.List<ListViewItem> getCheckedItems()
                                                throws GeneralLeanFtException

      Returns all items marked as checked to a unmodified list object.
      Returns:
        all items marked as checked to a unmodified list object.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getColumnHeader

          java.lang.String getColumnHeader(int columnIndex)
                                    throws GeneralLeanFtException

      Returns the text header of the specified (report-style) list-view column.
      Parameters:
        `columnIndex` - the 0-based index of the list column.
      Returns:
        the text header of the specified (report-style) list-view column.
      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: