Interface MaskTextFieldHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Text field with format mask" form component. The Swing widget is a
JTextField with an input mask such as "###-##-####". The underlying mask
formatter rejects input that doesn't fit the mask.
Reach this handle via ScreenHandle.maskTextField().
-
Method Summary
Modifier and TypeMethodDescriptionassertText(String expected) Assert the current text equals the expected value.clear()Clear the field.getText()The current text in the field.Set the field's text.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getText
The current text in the field. -
setText
Set the field's text. Input that doesn't fit the mask is rejected. -
clear
Clear the field. -
assertText
Assert the current text equals the expected value. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-