Interface TextAreaComponent

    • Method Detail

      • setText

        void setText​(String value)
        Sets the text to display.
        Parameters:
        value - the text
      • getText

        String getText()
        Returns the text to display.
        Returns:
        the text
      • getSelectedText

        String getSelectedText()
        Returns the selected text.
        Returns:
        the selected text
      • getDocument

        Document getDocument()
        Returns the underlying document.
        Returns:
        the document
      • setRows

        void setRows​(int value)
        Sets the rows.
        Parameters:
        value - the rows
      • getRows

        int getRows()
        Returns the rows.
        Returns:
        the rows
      • setColumns

        void setColumns​(int value)
        Sets the columns.
        Parameters:
        value - the columns
      • getColumns

        int getColumns()
        Returns the columns.
        Returns:
        the columns
      • setEditable

        void setEditable​(boolean value)
        Sets whether the text area is editable or not.
        Parameters:
        value - if true the text area is editable
      • isEditable

        boolean isEditable()
        Returns whether the text area is editable or not.
        Returns:
        true if the text area is editable
      • setLineWrap

        void setLineWrap​(boolean value)
        Sets whether to line wrap or not.
        Parameters:
        value - if true line wrap is enabled
      • getLineWrap

        boolean getLineWrap()
        Returns whether line wrap is enabled.
        Returns:
        true if line wrap wrap is enabled
      • setWrapStyleWord

        void setWrapStyleWord​(boolean value)
        Sets whether to word wrap or not.
        Parameters:
        value - if true word wrap is enabled
      • getWrapStyleWord

        boolean getWrapStyleWord()
        Returns whether word wrap is enabled.
        Returns:
        true if word wrap wrap is enabled
      • setTextFont

        void setTextFont​(Font value)
        Sets the text font.
        Parameters:
        value - the font
      • getTextFont

        Font getTextFont()
        Returns the text font in use.
        Returns:
        the font
      • setCaretPosition

        void setCaretPosition​(int pos)
        Sets the caret position.
        Parameters:
        pos - the position (0-based)
      • getCaretPosition

        int getCaretPosition()
        Returns the current caret position.
        Returns:
        the position (0-based)
      • setCaretPositionLast

        void setCaretPositionLast()
        Sets the position of the cursor at the end.