public abstract class ActionHandler extends ViewerFeature
ViewerFeature
that will run a PDFAction
on a document,
usually as a result of a link or button being clicked.
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 |
---|
ActionHandler(String name)
Create a new ActionHandler
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
matches(DocumentPanel panel,
PDFAction action)
Return true if this ActionFactory can handle the specified
PDFAction |
abstract void |
run(DocumentPanel panel,
PDFAction action)
Run the specified action
|
String |
toString() |
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, initialize, isEnabledByDefault, setFeatureName, teardown
public ActionHandler(String name)
name
- the name of this ViewerFeaturepublic String toString()
toString
in class ViewerFeature
public abstract boolean matches(DocumentPanel panel, PDFAction action)
PDFAction
public abstract void run(DocumentPanel panel, PDFAction action)
panel
- the DocumentPanel running the actionaction
- the actionCopyright © 2001-2017 Big Faceless Organization