Package com.hp.lft.sdk.winforms
Interface ToolBar
- All Superinterfaces:
- Clickable,- DoubleClickable,- EnabledProvider,- LocationInfoProvider,- SupportDragAndDrop,- SupportSendKeys,- SupportsNativeObject,- TestObject,- TestObjectDescriber,- UiObjectBase,- UiObjectBase,- VisibleProvider,- WaitUntilEnabledProvider,- WaitUntilVisibleProvider
A .NET Windows Forms toolbar. 
A .NET Windows Forms menu is also known as a ToolBar test object.
A .NET Windows Forms menu is also known as a ToolBar test object.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the tooltip text of the error icon associated with this object.Returns the item with the specified text.getItems()Returns the toolbar items in this toolbar.Returns the selected items in this toolbar.For menu: returns the names of all top menu items; For toolbar: returns the names of all toolbar items.booleanisItemExists(String itemPath) Indicates whether the specified toolbar button or menu button exists.voidSelects the specified item in this menu.voidshowDropdown(int index) Opens the dropdown menu associated with this toolbar button.voidshowDropdown(String itemPath) Opens the dropdown menu associated with this menu item or toolbar item.Methods inherited from interface com.hp.lft.sdk.DoubleClickabledoubleClick, doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.EnabledProviderisEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportDragAndDropdragAndDropOn, dragAndDropOnMethods inherited from interface com.hp.lft.sdk.SupportSendKeyssendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.UiObjectBasegetHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMoveMethods inherited from interface com.hp.lft.sdk.winforms.UiObjectBasefireEvent, getFullNamePath, getFullType, getObjectName, getObjectProperty, getText, getWindowClassRegExp, getWindowId, isChildWindow, isOwnedWindowMethods inherited from interface com.hp.lft.sdk.VisibleProviderisVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProviderwaitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProviderwaitUntilVisible, waitUntilVisible
- 
Method Details- 
getTopMenuItemsFor menu: returns the names of all top menu items; For toolbar: returns the names of all toolbar items.- Returns:
- the names of top menu items
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getItemsReturns the toolbar items in this toolbar.
 Do not invoke on a menu.- Returns:
- the toolbar items
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getSelectedItemsReturns the selected items in this toolbar.
 Do not invoke on a menu.- Returns:
- the selected items
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectSelects the specified item in this menu.
 Do not invoke on a toolbar.
 Only visible items can be selected. You can useshowDropdown(int)orshowDropdown(String)to make the button visible.- Parameters:
- itemPath- The full path of the menu item is a list of menu button names separated by semicolons.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
showDropdownOpens the dropdown menu associated with this menu item or toolbar item.- Parameters:
- itemPath- The full path of the item. The full path of a menu item is a list of menu item names separated by semicolons.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
showDropdownOpens the dropdown menu associated with this toolbar button.
 Do not invoke on a menu.- Parameters:
- index- the 0-based index of the button
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isItemExistsIndicates whether the specified toolbar button or menu button exists.- Parameters:
- itemPath- the full path of the button. The full path of a menu button is a list of menu button names separated by semicolons.
- Returns:
- true if exists
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getErrorTextReturns the tooltip text of the error icon associated with this object.- Returns:
- the tooltip text
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getItemReturns the item with the specified text.- Parameters:
- text- the item text
- Returns:
- the item with the specified text.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-