Package com.adobe.xfa

Class XMLMultiSelectNode

  • All Implemented Interfaces:
    Peer

    public final class XMLMultiSelectNode
    extends ProtoableNode
    • Constructor Detail

      • XMLMultiSelectNode

        public XMLMultiSelectNode​(Element parent,
                                  Node prevSibling)
    • Method Detail

      • addValue

        public void addValue​(java.lang.String sItem,
                             java.lang.String sItemsName)
        Add an item under the top element for this node
        Parameters:
        sItem - a string containing the new item.
        sItemsName - a string containing the name for this new item.
      • clearValues

        public void clearValues()
        Clear items under the top element for this node.
      • 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)
        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.
      • getValues

        public void getValues​(java.util.List<java.lang.String> oSelectionList)
        Get the pcData for this node as a list of selected items.
        Parameters:
        oSelectionList - a list of all items
      • getValuesFromDom

        public void getValuesFromDom​(java.util.List<java.lang.String> xmlTextValues,
                                     Node oDomNode,
                                     boolean bAsFragment,
                                     boolean bSuppressPreamble)
      • setValue

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

        public void setValues​(java.util.List<java.lang.String> oSelectionList)
        Set the pcdata for this node.
        Parameters:
        oSelectionList - a jfStorage of strings containing the new values.
      • setValuesToDom

        public void setValuesToDom​(java.util.List<java.lang.String> oSelectionList,
                                   Element oDomNode)
      • 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.