public class ViewerEvent extends Object
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 and Description |
---|
ViewerEvent(ActionEvent event,
PDFViewer viewer) |
ViewerEvent(PDFViewer viewer,
DocumentPanel panel)
Create a new ViewerEvent manually
|
Modifier and Type | Method and Description |
---|---|
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
|
public ViewerEvent(ActionEvent event, PDFViewer viewer)
public ViewerEvent(PDFViewer viewer, DocumentPanel panel)
viewer
- the PDFViewer the event relates topanel
- the DocumentPanel the event relates topublic PDFViewer getViewer()
public DocumentPanel getDocumentPanel()
DocumentPanel
of the PDFViewer, or
null
if no DocumentPanel is active.public Component getComponent()
Copyright © 2001-2017 Big Faceless Organization