public final class Undo extends ViewerFeature implements ActionListener, UndoableEditListener, DocumentPanelListener
DocumentPanel.fireUndoableEditEvent(javax.swing.event.UndoableEditEvent)
method to provide undo/redo
across the Document.
The name of this feature is Undo
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.
Modifier and Type | Field and Description |
---|---|
static UndoableEdit |
DISCARD
An UndableEdit which can be passed into
DocumentPanel.fireUndoableEditEvent(javax.swing.event.UndoableEditEvent)
to clear the list. |
Constructor and Description |
---|
Undo() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
documentUpdated(DocumentPanelEvent event)
Called when an
DocumentPanelEvent is raised |
void |
initialize(PDFViewer viewer)
Called when the feature is first added to a viewer
|
void |
undoableEditHappened(UndoableEditEvent event) |
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown, toString
public static final UndoableEdit DISCARD
DocumentPanel.fireUndoableEditEvent(javax.swing.event.UndoableEditEvent)
to clear the list. This should be done when the list needs to be cleared, due to an
action on the Document that permanently changes the state of the PDF.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void initialize(PDFViewer viewer)
ViewerFeature
initialize
in class ViewerFeature
public void documentUpdated(DocumentPanelEvent event)
DocumentPanelListener
DocumentPanelEvent
is raiseddocumentUpdated
in interface DocumentPanelListener
public void undoableEditHappened(UndoableEditEvent event)
undoableEditHappened
in interface UndoableEditListener
Copyright © 2001-2018 Big Faceless Organization