Class TouchSpinConfig
java.lang.Object
com.jbstrap.ui.components.form.config.TouchSpinConfig
- Since:
- 4.0
- Author:
- JBStrap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the style class of the up button.int
getMax()
Gets the maximum value that the form item can have.getMin()
Gets the style class of the prefix box.getStep()
boolean
boolean
void
setButtondownClass
(String buttondownClass) void
setButtonupClass
(String buttonupClass) Sets the style class of the up button.void
setDecimal
(int decimal) void
void
void
setMousewheel
(boolean mousewheel) void
setPostfix
(String postfix) void
setPostfixExtraclass
(String postfixExtraclass) Sets the style class of the postfix box.void
void
setPrefixExtraclass
(String prefixExtraclass) Sets the style class of the prefix box.void
void
setVerticalbuttons
(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
- Iftrue
the mousewheel is enabled, otherwise, it is not.
-
getMin
- Returns:
- The minimum value that the form item can have, or
null
if 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
null
if 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
null
if 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
null
if 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
null
if 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
null
if 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.
-