com.io7m.jstructural.xom

## Interface SDocumentXHTMLWriterCallbacks

-     public interface SDocumentXHTMLWriterCallbacks

  A set of callbacks allowing for document customisation.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onBodyEnd(nu.xom.Element body)` Called upon closing of the XHTML body element.
    `nu.xom.Element` | `onBodyStart(nu.xom.Element body)` Called upon creation of the XHTML body element.
    `void` | `onHead(nu.xom.Element head)` Called upon creation of the XHTML head element.

- - ### Method Detail

    - #### onBodyEnd

          void onBodyEnd(nu.xom.Element body)

      Called upon closing of the XHTML body element.
      Parameters:
        `body` - The XHTML body element

    - #### onBodyStart

          @Nullable
          nu.xom.Element onBodyStart(nu.xom.Element body)

      Called upon creation of the XHTML body element. If the function returns an element, then the returned element becomes the new parent of any subsequently generated elements (effectively becoming the "container" for the generated document).
      Parameters:
        `body` - The XHTML body element
      Returns:
        The element that will be used as the container for the generated document

    - #### onHead

          void onHead(nu.xom.Element head)

      Called upon creation of the XHTML head element.
      Parameters:
        `head` - The XHTML head element

Copyright © 2015 <code@io7m.com> http://io7m.com