|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.pdf2.viewer2.ViewerFeature
org.faceless.pdf2.viewer2.feature.TextCopyAction
public class TextCopyAction
A TextSelectionAction
that will copy the selected text to the
System clipboard.
The name of this feature is TextCopyAction
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 | |
---|---|
TextCopyAction()
|
Method Summary | |
---|---|
void |
documentUpdated(DocumentPanelEvent event)
Called when an DocumentPanelEvent is raised |
String |
getDescription()
Get the name of this Action, to appear in the popup menu. |
void |
initialize(PDFViewer viewer)
Called when the feature is first added to a viewer |
boolean |
isEnabled()
Indicates whether this action is enabled. |
void |
selectAction(DocumentPanel docpanel,
TextSelection.RangeList range)
Run the action. |
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature |
---|
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextCopyAction()
Method Detail |
---|
public String getDescription()
TextSelectionAction
getDescription
in interface TextSelectionAction
public boolean isEnabled()
TextSelectionAction
isEnabled
in interface TextSelectionAction
public void initialize(PDFViewer viewer)
ViewerFeature
initialize
in class ViewerFeature
public void documentUpdated(DocumentPanelEvent event)
DocumentPanelListener
DocumentPanelEvent
is raised
documentUpdated
in interface DocumentPanelListener
public void selectAction(DocumentPanel docpanel, TextSelection.RangeList range)
TextSelectionAction
selectAction
in interface TextSelectionAction
docpanel
- the DocumentPanel this action is being run on.range
- the TextSelection.RangeList
containing the list of selected text items, which may be from multiple pages
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |