Class TextSElement

    • Field Detail

      • ELEMENT_NAME

        public static final OdfName ELEMENT_NAME
    • Constructor Detail

      • TextSElement

        public TextSElement​(OdfFileDom ownerDoc)
        Create the instance of TextSElement
        Parameters:
        ownerDoc - The type is OdfFileDom
    • Method Detail

      • getOdfName

        public OdfName getOdfName()
        Get the element name
        Specified by:
        getOdfName in class OdfElement
        Returns:
        return OdfName the name of element {
      • getTextCAttribute

        public Integer getTextCAttribute()
        Receives the value of the ODFDOM attribute representation TextCAttribute , See {
        Returns:
        - the Integer , the value or null, if the attribute is not set and no default value defined.
      • setTextCAttribute

        public void setTextCAttribute​(Integer textCValue)
        Sets the value of ODFDOM attribute representation TextCAttribute , See {
        Parameters:
        textCValue - The type is Integer
      • accept

        public void accept​(ElementVisitor visitor)
        Description copied from class: OdfElement
        Accept an visitor instance to allow the visitor to do some operations. Refer to visitor design pattern to get a better understanding.
        Overrides:
        accept in class OdfElement
        Parameters:
        visitor - an instance of DefaultElementVisitor
      • split

        public OdfElement split​(int posStart)
        Description copied from class: OdfElement
        Splitting the element at the given position into two halves
        Overrides:
        split in class OdfElement
        Parameters:
        posStart - The logical position of the first character (or other paragraph child component) that will be moved to the beginning of the new paragraph. Counting starts with 0.
        Returns:
        the new created second text container
      • getRepetition

        public int getRepetition()
        Overrides:
        getRepetition in class OdfElement
        Returns:
        the repetition the element represents, by default it is 1