Class 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultJavaFXTextField

        public DefaultJavaFXTextField()
    • 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).
        Specified by:
        getText in interface TextField
        Returns:
        the field's text
        Since:
        2.0.0
      • setText

        public void setText​(java.lang.String text)
        Description copied from interface: TextField
        Sets the given text
        Specified by:
        setText in interface TextField
        Parameters:
        text - the text to be set
        Since:
        2.0.0
      • 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.
        Specified by:
        isEnabled in interface Enabable
        Returns:
        true, if the element is enabled.
        Since:
        2.0.0
      • 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 interface Displayable
        Returns:
        true, if the element is displayed.
        Since:
        2.0.0