Spinner.setDigits

Sets the number of decimal places used by the receiver. <p> The digit setting is used to allow for floating point values in the receiver. For example, to set the selection to a floating point value of 1.37 call setDigits() with a value of 2 and setSelection() with a value of 137. Similarly, if getDigits() has a value of 2 and getSelection() returns 137 this should be interpreted as 1.37. This applies to all numeric APIs. </p>

@param value the new digits (must be greater than or equal to zero)

@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if the value is less than zero</li> </ul> @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

class Spinner
void
setDigits
(
int value
)

Meta