Class ScrollBarControlImpl

java.lang.Object
io.keikai.model.impl.AbstractFormControlAdv
io.keikai.model.impl.ScrollBarControlImpl
All Implemented Interfaces:
SFormControl, Serializable

public class ScrollBarControlImpl extends AbstractFormControlAdv
Scroll bar form control implementation.
Since:
7.0.0
See Also:
  • Constructor Details

    • ScrollBarControlImpl

      public ScrollBarControlImpl(String name, ViewAnchor anchor)
  • Method Details

    • getType

      public SFormControl.ControlType getType()
      Description copied from interface: SFormControl
      Returns the type of this form control.
      Returns:
      the control type
    • getValue

      public int getValue()
      Returns the current scroll bar value.
      Returns:
      the current value
    • setValue

      public void setValue(int value)
      Sets the current scroll bar value.
      Parameters:
      value - the value (must be between min and max)
    • getMin

      public int getMin()
      Returns the minimum value. Default: 0.
      Returns:
      the minimum value
    • setMin

      public void setMin(int min)
      Sets the minimum value.
      Parameters:
      min - the minimum value
    • getMax

      public int getMax()
      Returns the maximum value. Default: 30000.
      Returns:
      the maximum value
    • setMax

      public void setMax(int max)
      Sets the maximum value.
      Parameters:
      max - the maximum value
    • getIncrement

      public int getIncrement()
      Returns the small change increment (arrow click). Default: 1.
      Returns:
      the increment
    • setIncrement

      public void setIncrement(int increment)
      Sets the small change increment.
      Parameters:
      increment - the increment
    • getPageIncrement

      public int getPageIncrement()
      Returns the large change increment (page click). Default: 10.
      Returns:
      the page increment
    • setPageIncrement

      public void setPageIncrement(int pageIncrement)
      Sets the large change increment.
      Parameters:
      pageIncrement - the page increment