Class SpinnerFieldComponent

java.lang.Object
com.ptc.core.components.rendering.AbstractGuiComponent
com.ptc.core.components.rendering.guicomponents.SpinnerFieldComponent
All Implemented Interfaces:
GuiComponent, com.ptc.netmarkets.util.misc.NmFormatable, Serializable

public class SpinnerFieldComponent extends AbstractGuiComponent
The spinner field component.

Supported API: true

Extendable: false
See Also:
  • com.ptc.jsca.renderers.SpinnerFieldComponentRenderer
  • Ext.ux.form.SpinnerField
  • Serialized Form
  • Method Details

    • getValue

      public String getValue()


      Supported API: true
      Returns:
      A value to initialize this field with (default is null).
    • setValue

      public void setValue(String value)


      Supported API: true
      A value to initialize this field with (default is null).
      Parameters:
      value -
    • getMinValue

      public String getMinValue()


      Supported API: true
      Returns:
      The minimum allowed value (defaults to Number.NEGATIVE_INFINITY when set to null)
    • setMinValue

      public void setMinValue(String minValue)
      The minimum allowed value (defaults to Number.NEGATIVE_INFINITY when set to null)

      Supported API: true
      Parameters:
      minValue -
    • getMaxValue

      public String getMaxValue()


      Supported API: true
      Returns:
      The maximum allowed value (defaults to Number.MAX_VALUE when set to null)
    • setMaxValue

      public void setMaxValue(String maxValue)
      The maximum allowed value (defaults to Number.MAX_VALUE when set to null)

      Supported API: true
      Parameters:
      maxValue -
    • isAllowDecimals

      public boolean isAllowDecimals()


      Supported API: true
      Returns:
      False to disallow decimal values (defaults to true)
    • setAllowDecimals

      public void setAllowDecimals(boolean allowDecimals)
      False to disallow decimal values (defaults to true)

      Supported API: true
      Parameters:
      allowDecimals -
    • getDecimalPrecision

      public int getDecimalPrecision()


      Supported API: true
      Returns:
      The maximum precision to display after the decimal separator (defaults to 0)
    • setDecimalPrecision

      public void setDecimalPrecision(int decimalPrecision)
      The maximum precision to display after the decimal separator (defaults to 0)

      Supported API: true
      Parameters:
      decimalPrecision -
    • getAlternateIncrementValue

      public String getAlternateIncrementValue()


      Supported API: true
      Returns:
      The number to increment when clicking or keying page up and page down.
    • setAlternateIncrementValue

      public void setAlternateIncrementValue(String alternateIncrementValue)
      The number to increment when clicking or keying page up and page down.

      Supported API: true
      Parameters:
      alternateIncrementValue -
    • getWidth

      public String getWidth()


      Supported API: true
      Returns:
      The width of this component in pixels (defaults to auto).
    • setWidth

      public void setWidth(String width)
      The width of this component in pixels (defaults to auto).

      Supported API: true
      Parameters:
      width -
    • getIncrementValue

      public String getIncrementValue()


      Supported API: true
      Returns:
      The number to increment when clicking or keying up and down.
    • setIncrementValue

      public void setIncrementValue(String incrementValue)
      The number to increment when clicking or keying up and down.

      Supported API: true
      Parameters:
      incrementValue -