Class FormSubform

  • All Implemented Interfaces:
    Peer

    public class FormSubform
    extends Subform
    • Constructor Detail

      • FormSubform

        public FormSubform​(Element parent,
                           Node prevSibling)
        Instantiates a FormSubform container.
        Parameters:
        parent - the FormSubform's parent, if any.
        prevSibling - the field's previous sibling, if any.
    • Method Detail

      • getDataNode

        public DataNode getDataNode()
        Get the data node bound to this Form node
        Overrides:
        getDataNode in class Subform
        Returns:
        The DataNode bound to this Form 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.
      • setElement

        public Node setElement​(Node child,
                               int eTag,
                               int nOccurrence)
        Description copied from class: Element
        Set an element value. Must be a valid 0..1 element, (not a oneOfChild or a 0..n child)
        Overrides:
        setElement in class ProtoableNode
        Parameters:
        child - the child to add or set.
        eTag - only used if oChild isNull -- in which case we remove the element
        See Also:
        Element.setElement(Node, int, int)
      • setInstanceIndex

        public void setInstanceIndex​(int nMoveTo)
        Description copied from class: Subform
        set the instance index
        Overrides:
        setInstanceIndex in class Subform
        Parameters:
        nMoveTo - the index to set to
      • execEvent

        public void execEvent​(java.lang.String sActivity)
        Overrides:
        execEvent in class Subform
      • getRegistered

        public boolean getRegistered​(int eActivity)
      • notifyPeers

        public void notifyPeers​(int eventType,
                                java.lang.String arg1,
                                java.lang.Object pArg2)
        Description copied from class: ProtoableNode
        This method will be called whenever its state changes. This will also modify the eventType and notify the parent of this tree
        Specified by:
        notifyPeers in interface Peer
        Overrides:
        notifyPeers in class ProtoableNode
        Parameters:
        eventType - the event type as enumerated in this class
        arg1 - additional event information
        pArg2 - additional event information