Class FormPropertiesElement

All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class FormPropertiesElement extends OdfElement
DOM implementation of OpenDocument element <form:properties>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • FormPropertiesElement

      public FormPropertiesElement(OdfFileDom ownerDoc)
      Create the instance of FormPropertiesElement
      Parameters:
      ownerDoc - The type is OdfFileDom
  • Method Details

    • getOdfName

      public OdfName getOdfName()
      Get the element name
      Specified by:
      getOdfName in class OdfElement
      Returns:
      return OdfName the name of element <form:properties>.
    • newFormListPropertyElement

      public FormListPropertyElement newFormListPropertyElement(String formPropertyNameValue, String officeValueTypeValue)
      Create child element <form:list-property>.
      Parameters:
      formPropertyNameValue - the String value of FormPropertyNameAttribute , see @form:property-name at specification
      officeValueTypeValue - the String value of OfficeValueTypeAttribute , see @office:value-type at specification
      Returns:
      the element <form:list-property>
    • newFormPropertyElement

      public FormPropertyElement newFormPropertyElement(String formPropertyNameValue, double officeValueValue, String officeValueTypeValue)
      Create child element <form:property>.
      Parameters:
      formPropertyNameValue - the String value of FormPropertyNameAttribute , see @form:property-name at specification
      officeValueValue - the Double value of OfficeValueAttribute, see @office:value at specification
      officeValueTypeValue - the String value of OfficeValueTypeAttribute , see @office:value-type at specification
      Returns:
      the element <form:property>
    • accept

      public void accept(ElementVisitor visitor)
      Accept an visitor instance to allow the visitor to do some operations. Refer to visitor design pattern to get a better understanding.
      Overrides:
      accept in class OdfElement
      Parameters:
      visitor - an instance of DefaultElementVisitor