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 Details

    • TextNode

      public TextNode(Element parent, Node prevSibling, 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 Details

    • clone

      public Node clone(Element parent)
      Overrides:
      clone in class Chars
    • createProto

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

      public void getDeltas(TextNode delta, XFAList list)
      This is logically the equivalent of Element.getDeltas(Element, XFAList), but it does not override it because TextNode does not derive from Element in XFA4J.
      See Also:
    • getScriptTable

      public ScriptTable getScriptTable()
      Overrides:
      getScriptTable in class Node
    • getValue

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

      public void setValue(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
    • makeNonDefault

      public void makeNonDefault(boolean bRecursive)
      Description copied from class: Node
      Mark this element to indicate it is not a default property
      Overrides:
      makeNonDefault in class Node
      See Also: