Interface IntegerTextFieldHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Text field with integer format" form component. The Swing widget is a
JTextField with an integer-only verifier.
Reach this handle via ScreenHandle.integerTextField().
-
Method Summary
Modifier and TypeMethodDescriptionassertText(String expected) Assert the current text equals the expected value.assertValue(int expected) Assert the current integer value equals the expected value.clear()Clear the field.getText()The current text in the field.getValue()The current value as anInteger, ornullif the field is empty or invalid.Set the field's raw text.setValue(int value) Set the field's value as an integer.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getText
The current text in the field. -
getValue
-
setText
Set the field's raw text. -
setValue
Set the field's value as an integer. -
clear
Clear the field. -
assertText
Assert the current text equals the expected value. -
assertValue
Assert the current integer 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
-