|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.pdf2.viewer2.ViewerEvent
public class ViewerEvent
An event which is raised by the Viewer when a ViewerWidget
is
activated. This is passed to the ViewerWidget.action(org.faceless.pdf2.viewer2.ViewerEvent)
method
for processing.
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.
Constructor Summary | |
---|---|
ViewerEvent(PDFViewer viewer,
DocumentPanel panel)
Create a new ViewerEvent manually |
Method Summary | |
---|---|
Component |
getComponent()
Return the Component this event was raised on (for manually created events this returns null) |
DocumentPanel |
getDocumentPanel()
Return the active DocumentPanel of the PDFViewer, or
null if no DocumentPanel is active. |
PDF |
getPDF()
Return the PDF of the DocumentPanel |
PDFViewer |
getViewer()
Return the viewer this Event was raised on |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewerEvent(PDFViewer viewer, DocumentPanel panel)
viewer
- the PDFViewer the event relates topanel
- the DocumentPanel the event relates toMethod Detail |
---|
public PDFViewer getViewer()
public DocumentPanel getDocumentPanel()
DocumentPanel
of the PDFViewer, or
null
if no DocumentPanel is active.
public PDF getPDF()
PDF
of the DocumentPanel
public Component getComponent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |