Package de.bmiag.tapir.htmlbasic.api
Interface TextField
-
- All Superinterfaces:
Displayable
,Enabable
,TapirElement
- All Known Implementing Classes:
DefaultSeleniumTextField
public interface TextField extends TapirElement, Enabable, Displayable
Marks an element as a text field.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getText()
Returns the displayed text of the text field.void
loseFocus()
Forces the text field to lose the focus (e.g.void
setText(java.lang.String text)
Sets the given text.-
Methods inherited from interface de.bmiag.tapir.ui.api.Displayable
isDisplayed
-
-
-
-
Method Detail
-
getText
java.lang.String getText()
Returns the displayed text of the text field. If it is a multiline text, the lines are separated with a line break character (\n).- Returns:
- the field's text
- Since:
- 2.0.0
-
setText
void setText(java.lang.String text)
Sets the given text. The text field does not lose its focus after inserting a text. You have to callloseFocus()
explicitly.- Parameters:
text
- the text to be set- Since:
- 2.0.0
-
loseFocus
void loseFocus()
Forces the text field to lose the focus (e.g. triggering on change events).- Since:
- 3.0.0
-
-