Class TableSubtotalRuleElement

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

public class TableSubtotalRuleElement extends OdfElement
DOM implementation of OpenDocument element <table:subtotal-rule>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • TableSubtotalRuleElement

      public TableSubtotalRuleElement(OdfFileDom ownerDoc)
      Create the instance of TableSubtotalRuleElement
      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 <table:subtotal-rule>.
    • getTableGroupByFieldNumberAttribute

      public Integer getTableGroupByFieldNumberAttribute()
      Receives the value of the ODFDOM attribute representation TableGroupByFieldNumberAttribute , See @table:group-by-field-number

      Attribute is mandatory.

      Returns:
      - the Integer , the value or null, if the attribute is not set and no default value defined.
    • setTableGroupByFieldNumberAttribute

      public void setTableGroupByFieldNumberAttribute(Integer tableGroupByFieldNumberValue)
      Sets the value of ODFDOM attribute representation TableGroupByFieldNumberAttribute , See @table:group-by-field-number
      Parameters:
      tableGroupByFieldNumberValue - The type is Integer
    • newTableSubtotalFieldElement

      public TableSubtotalFieldElement newTableSubtotalFieldElement(int tableFieldNumberValue, String tableFunctionValue)
      Create child element <table:subtotal-field>.
      Parameters:
      tableFieldNumberValue - the Integer value of TableFieldNumberAttribute , see @table:field-number at specification
      tableFunctionValue - the String value of TableFunctionAttribute, see @table:function at specification
      Returns:
      the element <table:subtotal-field>
    • 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