Package org.xhtmlrenderer.event
Class DefaultDocumentListener
java.lang.Object
org.xhtmlrenderer.event.DefaultDocumentListener
- All Implemented Interfaces:
DocumentListener
@ParametersAreNonnullByDefault
public class DefaultDocumentListener
extends Object
implements DocumentListener
Default, do-nothing implementation of a
DocumentListener; implements all methods in DocumentListener
but the methods do nothing. Subclass this class and override whichever methods you need to trap.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIndicates document layout has complete, e.g.voidIndicates document has been requested (e.g.voidCalled when document layout failed with an exception.voidCalled when document render failed with an exception.
-
Constructor Details
-
DefaultDocumentListener
public DefaultDocumentListener()
-
-
Method Details
-
documentStarted
public void documentStarted()Description copied from interface:DocumentListenerIndicates document has been requested (e.g. a new document is going to be loaded). This will be called before any activity takes place for the document.- Specified by:
documentStartedin interfaceDocumentListener
-
documentLoaded
public void documentLoaded()Description copied from interface:DocumentListenerIndicates document layout has complete, e.g. document is fully "loaded" for display; this is not a callback for the document source (e.g. XML) being loaded. This method will be called on every layout run (including, for example, after panel resizes).- Specified by:
documentLoadedin interfaceDocumentListener
-
onLayoutException
Description copied from interface:DocumentListenerCalled when document layout failed with an exception. AllThrowableobjects thrown (except forThreadDeath) during layout and not otherwise handled will be provided to this method. If aDocumentListenerhas been defined an XHTML panel, the listener is entirely responsible for handling the exception. No other action will be taken.- Specified by:
onLayoutExceptionin interfaceDocumentListener
-
onRenderException
Description copied from interface:DocumentListenerCalled when document render failed with an exception. AllThrowableobjects thrown (except forThreadDeath) during render and not otherwise handled will be provided to this method. If aDocumentListenerhas been defined an XHTML panel, the listener is entirely responsible for handling the exception. No other action will be taken.- Specified by:
onRenderExceptionin interfaceDocumentListener
-