Package com.adobe.xfa

Class TextNode

  • All Implemented Interfaces:
    Peer
    Direct Known Subclasses:
    SVGTextData

    public class TextNode
    extends Chars
    A class to represent the textual content of an XFA element in the DOM.
    • Constructor Detail

      • TextNode

        public TextNode​(Element parent,
                        Node prevSibling,
                        java.lang.String text)
        Instantiates a text node with the given text.
        Parameters:
        parent - the node's parent, if any.
        prevSibling - the node's previous sibling, if any.
        text - the node's text.
      • TextNode

        public TextNode​(Element parent,
                        Node prevSibling,
                        char[] text,
                        int start,
                        int length)
        Instantiates a text node.
        Parameters:
        parent - the node's parent, if any.
        prevSibling - the node's previous sibling, if any.
        text - the char array that contains our text.
        start - offset into the char array to start at.
        length - the number of characters to take.
    • Method Detail

      • createProto

        public TextNode createProto​(Element oParent,
                                    java.lang.String text,
                                    boolean bFull)
        Creates a proto'ed TextNode. Modeled on Protoable.createProto().
      • getValue

        public java.lang.String getValue()
        Gets this node's text value.
        Returns:
        the text value.
      • setValue

        public void setValue​(java.lang.String value,
                             boolean bNotify,
                             boolean bDefault)
        Gets this node's text value.
        Parameters:
        value - the text value.
      • isFragment

        public boolean isFragment()
        Is this TextNode here as a result of a fragment relationship?
        Returns:
        fragment state
      • isFragment

        public void isFragment​(boolean bFragment)
        Set the fragment state of this node
        Parameters:
        bFragment - the fragment state