Package com.adobe.xfa

Class RichTextNode

All Implemented Interfaces:
Peer

public final class RichTextNode extends Element
A node to contain rich text content
  • Constructor Details

    • RichTextNode

      public RichTextNode(Element pParent, Node prevSibling)
  • Method Details

    • createProto

      public Element createProto(Element parent, boolean bFull)
    • updateIDValuesImpl

      public void updateIDValuesImpl(String sPrefix, List<String> oldReferenceList)
      Update a list of ID-based string values in the rich text.
    • getDeltas

      public void getDeltas(Element delta, XFAList list)
      Description copied from class: Element
      Gets a collection of deltas to restore. The locale attribute is always restored immediately, and is not returned in the list of deltas.
      Overrides:
      getDeltas in class Element
      Parameters:
      delta - an Element from the form packet.
      list - the list of deltas to be populated.
      See Also:
    • getFirstXFAChild

      public Node getFirstXFAChild()
      Description copied from class: Element
      Gets this element's first XFA child.
      Overrides:
      getFirstXFAChild in class Element
      Returns:
      the first XFA child.
      See Also:
    • getScriptTable

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

      public String getValue(boolean bAsFragment, boolean bSuppressPreamble, boolean bLegacyWhitespaceProcessing)
      Get the pcData for this node.
      Parameters:
      bAsFragment - if true, it returns a String containing an html fragment, false return only the text content.
      Returns:
      the pcData as a string.
    • getValuesFromDom

      public String getValuesFromDom(Node node, boolean bAsFragment, boolean bSuppressPreamble, boolean bLegacyWhitespaceProcessing)
      Parameters:
      node -
      bAsFragment -
      bSuppressPreamble -
      bLegacyWhitespaceProcessing -
      Returns:
      gotten values.
    • isValidChild

      public boolean isValidChild(int eTag, int nError, boolean bBeforeInsert, boolean bOccurrenceErrorOnly)
      Overrides:
      isValidChild in class Element
      Parameters:
      eTag - the class tag of the node that will be or has been appended
      nError -
      bBeforeInsert - if true, then the child has not yet been inserted into the child list of this element.
      bOccurrenceErrorOnly -
      Returns:
      true if eTag is a valid child.
      See Also:
    • setValue

      public void setValue(String sData)
      Set the pcdata for this node.
      Parameters:
      sData - - a string containing the new pcdata.
    • toString

      public String toString()
      Cast this node to a string value.
      Overrides:
      toString in class Object
      Returns:
      the string representing the pcdata.
    • validateSchema

      public boolean validateSchema(int nTargetVersion, int nTargetAvailability, boolean bRecursive, List<NodeValidationInfo> pValidationInfo)
      Description copied from class: Node
      Validate this node against the schema.
      Overrides:
      validateSchema in class Node
      Parameters:
      nTargetVersion - the target XFA version
      nTargetAvailability - a collection of bits defining what subsets of the schema are supported
      pValidationInfo - list of invalid children, attributes and attribute values based on the target version and availability. If this node is not valid child of its parent this node will be the first entry of pInfo.
      Returns:
      TRUE if this node, the child or all attributes are valid, otherwise FALSE
    • getVersionRequired

      public int getVersionRequired()
    • saveXML

      public void saveXML(OutputStream outFile, DOMSaveOptions options, boolean bSaveXMLScript)
      Serializes this element (and all its children) to an output stream.
      Overrides:
      saveXML in class Element
      Parameters:
      outFile - an output stream.
      options - the XML save options