Class TextFieldElement

    • Constructor Detail

      • TextFieldElement

        public TextFieldElement​(AttributedString attributedString,
                                int row,
                                int column)
    • Method Detail

      • substring

        public FieldElement substring​(int start,
                                      int end)
        Description copied from interface: FieldElement
        Returns a new FieldElement containing just the characters beginning at the given start index (inclusive) and ending at the given end index (exclusive).
        Parameters:
        start - The starting index (inclusive) from which to substring this element.
        end - The end index (exclusive) to which the substring will be performed.
        Returns:
        a new FieldElement containing just the characters beginning at the given index.
        See Also:
        FieldElement.substring(int, int)
      • replaceAll

        public FieldElement replaceAll​(char[] targets,
                                       char replacement)
        Description copied from interface: FieldElement
        Returns a new FieldElement with all occurrences of the target characters replaced with the given replacement character.
        Parameters:
        targets - The array of characters to replace.
        replacement - The replacement character.
        Returns:
        a new FieldElement with all occurrences of the target characters replaced with the given replacement character.
        See Also:
        FieldElement.replaceAll(char[], char)