Package com.hp.lft.sdk.uiapro
Interface ScrollPattern
public interface ScrollPattern
The methods and properties used to interact with a container control that can be scrolled.
 The children of this element support 
ScrollItemPattern.- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleandoubledoubledoubledoublevoidscroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount) Scrolls the visible region of the content area horizontally and vertically.voidscrollHorizontal(ScrollAmount horizontalAmount) Scrolls the visible region of the content area horizontally.voidscrollVertical(ScrollAmount verticalAmount) Scrolls the visible region of the content area vertically.voidsetHorizontalScrollPercent(double value) Set the current horizontal scroll position.voidsetScrollPercent(double horizontalPercent, double verticalPercent) Sets the horizontal and/or vertical scroll position as a percentage of the total content area within the automation element.voidsetVerticalScrollPercent(double value) Set the current vertical scroll position.
- 
Method Details- 
canScrollHorizontally- Returns:
- Indicates whether the UIA Pro element can scroll horizontally.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
canScrollVertically- Returns:
- Indicates whether the UIA Pro element can scroll vertically.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
getVerticalViewSize- Returns:
- The current vertical view size.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
getHorizontalViewSize- Returns:
- The current horizontal view size.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
setVerticalScrollPercentSet the current vertical scroll position.- Parameters:
- value- the current vertical scroll position.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
getVerticalScrollPercent- Returns:
- The current vertical scroll position.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
setHorizontalScrollPercentSet the current horizontal scroll position.- Parameters:
- value- the current horizontal scroll position.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
getHorizontalScrollPercent- Returns:
- The current horizontal scroll position.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
scrollvoid scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount) throws GeneralLeanFtException Scrolls the visible region of the content area horizontally and vertically.- Parameters:
- horizontalAmount- The horizontal increment specific to the control.
- verticalAmount- The vertical increment specific to the control.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
scrollHorizontalScrolls the visible region of the content area horizontally.- Parameters:
- horizontalAmount- The horizontal increment specific to the control.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
scrollVerticalScrolls the visible region of the content area vertically.- Parameters:
- verticalAmount- The vertical increment specific to the control.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
- 
setScrollPercentvoid setScrollPercent(double horizontalPercent, double verticalPercent) throws GeneralLeanFtException Sets the horizontal and/or vertical scroll position as a percentage of the total content area within the automation element.- Parameters:
- horizontalPercent- The percentage of the total horizontal content area.
- verticalPercent- The percentage of the total vertical content area.
- Throws:
- GeneralLeanFtException- if error occurs during execution.
 
 
-