Class DefaultJavaFXTextField
- java.lang.Object
-
- de.bmiag.tapir.javafx.element.AbstractJavaFXElement
-
- de.bmiag.tapir.javafx.element.impl.DefaultJavaFXTextField
-
- All Implemented Interfaces:
TextField
,JavaFXElement
,Displayable
,Enabable
,TapirElement
@Unstable @Component("tapirTextField") @Scope("prototype") public class DefaultJavaFXTextField extends AbstractJavaFXElement implements TextField
This is an experimental implementation of aTextField
for JavaFX-based applications.- Since:
- 2.0.0
- Author:
- Nils Christian Ehmke <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description DefaultJavaFXTextField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Returns the displayed text of the text field.boolean
isDisplayed()
Returns true, if the element is displayed.boolean
isEnabled()
Returns true, if the element is enabled.void
setText(java.lang.String text)
Sets the given text-
Methods inherited from class de.bmiag.tapir.javafx.element.AbstractJavaFXElement
getNode, setNode
-
-
-
-
Method Detail
-
getText
public java.lang.String getText()
Description copied from interface:TextField
Returns the displayed text of the text field. If it is a multiline text, the lines are separated with a line break character (\n).
-
setText
public void setText(java.lang.String text)
Description copied from interface:TextField
Sets the given text
-
isEnabled
public boolean isEnabled()
Description copied from interface:Enabable
Returns true, if the element is enabled. "enabled" means it is not disabled and not readonly.
-
isDisplayed
public boolean isDisplayed()
Description copied from interface:Displayable
Returns true, if the element is displayed. "Displayed" means it has to be part of the dom and it is not hidden using css.- Specified by:
isDisplayed
in interfaceDisplayable
- Returns:
- true, if the element is displayed.
- Since:
- 2.0.0
-
-