Open topic with navigation

com.hp.lft.sdk.java

# Interface TabControl

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

      public interface TabControl
      extends UiObjectBase, TestObject

  A Java tabstrip control containing tabbed panels.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `void` | `close(int index)` Closes the specified tab panel.
    `void` | `close(java.lang.String tab)` Closes the specified tab panel.
    `java.lang.String` | `getOrigLogicalLocation()` Returns the original logical location of the tab object relative to the parent object.
    `java.lang.String` | `getSelectedTab()` Returns the selected tabbed panel.
    `int` | `getTabsCount()` Returns the number of tabbed panels contained in the tab object.
    `void` | `select(int index)` Selects the specified tab panel.
    `void` | `select(java.lang.String tab)` Selects the specified tab panel.

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

    - #### getTabsCount

          int getTabsCount()
                    throws GeneralLeanFtException

      Returns the number of tabbed panels contained in the tab object.
      Returns:
        the number of tabbed panels contained in the tab object.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSelectedTab

          java.lang.String getSelectedTab()
                                   throws GeneralLeanFtException

      Returns the selected tabbed panel.
      Returns:
        the selected tabbed panel.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getOrigLogicalLocation

          java.lang.String getOrigLogicalLocation()
                                           throws GeneralLeanFtException

      Returns the original logical location of the tab object relative to the parent object.
      Returns:
        a string of form X_<x_logical_loc>__Y_<y_logical_loc> where logical_loc is one of 'SMALL', 'BIG', 'FULL', 'CENTER' or 'UNK' if no significance was found.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### select

          void select(java.lang.String tab)
               throws GeneralLeanFtException

      Selects the specified tab panel.
      Parameters:
        `tab` - the tab to select.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### select

          void select(int index)
               throws GeneralLeanFtException

      Selects the specified tab panel.
      Parameters:
        `index` - the 0-based index of the tab to select.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### close

          void close(java.lang.String tab)
              throws GeneralLeanFtException

      Closes the specified tab panel.
      Parameters:
        `tab` - the tab to close.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### close

          void close(int index)
              throws GeneralLeanFtException

      Closes the specified tab panel.
      Parameters:
        `index` - the 0-based index of the tab panel to close.
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.