|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faceless.pdf2.viewer2.DocumentPanelEvent
public class DocumentPanelEvent
Represents an event on a DocumentPanel indicating that document has changed
somehow. To capture these events, implement the DocumentPanelListener interface
and register via the DocumentPanel.addDocumentPanelListener() method.
Be sure to check the getType() method to see what sort of event it is - current values
include:
| created | Raised when the DocumentPanel is first created |
|---|---|
| activated | Raised when the DocumentPanel is activated with a valid PDF |
| deactivated | Raised when the DocumentPanel is deactivated |
| viewportChanged | Raised when the DocumentPanel has a new DocumentViewport applied to it |
| loaded | Raised after a PDF is loaded |
| closing | Raised when the PDF is closing |
| redrawn | Raised when the PDF has been redrawn somehow |
This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.
| Method Summary | |
|---|---|
DocumentPanel |
getDocumentPanel()
Get the DocumentPanel this event was raised on |
String |
getType()
Get the type of the DocumentPanelEvent |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String toString()
toString in class Objectpublic DocumentPanel getDocumentPanel()
public String getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||