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 Details

    • ScrollProperty

      public ScrollProperty()
      Initializes a new instance of the ScrollProperty class.
    • ScrollProperty

      public ScrollProperty(ScrollInfo scrollInfo)
      Initializes a new instance of the ScrollProperty class with the provided scrollInfo.
      Parameters:
      scrollInfo - the properties of the scroll bar instance.
    • ScrollProperty

      public ScrollProperty(ScrollProperty scrollPropertyToCopy)
      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

      public Object clone() throws CloneNotSupportedException
      Description copied from interface: CloneableObject
      Returns a clone of this instance.
      Specified by:
      clone in interface CloneableObject
      Overrides:
      clone in class Object
      Returns:
      a clone of this instance.
      Throws:
      CloneNotSupportedException - if the instance cannot be cloned.
    • isExists

      public Boolean isExists()
      Indicates whether the scroll bar exists.
      Returns:
      true, if the scroll bar exists.
    • setExists

      public ScrollProperty setExists(Boolean exists)
      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

      public Integer getPageSize()
      Returns the size (in lines) of a single page of the scroll bar.
      Returns:
      the pageSize
    • setPageSize

      public ScrollProperty setPageSize(Integer pageSize)
      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

      public Integer getPosition()
      Returns the current position (in lines) of the scroll bar.
      Returns:
      position the current position (in lines) of the scroll bar.
    • setPosition

      public ScrollProperty setPosition(Integer position)
      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

      public Integer getMaximum()
      Returns the maximum position (in lines) of the scroll bar.
      Returns:
      the maximum position (in lines) of the scroll bar.
    • setMaximum

      public ScrollProperty setMaximum(Integer maximum)
      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

      public Integer getMinimum()
      Returns the minimum position (in lines) of the scroll bar.
      Returns:
      minimum position (in lines) of the scroll bar.
    • setMinimum

      public ScrollProperty setMinimum(Integer minimum)
      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

      public Map<String,Object> getProperties()
      Specified by:
      getProperties in interface com.hp.lft.sdk.internal.GroupedProperty