Package com.hp.lft.sdk
Class ScrollInfo
java.lang.Object
com.hp.lft.sdk.ScrollInfo
Class representing the properties of a scroll bar.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the ScrollInfo class.ScrollInfo
(boolean exists, int maximum, int minimum, int pageSize, int position) Initializes a new instance of the ScrollInfo class with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionReturns the maximum position (in lines) of the scroll bar.Returns the minimum position (in lines) of the scroll bar.Returns the size (in lines) of a single page of the scroll bar.Returns the current position (in lines) of the scroll bar.isExists()
Indicates whether the scroll bar exists.void
Sets whether the scroll bar exists.void
setMaximum
(Integer maximum) Sets the maximum position (in lines) of the scroll bar.void
setMinimum
(Integer minimum) Sets the minimum position (in lines) of the scroll bar.void
setPageSize
(Integer pageSize) Sets the size (in lines) of a single page of the scroll bar.void
setPosition
(Integer position) Sets the current position (in lines) of the scroll bar.toString()
-
Constructor Details
-
ScrollInfo
public ScrollInfo(boolean exists, int maximum, int minimum, int pageSize, int position) Initializes a new instance of the ScrollInfo class with the specified properties.- Parameters:
exists
- indicates whether the scroll bar exists.maximum
- the maximum position (in lines) of the scroll bar.minimum
- the minimum position (in lines) of the scroll bar.pageSize
- the size (in lines) of a single page of the scroll bar.position
- the current position (in lines) of the scroll bar.
-
ScrollInfo
public ScrollInfo()Initializes a new instance of the ScrollInfo class.
-
-
Method Details
-
toString
-
isExists
Indicates whether the scroll bar exists.- Returns:
- true, if the scroll bar exists.
-
setExists
Sets whether the scroll bar exists.- Parameters:
exists
- indicates whether the scroll bar exists.
-
getPageSize
Returns the size (in lines) of a single page of the scroll bar.- Returns:
- the pageSize
-
setPageSize
Sets the size (in lines) of a single page of the scroll bar.- Parameters:
pageSize
- the size (in lines) of a single page of the scroll bar.
-
getPosition
Returns the current position (in lines) of the scroll bar.- Returns:
- position the current position (in lines) of the scroll bar.
-
setPosition
Sets the current position (in lines) of the scroll bar.- Parameters:
position
- the line position to set
-
getMaximum
Returns the maximum position (in lines) of the scroll bar.- Returns:
- the maximum position (in lines) of the scroll bar.
-
setMaximum
Sets the maximum position (in lines) of the scroll bar.- Parameters:
maximum
- position (in lines) of the scroll bar.
-
getMinimum
Returns the minimum position (in lines) of the scroll bar.- Returns:
- minimum position (in lines) of the scroll bar.
-
setMinimum
Sets the minimum position (in lines) of the scroll bar.- Parameters:
minimum
- the minimum position (in lines) of the scroll bar.
-