Interface NumberSpinnerHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Spinner of integer values" form component. The Swing widget is an
integer-valued
JSpinner.
Reach this handle via ScreenHandle.numberSpinner().
-
Method Summary
Modifier and TypeMethodDescriptionassertValue(int expected) Assert that the current value equals the expected value.Decrement the value by one.intThe configured maximum value.intThe configured minimum value.intgetValue()The current integer value.Increment the value by one.setValue(int value) Set the current integer value.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getValue
int getValue()The current integer value. -
getMinValue
int getMinValue()The configured minimum value. -
getMaxValue
int getMaxValue()The configured maximum value. -
setValue
Set the current integer value. -
increment
Increment the value by one. -
decrement
Decrement the value by one. -
assertValue
Assert that the current value equals the expected value. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-