Package com.hp.lft.sdk
Class ScrollProperty
java.lang.Object
com.hp.lft.sdk.ScrollProperty
- All Implemented Interfaces:
CloneableObject
,com.hp.lft.sdk.internal.GroupedProperty
,Cloneable
public class ScrollProperty
extends Object
implements com.hp.lft.sdk.internal.GroupedProperty, CloneableObject
The class used for scrollbar properties.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the ScrollProperty class.ScrollProperty
(ScrollInfo scrollInfo) Initializes a new instance of the ScrollProperty class with the provided scrollInfo.ScrollProperty
(ScrollProperty scrollPropertyToCopy) Initializes a new instance of the ScrollProperty class provided copy of a ScrollProperty object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a clone of this instance.Returns 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.Sets whether the scroll bar exists.setMaximum
(Integer maximum) Sets the maximum position (in lines) of the scroll bar.setMinimum
(Integer minimum) Sets the minimum position (in lines) of the scroll bar.setPageSize
(Integer pageSize) Sets the size (in lines) of a single page of the scroll bar.setPosition
(Integer position) Sets the current position (in lines) of the scroll bar.
-
Constructor Details
-
ScrollProperty
public ScrollProperty()Initializes a new instance of the ScrollProperty class. -
ScrollProperty
Initializes a new instance of the ScrollProperty class with the provided scrollInfo.- Parameters:
scrollInfo
- the properties of the scroll bar instance.
-
ScrollProperty
Initializes a new instance of the ScrollProperty class provided copy of a ScrollProperty object.- Parameters:
scrollPropertyToCopy
- the ScrollProperty object to use for the initialization of the new instance.
-
-
Method Details
-
clone
Description copied from interface:CloneableObject
Returns a clone of this instance.- Specified by:
clone
in interfaceCloneableObject
- Overrides:
clone
in classObject
- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException
- if the instance cannot be cloned.
-
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.- Returns:
- the ScrollProperty instance with the updated state (builder pattern).
-
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.- Returns:
- the ScrollProperty instance with the updated state (builder pattern).
-
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 position (in lines) to set.- Returns:
- the ScrollProperty instance with the updated state (builder pattern).
-
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.- Returns:
- the ScrollProperty instance with the updated state (builder pattern).
-
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.- Returns:
- the ScrollProperty instance with the updated state (builder pattern).
-
getProperties
- Specified by:
getProperties
in interfacecom.hp.lft.sdk.internal.GroupedProperty
-