Class RichTextArea

    • Constructor Detail

      • RichTextArea

        public RichTextArea()
        Deprecated.
        Constructs an empty RichTextArea with no caption.
      • RichTextArea

        public RichTextArea​(String caption)
        Deprecated.
        Constructs an empty RichTextArea with the given caption.
        Parameters:
        caption - the caption for the editor.
      • RichTextArea

        public RichTextArea​(Property dataSource)
        Deprecated.
        Constructs a new RichTextArea that's bound to the specified Property and has no caption.
        Parameters:
        dataSource - the data source for the editor value
      • RichTextArea

        public RichTextArea​(String caption,
                            Property dataSource)
        Deprecated.
        Constructs a new RichTextArea that's bound to the specified Property and has the given caption.
        Parameters:
        caption - the caption for the editor.
        dataSource - the data source for the editor value
      • RichTextArea

        public RichTextArea​(String caption,
                            String value)
        Deprecated.
        Constructs a new RichTextArea with the given caption and initial text contents.
        Parameters:
        caption - the caption for the editor.
        value - the initial text content of the editor.
    • Method Detail

      • selectAll

        public void selectAll()
        Deprecated.
        Selects all text in the rich text area. As a side effect, focuses the rich text area.
        Since:
        6.5
      • getType

        public Class<String> getType()
        Deprecated.
        Description copied from class: AbstractField
        Returns the type of the Field. The methods getValue and setValue must be compatible with this type: one must be able to safely cast the value returned from getValue to the given type and pass any variable assignable to this type as an argument to setValue.
        Specified by:
        getType in interface Property<String>
        Specified by:
        getType in class AbstractField<String>
        Returns:
        the type of the Field
      • getNullRepresentation

        public String getNullRepresentation()
        Deprecated.
        Gets the null-string representation.

        The null-valued strings are represented on the user interface by replacing the null value with this string. If the null representation is set null (not 'null' string), painting null value throws exception.

        The default value is string 'null'.

        Returns:
        the String Textual representation for null strings.
        See Also:
        AbstractTextField.isNullSettingAllowed()
      • isNullSettingAllowed

        public boolean isNullSettingAllowed()
        Deprecated.
        Is setting nulls with null-string representation allowed.

        If this property is true, writing null-representation string to text field always sets the field value to real null. If this property is false, null setting is not made, but the null values are maintained. Maintenance of null-values is made by only converting the textfield contents to real null, if the text field matches the null-string representation and the current value of the field is null.

        By default this setting is false

        Returns:
        boolean Should the null-string represenation be always converted to null-values.
        See Also:
        AbstractTextField.getNullRepresentation()
      • setNullRepresentation

        public void setNullRepresentation​(String nullRepresentation)
        Deprecated.
        Sets the null-string representation.

        The null-valued strings are represented on the user interface by replacing the null value with this string. If the null representation is set null (not 'null' string), painting null value throws exception.

        The default value is string 'null'

        Parameters:
        nullRepresentation - Textual representation for null strings.
        See Also:
        AbstractTextField.setNullSettingAllowed(boolean)
      • setNullSettingAllowed

        public void setNullSettingAllowed​(boolean nullSettingAllowed)
        Deprecated.
        Sets the null conversion mode.

        If this property is true, writing null-representation string to text field always sets the field value to real null. If this property is false, null setting is not made, but the null values are maintained. Maintenance of null-values is made by only converting the textfield contents to real null, if the text field matches the null-string representation and the current value of the field is null.

        By default this setting is false.

        Parameters:
        nullSettingAllowed - Should the null-string represenation be always converted to null-values.
        See Also:
        AbstractTextField.getNullRepresentation()
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Description copied from interface: Field
        Is the field empty? In general, "empty" state is same as null. As an exception, TextField also treats empty string as "empty".
        Specified by:
        isEmpty in interface Field<String>
        Overrides:
        isEmpty in class AbstractField<String>
        Returns:
        true if the field is empty, false otherwise
      • clear

        public void clear()
        Deprecated.
        Description copied from interface: Field
        Clears the value of the field.

        The field value is typically reset to the initial value of the field. Calling Field.isEmpty() on a cleared field must always returns true.

        Specified by:
        clear in interface Field<String>
        Overrides:
        clear in class AbstractField<String>