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
The spinner field component.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
com.ptc.jsca.renderers.SpinnerFieldComponentRendererExt.ux.form.SpinnerField- Serialized Form
-
Method Summary
Modifier and TypeMethodDescription
Supported API: trueint
Supported API: true
Supported API: true
Supported API: true
Supported API: truegetValue()
Supported API: truegetWidth()
Supported API: trueboolean
Supported API: truevoidsetAllowDecimals(boolean allowDecimals) False to disallow decimal values (defaults to true)
Supported API: truevoidsetAlternateIncrementValue(String alternateIncrementValue) The number to increment when clicking or keying page up and page down.voidsetDecimalPrecision(int decimalPrecision) The maximum precision to display after the decimal separator (defaults to 0)
Supported API: truevoidsetIncrementValue(String incrementValue) The number to increment when clicking or keying up and down.voidsetMaxValue(String maxValue) The maximum allowed value (defaults to Number.MAX_VALUE when set to null)
Supported API: truevoidsetMinValue(String minValue) The minimum allowed value (defaults to Number.NEGATIVE_INFINITY when set to null)
Supported API: truevoid
Supported API: true
A value to initialize this field with (default is null).voidThe width of this component in pixels (defaults to auto).Methods inherited from class com.ptc.core.components.rendering.AbstractGuiComponent
setColumnName, setEnabled, setId, setLabel, setMultiValued, setName
-
Method Details
-
getValue
Supported API: true- Returns:
- A value to initialize this field with (default is null).
-
setValue
Supported API: true
A value to initialize this field with (default is null).- Parameters:
value-
-
getMinValue
Supported API: true- Returns:
- The minimum allowed value (defaults to Number.NEGATIVE_INFINITY when set to null)
-
setMinValue
The minimum allowed value (defaults to Number.NEGATIVE_INFINITY when set to null)
Supported API: true- Parameters:
minValue-
-
getMaxValue
Supported API: true- Returns:
- The maximum allowed value (defaults to Number.MAX_VALUE when set to null)
-
setMaxValue
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
Supported API: true- Returns:
- The number to increment when clicking or keying page up and page down.
-
setAlternateIncrementValue
The number to increment when clicking or keying page up and page down.
Supported API: true- Parameters:
alternateIncrementValue-
-
getWidth
Supported API: true- Returns:
- The width of this component in pixels (defaults to auto).
-
setWidth
The width of this component in pixels (defaults to auto).
Supported API: true- Parameters:
width-
-
getIncrementValue
Supported API: true- Returns:
- The number to increment when clicking or keying up and down.
-
setIncrementValue
The number to increment when clicking or keying up and down.
Supported API: true- Parameters:
incrementValue-
-