public class GenericNamedActionHandler extends ActionHandler
PDFViewer
- applying it to a
standalone DocumentPanel
won't work. In addition this is intended as a generic
fallback handler, and so should always be added after any more specific handlers.
The name of this feature is GenericNamedActionHandler
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 |
---|
GenericNamedActionHandler()
Create a new GenericNamedActionHandler
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(DocumentPanel panel,
PDFAction action)
Return true if this ActionFactory can handle the specified
PDFAction |
void |
run(DocumentPanel docpanel,
PDFAction action)
Run the specified action
|
static void |
run(DocumentPanel docpanel,
String action)
Run the specified "named" action.
|
toString
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, initialize, isEnabledByDefault, setFeatureName, teardown
public GenericNamedActionHandler()
public boolean matches(DocumentPanel panel, PDFAction action)
ActionHandler
PDFAction
matches
in class ActionHandler
public void run(DocumentPanel docpanel, PDFAction action)
ActionHandler
run
in class ActionHandler
docpanel
- the DocumentPanel running the actionaction
- the actionpublic static void run(DocumentPanel docpanel, String action)
docpanel
- the active DocumentPanelaction
- the named action to runCopyright © 2001-2017 Big Faceless Organization