com.vaadin.client.ui.

Interface AbstractTextFieldWidget

    • Method Summary

      All Methods
      Modifier and Type Method Description
      int getCursorPos()

      Gets the current cursor position inside the field.

      String getValue()

      Gets the current value of the field.

      void selectAll()

      Selects all text in the field.

      void setReadOnly​(boolean readOnly)

      Sets the read-only mode of the field.

      void setSelectionRange​(int start, int length)

      Sets the selection range for the field.

    • Method Detail

      • setSelectionRange

        void setSelectionRange​(int start,
                               int length)

        Sets the selection range for the field.

        Parameters:

        start - the start of the selection

        length - the length of the selection

      • getValue

        String getValue()

        Gets the current value of the field.

        Returns:

        the current text in the field

      • selectAll

        void selectAll()

        Selects all text in the field.

      • setReadOnly

        void setReadOnly​(boolean readOnly)

        Sets the read-only mode of the field.

        Parameters:

        readOnly - true to set the field to read-only, false otherwise

      • getCursorPos

        int getCursorPos()

        Gets the current cursor position inside the field.

        Returns:

        the current cursor position