Package com.hp.lft.sdk.java
Interface Slider
- All Superinterfaces:
Clickable,DoubleClickable,EnabledProvider,LocationInfoProvider,SupportsNativeObject,TestObject,TestObjectDescriber,UiObjectBase,VisibleProvider,WaitUntilEnabledProvider,WaitUntilVisibleProvider
A Java slider.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the text of the slider object's container.intReturns the maximum position of the slider.intReturns the minimum position of the slider.Returns the orientation of the slider.intReturns the position of the slider.booleanIndicates whether slider is a scrollBar.voidnextLine()Moves the slider downward, or to the right, by one line.voidnextLine(int numberOfLines) Moves the slider downward, or to the right, the specified number of lines.voidMoves the slider upward, or to the left, by one line.voidpreviousLine(int numberOfLines) Moves the slider upward, or to the left, the specified number of lines.voidsetPosition(int position) Sets the position of the slider.Methods inherited from interface com.hp.lft.sdk.DoubleClickable
doubleClick, doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, 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.TestObjectDescriber
describeMethods inherited from interface com.hp.lft.sdk.java.UiObjectBase
createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
-
Method Details
-
getContainerAttachedText
Returns the text of the slider object's container.- Returns:
- the container's text.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getOrientation
Returns the orientation of the slider.- Returns:
- a value of the
SliderOrientationenum. - Throws:
GeneralLeanFtException- if error occurs during execution
-
getPosition
Returns the position of the slider.- Returns:
- the position of the slider.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
setPosition
Sets the position of the slider.- Parameters:
position- the position of the slider.- Throws:
GeneralLeanFtException- if error occurs during execution
-
getMaxPosition
Returns the maximum position of the slider.- Returns:
- the maximum position of the slider.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getMinPosition
Returns the minimum position of the slider.- Returns:
- the minimum position of the slider.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
nextLine
Moves the slider downward, or to the right, the specified number of lines.- Parameters:
numberOfLines- the number of lines to move the slider.- Throws:
GeneralLeanFtException- if error occurs during execution
-
nextLine
Moves the slider downward, or to the right, by one line.- Throws:
GeneralLeanFtException- if error occurs during execution
-
previousLine
Moves the slider upward, or to the left, the specified number of lines.- Parameters:
numberOfLines- the number of lines to move the slider.- Throws:
GeneralLeanFtException- if error occurs during execution
-
previousLine
Moves the slider upward, or to the left, by one line.- Throws:
GeneralLeanFtException- if error occurs during execution
-
isScrollBar
Indicates whether slider is a scrollBar.- Returns:
- true if slider is a scrollBar.
- Throws:
GeneralLeanFtException- if error occurs during execution
-