Class InlineCssTextArea

    • Constructor Detail

      • InlineCssTextArea

        public InlineCssTextArea()
        Creates a blank area
      • InlineCssTextArea

        public InlineCssTextArea​(String text)
        Creates a text area with initial text content. Initial caret position is set at the beginning of text content.
        Parameters:
        text - Initial text content.
    • Method Detail

      • foldParagraphs

        public void foldParagraphs​(int startPar,
                                   int endPar)
        Folds (hides/collapses) paragraphs from startPar to endPar, "into" (i.e. excluding) the first paragraph of the range.
      • foldSelectedParagraphs

        public void foldSelectedParagraphs()
        Folds (hides/collapses) the currently selected paragraphs, "into" (i.e. excluding) the first paragraph of the range.
      • foldText

        public void foldText​(int start,
                             int end)
        Folds (hides/collapses) paragraphs from character position start to end, "into" (i.e. excluding) the first paragraph of the range.
      • isFolded

        public boolean isFolded​(int paragraph)
      • unfoldParagraphs

        public void unfoldParagraphs​(int startingFromPar)
        Unfolds paragraphs startingFromPar onwards for the currently folded block.
      • unfoldText

        public void unfoldText​(int startingFromPos)
        Unfolds text startingFromPos onwards for the currently folded block.
      • getFoldStyleCheck

        protected Predicate<String> getFoldStyleCheck()
        Returns:
        a Predicate that given a paragraph style, returns true if it includes folding.
      • getAddFoldStyle

        protected UnaryOperator<String> getAddFoldStyle()
        Returns:
        a UnaryOperator that given a paragraph style, returns a String that includes fold styling.
      • getRemoveFoldStyle

        protected UnaryOperator<String> getRemoveFoldStyle()
        Returns:
        a UnaryOperator that given a paragraph style, returns a String that excludes fold styling.