Package io.keikai.model.impl
Class SpinButtonControlImpl
java.lang.Object
io.keikai.model.impl.AbstractFormControlAdv
io.keikai.model.impl.SpinButtonControlImpl
- All Implemented Interfaces:
SFormControl,Serializable
Spin button 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 change increment.intgetMax()Returns the maximum value.intgetMin()Returns the minimum value.getType()Returns the type of this form control.intgetValue()Returns the current value.voidsetIncrement(int increment) Sets the change increment.voidsetMax(int max) Sets the maximum value.voidsetMin(int min) Sets the minimum value.voidsetValue(int value) Sets the current value.Methods inherited from class io.keikai.model.impl.AbstractFormControlAdv
getAnchor, getLinkedCell, getListFillRange, getName, isEnabled, isVisible, setEnabled, setLinkedCell, setListFillRange, setVisible
-
Constructor Details
-
SpinButtonControlImpl
-
-
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 value.- Returns:
- the current value
-
setValue
public void setValue(int value) Sets the current 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 change increment. Default: 1.- Returns:
- the increment
-
setIncrement
public void setIncrement(int increment) Sets the change increment.- Parameters:
increment- the increment
-