Interface FileEditorHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Text file editor" form component. The Swing widget is a
JTextArea
that pre-loads its content from a file at screen activation and writes the edited content
back when the form is completed.
Reach this handle via ScreenHandle.fileEditor().
-
Method Summary
Modifier and TypeMethodDescriptionassertText(String expected) Assert that the editor's current text equals the expected value.clear()Clear the editor.getFile()The file the editor reads from and writes back to, with variables substituted.getText()The current text shown in the editor.Replace the editor's text.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getFile
The file the editor reads from and writes back to, with variables substituted. -
getText
The current text shown in the editor. -
setText
Replace the editor's text. The new content is only persisted to the underlying file when the form is completed, that is, whenScreenHandle.nextScreen()is invoked successfully. -
clear
Clear the editor. -
assertText
Assert that the editor's 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
-