RichTextArea: missing API: applyParagraphStyle

XMLWordPrintable

    • Type: CSR
    • Resolution: Unresolved
    • Priority: P4
    • jfx26
    • Component/s: javafx
    • None
    • source
    • minimal
    • A new method might clash with similar method declared by a custom model. The risk is further reduced by the fact that RichTextArea is still incubating.
    • Java API
    • JDK

      Summary

      Adds missing API in the StyledTextModel necessary for toggling of individual paragraph attributes.

      Problem

      Impossible to turn on or off a single paragraph attribute (or a set of attributes) separately from already existing paragraph attributes.

      Solution

      Add a missing method

        protected abstract StyledTextModel.applyParagraphStyle(int index, StyleAttributeMap paragraphAttrs);
      

      to complement the existing protected abstract void setParagraphStyle(int index, StyleAttributeMap paragraphAttrs);

      Specification

      See the attached diff file.

            Assignee:
            Andy Goryachev
            Reporter:
            Andy Goryachev
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: