Class HtmlDivision

All Implemented Interfaces:
Serializable, Cloneable, Element, Node

public class HtmlDivision extends HtmlElement
Wrapper for the HTML element "div".
See Also:
  • Field Details

  • Constructor Details

    • HtmlDivision

      public HtmlDivision(String qualifiedName, SgmlPage page, Map<String,DomAttr> attributes)
      Creates an instance of HtmlDivision.

      Don't directly construct, it is public as an implementation side-effect.

      Parameters:
      qualifiedName - the qualified name of the element type to instantiate
      page - the HtmlPage that contains this element
      attributes - the initial attributes
  • Method Details

    • getAlignAttribute

      public final String getAlignAttribute()
      Returns the value of the attribute align. Refer to the HTML 4.01 documentation for details on the use of this attribute.
      Returns:
      the value of the attribute align or an empty string if that attribute isn't defined
    • isEmptyXmlTagExpanded

      protected boolean isEmptyXmlTagExpanded()
      Indicates if a node without children should be written in expanded form as XML (i.e. with closing tag rather than with "/>")
      Overrides:
      isEmptyXmlTagExpanded in class DomElement
      Returns:
      true to make generated XML readable as HTML