Interface DateTextFieldHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Text field with date format" form component. The Swing widget is a
JTextField. The handle exposes both the raw text and a Date-typed accessor.
Reach this handle via ScreenHandle.dateTextField().
-
Method Summary
Modifier and TypeMethodDescriptionassertText(String expected) Assert the current text equals the expected value.clear()Clear the field.getDate()The current value as aDate, ornullif the field is empty or unparseable.getText()The current text in the field.Set the field's value via the form component's formatter.Set the field's raw text.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getText
The current text in the field. -
getDate
-
setText
Set the field's raw text. -
setDate
Set the field's value via the form component's formatter. -
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
-