Open topic with navigation

com.hp.lft.sdk.winforms

## Interface ListView

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

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

  A .NET Windows Forms list-view object.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<ListViewItem>` | `getCheckedItems()` Returns items marked as checked to a unmodified list object.
    `java.lang.String` | `getColumnHeader(int columnIndex)` Returns the header text 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.winforms.UiObjectBase

      `fireEvent, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, getWindowClassRegExp, getWindowId, isChildWindow, isOwnedWindow`

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

      `activateItem, activateItem, activateItem, activateItem, activateItem, activateItem, deselect, deselect, deselect, extendSelect, extendSelect, extendSelect, getErrorText, 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
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getCheckedItems

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

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

    - #### getColumnHeader

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

      Returns the header text of the specified (report-style) list-view column.
      Parameters:
        `columnIndex` - the 0-based index of the list column
      Returns:
        the header text
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.