Package com.adobe.xfa

Class RichTextNode

  • All Implemented Interfaces:
    Peer

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

      • RichTextNode

        public RichTextNode​(Element pParent,
                            Node prevSibling)
    • Method Detail

      • createProto

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

        public void updateIDValuesImpl​(java.lang.String sPrefix,
                                       java.util.List<java.lang.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:
        Element.getDeltas(Element, XFAList)
      • getValue

        public java.lang.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 java.lang.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
        bBeforeInsert - if true, then the child has not yet been inserted into the child list of this element.
        Returns:
        true if eTag is a valid child.
        See Also:
        Element.isValidChild(int, int, boolean, boolean)
      • setValue

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

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

        public boolean validateSchema​(int nTargetVersion,
                                      int nTargetAvailability,
                                      boolean bRecursive,
                                      java.util.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​(java.io.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