Class StyleColumnsElement

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

public class StyleColumnsElement extends OdfElement
DOM implementation of OpenDocument element <style:columns>.
See Also:
  • Field Details

    • ELEMENT_NAME

      public static final OdfName ELEMENT_NAME
  • Constructor Details

    • StyleColumnsElement

      public StyleColumnsElement(OdfFileDom ownerDoc)
      Create the instance of StyleColumnsElement
      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 <style:columns>.
    • getFoColumnCountAttribute

      public Integer getFoColumnCountAttribute()
      Receives the value of the ODFDOM attribute representation FoColumnCountAttribute , See @fo:column-count

      Attribute is mandatory.

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

      public void setFoColumnCountAttribute(Integer foColumnCountValue)
      Sets the value of ODFDOM attribute representation FoColumnCountAttribute , See @fo:column-count
      Parameters:
      foColumnCountValue - The type is Integer
    • getFoColumnGapAttribute

      public String getFoColumnGapAttribute()
      Receives the value of the ODFDOM attribute representation FoColumnGapAttribute , See @fo:column-gap
      Returns:
      - the String , the value or null, if the attribute is not set and no default value defined.
    • setFoColumnGapAttribute

      public void setFoColumnGapAttribute(String foColumnGapValue)
      Sets the value of ODFDOM attribute representation FoColumnGapAttribute , See @fo:column-gap
      Parameters:
      foColumnGapValue - The type is String
    • newStyleColumnElement

      public StyleColumnElement newStyleColumnElement(String styleRelWidthValue)
      Create child element <style:column>.
      Parameters:
      styleRelWidthValue - the String value of StyleRelWidthAttribute, see @style:rel-width at specification Child element was added in ODF 1.2
      Returns:
      the element <style:column>
    • newStyleColumnSepElement

      public StyleColumnSepElement newStyleColumnSepElement(String styleWidthValue)
      Create child element <style:column-sep>.
      Parameters:
      styleWidthValue - the String value of StyleWidthAttribute, see @style:width at specification Child element was added in ODF 1.2
      Returns:
      the element <style:column-sep>
    • 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