Package org.htmlunit

Interface PrintHandler

All Superinterfaces:
Serializable

public interface PrintHandler extends Serializable
A handler for JavaScript Window.print() (Printing Spec). All js execution on page containing the document is blocked during the execution of the print method.

If the PrintHandler for the WebClient is null Window.print() will be a nopp including not triggering any print events.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Handle a call to Window.print().
  • Method Details

    • handlePrint

      void handlePrint(HtmlPage page)
      Handle a call to Window.print().
      Parameters:
      page - the HtmlPage to print