Class TouchSpinConfig

java.lang.Object
com.jbstrap.ui.components.form.config.TouchSpinConfig

public class TouchSpinConfig extends Object
Since:
4.0
Author:
JBStrap
  • 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 - If true the mousewheel is enabled, otherwise, it is not.
    • getMin

      public Number getMin()
      Returns:
      The minimum value that the form item can have, or null if a minimum value is not set.
    • setMin

      public void setMin(Number min)
      Parameters:
      min - The minimum value that the form item can have. If null, no minimum value will be set.
    • getMax

      public Number 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

      public void setMax(Number max)
      Parameters:
      max - The maximum value that the form item can have. If null, no maximum value will be set.
    • getStep

      public Number getStep()
      Returns:
      The step increment value
    • setStep

      public void setStep(Number step)
      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

      public String getPrefix()
      Returns:
      The prefix text
    • setPrefix

      public void setPrefix(String prefix)
      Parameters:
      prefix - The prefix text
    • getPostfix

      public String getPostfix()
      Returns:
      The postfix text
    • setPostfix

      public void setPostfix(String postfix)
      Parameters:
      postfix - The postfix text
    • getPrefixExtraclass

      public String getPrefixExtraclass()
      Gets the style class of the prefix box.
      Returns:
      The style class of the prefix box, or null if none is applied.
    • setPrefixExtraclass

      public void setPrefixExtraclass(String prefixExtraclass)
      Sets the style class of the prefix box.
      Parameters:
      prefixExtraclass - The name of style class that will be applied to the prefix box
    • getPostfixExtraclass

      public String getPostfixExtraclass()
      Returns:
      The style class of the postfix box, or null if none is applied.
    • setPostfixExtraclass

      public void setPostfixExtraclass(String postfixExtraclass)
      Sets the style class of the postfix box.
      Parameters:
      postfixExtraclass - The name of style class that will be applied to the prefix box
    • getButtonupClass

      public String 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

      public void setButtonupClass(String buttonupClass)
      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

      public String getButtondownClass()
      Returns:
      The style class of the down button or null if has no style class
    • setButtondownClass

      public void setButtondownClass(String buttondownClass)
      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 - If true, the buttons are under each other. Otherwise, the buttons are before and after the component.