Package io.keikai.model.impl
Class ScrollBarControlImpl
java.lang.Object
io.keikai.model.impl.AbstractFormControlAdv
io.keikai.model.impl.ScrollBarControlImpl
- All Implemented Interfaces:
SFormControl,Serializable
Scroll bar form control implementation.
- Since:
- 7.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.keikai.model.SFormControl
SFormControl.ControlType -
Field Summary
Fields inherited from class io.keikai.model.impl.AbstractFormControlAdv
anchor, enabled, linkedCell, listFillRange, name, visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the small change increment (arrow click).intgetMax()Returns the maximum value.intgetMin()Returns the minimum value.intReturns the large change increment (page click).getType()Returns the type of this form control.intgetValue()Returns the current scroll bar value.voidsetIncrement(int increment) Sets the small change increment.voidsetMax(int max) Sets the maximum value.voidsetMin(int min) Sets the minimum value.voidsetPageIncrement(int pageIncrement) Sets the large change increment.voidsetValue(int value) Sets the current scroll bar value.Methods inherited from class io.keikai.model.impl.AbstractFormControlAdv
getAnchor, getLinkedCell, getListFillRange, getName, isEnabled, isVisible, setEnabled, setLinkedCell, setListFillRange, setVisible
-
Constructor Details
-
ScrollBarControlImpl
-
-
Method Details
-
getType
Description copied from interface:SFormControlReturns 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
-