Package com.levigo.jadice.document
Class AbstractPageEvent
java.lang.Object
com.levigo.jadice.document.AbstractDocumentEvent
com.levigo.jadice.document.AbstractPageEvent
- Direct Known Subclasses:
PageSegmentEvent
This is an abstract base class for page concerning document events or simply page events.
- Since:
- 4.3
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractPageEvent(Document doc, Page page) ConstructorAbstractPageEvent(Page page) Constructor -
Method Summary
Methods inherited from class com.levigo.jadice.document.AbstractDocumentEvent
setDocument
-
Constructor Details
-
AbstractPageEvent
ConstructorUsing 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
ConstructorCreates a page event with given document and page as event sources.
- Parameters:
doc- the document container in which the event occurspage- the page which originates the event
-
-
Method Details
-
getPage
Return the page which originates this event- Returns:
- page the source of this event
-
setPage
Sets the page source of this event.- Parameters:
page- the source this event is triggered by
-
getDocument
Returns the document which holds the page source of this event. The return value might benull, if the document reference was unknown or not available at creation time of this event.- Overrides:
getDocumentin classAbstractDocumentEvent- Returns:
- the document which contains the page source of this event or
null - See Also:
-