Class BaseTextAreaWithButtons

    • Constructor Detail

      • BaseTextAreaWithButtons

        public BaseTextAreaWithButtons()
        The default constructor.
      • BaseTextAreaWithButtons

        public BaseTextAreaWithButtons​(String text)
        Initializes the list with the given text.
        Parameters:
        text - the text to use
      • BaseTextAreaWithButtons

        public BaseTextAreaWithButtons​(int rows,
                                       int columns)
        Initializes the list with the given rows/columns.
        Parameters:
        rows - the rows to use
        columns - the columns to use
      • BaseTextAreaWithButtons

        public BaseTextAreaWithButtons​(String text,
                                       int rows,
                                       int columns)
        Initializes the list with the given text.
        Parameters:
        text - the text to use
        rows - the rows to use
        columns - the columns to use
    • Method Detail

      • setText

        public void setText​(String value)
        Sets the text.
        Specified by:
        setText in interface TextAreaComponent
        Parameters:
        value - the text to display
      • setRows

        public void setRows​(int value)
        Sets the rows.
        Specified by:
        setRows in interface TextAreaComponent
        Parameters:
        value - the rows
      • getRows

        public int getRows()
        Returns the rows.
        Specified by:
        getRows in interface TextAreaComponent
        Returns:
        the rows
      • setColumns

        public void setColumns​(int value)
        Sets the columns.
        Specified by:
        setColumns in interface TextAreaComponent
        Parameters:
        value - the columns
      • getColumns

        public int getColumns()
        Returns the columns.
        Specified by:
        getColumns in interface TextAreaComponent
        Returns:
        the columns
      • setEditable

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

        public boolean isEditable()
        Returns whether the text area is editable or not.
        Specified by:
        isEditable in interface TextAreaComponent
        Returns:
        true if the text area is editable
      • setLineWrap

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

        public boolean getLineWrap()
        Returns whether line wrap is enabled.
        Specified by:
        getLineWrap in interface TextAreaComponent
        Returns:
        true if line wrap wrap is enabled
      • setWrapStyleWord

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

        public boolean getWrapStyleWord()
        Returns whether word wrap is enabled.
        Specified by:
        getWrapStyleWord in interface TextAreaComponent
        Returns:
        true if word wrap wrap is enabled
      • setTextFont

        public void setTextFont​(Font value)
        Sets the text font.
        Specified by:
        setTextFont in interface TextAreaComponent
        Parameters:
        value - the font
      • setCaretPosition

        public void setCaretPosition​(int pos)
        Sets the caret position.
        Specified by:
        setCaretPosition in interface TextAreaComponent
        Parameters:
        pos - the position (0-based)
      • getCaretPosition

        public int getCaretPosition()
        Returns the current caret position.
        Specified by:
        getCaretPosition in interface TextAreaComponent
        Returns:
        the position (0-based)
      • append

        public void append​(String text)
        Appends the given text to the end of the document. Does nothing if the model is null or the string is null or empty.
        Specified by:
        append in interface AppendableTextAreaComponent
        Parameters:
        text - the text to insert