Class AbstractPageEvent

java.lang.Object
com.levigo.jadice.document.AbstractDocumentEvent
com.levigo.jadice.document.AbstractPageEvent
Direct Known Subclasses:
PageSegmentEvent

public abstract class AbstractPageEvent extends AbstractDocumentEvent
This is an abstract base class for page concerning document events or simply page events.
Since:
4.3
  • Constructor Details

    • AbstractPageEvent

      public AbstractPageEvent(Page page)
      Constructor

      Using this constructor allows to create a page event without a reference to the enclosing document. This might be useful if the document is unknown or not available at the moment of event creation.

      Parameters:
      page - the page which originates this event
    • AbstractPageEvent

      public AbstractPageEvent(Document doc, Page page)
      Constructor

      Creates a page event with given document and page as event sources.

      Parameters:
      doc - the document container in which the event occurs
      page - the page which originates the event
  • Method Details

    • getPage

      public Page getPage()
      Return the page which originates this event
      Returns:
      page the source of this event
    • setPage

      protected void setPage(Page page)
      Sets the page source of this event.
      Parameters:
      page - the source this event is triggered by
    • getDocument

      public Document getDocument()
      Returns the document which holds the page source of this event. The return value might be null, if the document reference was unknown or not available at creation time of this event.
      Overrides:
      getDocument in class AbstractDocumentEvent
      Returns:
      the document which contains the page source of this event or null
      See Also: