Class TouchSpinConfig
java.lang.Object
com.jbstrap.ui.components.form.config.TouchSpinConfig
- Since:
- 4.0
- Author:
- JBStrap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the style class of the up button.intgetMax()Gets the maximum value that the form item can have.getMin()Gets the style class of the prefix box.getStep()booleanbooleanvoidsetButtondownClass(String buttondownClass) voidsetButtonupClass(String buttonupClass) Sets the style class of the up button.voidsetDecimal(int decimal) voidvoidvoidsetMousewheel(boolean mousewheel) voidsetPostfix(String postfix) voidsetPostfixExtraclass(String postfixExtraclass) Sets the style class of the postfix box.voidvoidsetPrefixExtraclass(String prefixExtraclass) Sets the style class of the prefix box.voidvoidsetVerticalbuttons(boolean verticalbuttons)
-
Constructor Details
-
TouchSpinConfig
public TouchSpinConfig()
-
-
Method Details
-
isMousewheel
public boolean isMousewheel()- Returns:
- If
true, the mousewheel is supported.
-
setMousewheel
public void setMousewheel(boolean mousewheel) - Parameters:
mousewheel- Iftruethe mousewheel is enabled, otherwise, it is not.
-
getMin
- Returns:
- The minimum value that the form item can have, or
nullif a minimum value is not set.
-
setMin
- Parameters:
min- The minimum value that the form item can have. Ifnull, no minimum value will be set.
-
getMax
Gets the maximum value that the form item can have.- Returns:
- The maximum value that the form item can have, or
nullif a maximum value is not set.
-
setMax
- Parameters:
max- The maximum value that the form item can have. Ifnull, no maximum value will be set.
-
getStep
- Returns:
- The step increment value
-
setStep
- Parameters:
step- The step increment value
-
getDecimal
public int getDecimal()- Returns:
- The amount of displayed decimal points.
-
setDecimal
public void setDecimal(int decimal) - Parameters:
decimal- The amount of displayed decimal points.
-
getPrefix
- Returns:
- The prefix text
-
setPrefix
- Parameters:
prefix- The prefix text
-
getPostfix
- Returns:
- The postfix text
-
setPostfix
- Parameters:
postfix- The postfix text
-
getPrefixExtraclass
Gets the style class of the prefix box.- Returns:
- The style class of the prefix box, or
nullif none is applied.
-
setPrefixExtraclass
Sets the style class of the prefix box.- Parameters:
prefixExtraclass- The name of style class that will be applied to the prefix box
-
getPostfixExtraclass
- Returns:
- The style class of the postfix box, or
nullif none is applied.
-
setPostfixExtraclass
Sets the style class of the postfix box.- Parameters:
postfixExtraclass- The name of style class that will be applied to the prefix box
-
getButtonupClass
Gets the style class of the up button.- Returns:
- The style class of the up button or
nullif has no style class
-
setButtonupClass
Sets the style class of the up button.- Parameters:
buttonupClass- The name of the style class that will be applied to the up button
-
getButtondownClass
- Returns:
- The style class of the down button or
nullif has no style class
-
setButtondownClass
- Parameters:
buttondownClass- The name of the style class that will be applied to the down button
-
isVerticalbuttons
public boolean isVerticalbuttons()- Returns:
- If
true, the buttons are under each other. Otherwise, the buttons are before and after the component.
-
setVerticalbuttons
public void setVerticalbuttons(boolean verticalbuttons) - Parameters:
verticalbuttons- Iftrue, the buttons are under each other. Otherwise, the buttons are before and after the component.
-