Class Subform

All Implemented Interfaces:
Peer
Direct Known Subclasses:
FormSubform

public class Subform extends Container
A class to represent the XFA subform object. A subform describes a container capable of enclosing other containers.
  • Constructor Details

    • Subform

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

    • getInstanceManager

      public Obj getInstanceManager()
    • getDataNode

      public DataNode getDataNode()
    • execEvent

      public void execEvent(String sActivity)
    • execValidate

      public boolean execValidate()
    • getAttribute

      public Attribute getAttribute(int eTag, boolean bPeek, boolean bValidate)
      Description copied from class: Element
      Gets this element's attribute whose attribute tag is given.

      To peek at an attribute, set the peek argument to true. If the attribute is present, it is returned; otherwise null is returned.

      To create an attribute, set the peek argument to false. If the attribute is absent, a default attribute is created and returned; for attributes with no default, null is returned.

      If validation argument is true, and the validation fails, this method throws.

      Overrides:
      getAttribute in class Container
      Parameters:
      eTag - the tag of the attribute.
      bPeek - whether to peek at the attribute or not.
      bValidate - whether to validate the attribute or not.
      Returns:
      the attribute.
    • isConnectSupported

      public boolean isConnectSupported()
      Description copied from class: Container
      Return whether the container supports connect i.e. field, exclGroup or subform
      Overrides:
      isConnectSupported in class Container
      Returns:
      true if the container supports connect
      See Also:
    • isHeightGrowSupported

      public boolean isHeightGrowSupported()
      Description copied from class: Container
      Returns whether or not this container support growable heights. This does not indicate whether the container height is currently growable, just whether it's supported by this container type.
      Overrides:
      isHeightGrowSupported in class Container
    • isWidthGrowSupported

      public boolean isWidthGrowSupported()
      Description copied from class: Container
      Return whether or not this container support growable widths This does not indicate whether the container height is currently growable, just whether it's supported by this container type.

      Comments Helps distinguish - ie text draws supporting growing but arc draws do not.

      Overrides:
      isWidthGrowSupported in class Container
    • reset

      public void reset()
    • setInstanceIndex

      public void setInstanceIndex(int nIndex)
      set the instance index
      Parameters:
      nIndex - the index to set to
    • getScriptTable

      public ScriptTable getScriptTable()
      Overrides:
      getScriptTable in class Container