public abstract class AbstractPageEvent extends AbstractDocumentEvent
Constructor and Description |
---|
AbstractPageEvent(Document doc,
Page page)
Constructor
|
AbstractPageEvent(Page page)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Document |
getDocument()
Returns the document which holds the page source of this event.
|
Page |
getPage()
Return the page which originates this event
|
protected void |
setPage(Page page)
Sets the page source of this event.
|
setDocument
public AbstractPageEvent(Page page)
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.
page
- the page which originates this eventpublic Page getPage()
protected void setPage(Page page)
page
- the source this event is triggered bypublic Document getDocument()
null
, if the document reference was unknown or not available at creation time of
this event.getDocument
in class AbstractDocumentEvent
null
AbstractDocumentEvent.getDocument()
Copyright © 2024 levigo holding gmbh. All rights reserved.