|
||||||||||
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.AnnotationComponentFactory
org.faceless.pdf2.viewer2.feature.FormBlankSignatureWidgetFactory
public class FormBlankSignatureWidgetFactory
Create annotations to handle WidgetAnnotation
objects belonging to
unsigned FormSignature
fields. When an annotation created by this
class is selected, a SignatureProvider
will be chosen and its
showSignDialog()
method called.
The name of this feature is FormBlankSignatureWidgetFactory
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.
SignatureProvider
in 2.11Field Summary |
---|
Fields inherited from class org.faceless.pdf2.viewer2.AnnotationComponentFactory |
---|
FOCUSBORDER |
Constructor Summary | |
---|---|
FormBlankSignatureWidgetFactory()
Create a new FormBlankSignatureWidgetFactory |
Method Summary | |
---|---|
JComponent |
createComponent(PagePanel pagepanel,
PDFAnnotation annot)
Return a JComponent that will visually represent the specified PDFAnnotation. |
boolean |
matches(PDFAnnotation annot)
Return true if this AnnotationComponentFactory could create a JComponent
for the specified PDFAnnotation . |
void |
sign(FormSignature field,
DocumentPanel docpanel,
SignatureProvider provider)
Sign the field, by calling the showSignDialog()
method on the specified SignatureServiceProvider. |
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature |
---|
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FormBlankSignatureWidgetFactory()
Method Detail |
---|
public boolean matches(PDFAnnotation annot)
AnnotationComponentFactory
JComponent
for the specified PDFAnnotation
.
matches
in class AnnotationComponentFactory
public JComponent createComponent(PagePanel pagepanel, PDFAnnotation annot)
AnnotationComponentFactory
Return a JComponent that will visually represent the specified PDFAnnotation. The default implementation returns a JPanel that will display the annotation appearance - it's usually best to call super.createComponent() then add any required listeners in the subclasses.
By default this method returns a JCompoment whose paintComponent()
method is overridden to call paintComponent(this, this.ui, g)
followed by
paintComponentAnnotations(this, g)
- typically, the main reason to override this
method is when a different type of object is required (eg. a JTextField
)
createComponent
in class AnnotationComponentFactory
pagepanel
- the panel the JComponent will be added toannot
- the annotationpaintComponentAnnotations()
,
paintComponent()
public void sign(FormSignature field, DocumentPanel docpanel, SignatureProvider provider) throws IOException, GeneralSecurityException
showSignDialog()
method on the specified SignatureServiceProvider.
field
- the blank Signature Field to signdocpanel
- the DocumentPanelprovider
- the SignatureServiceProvider to use to sign the field.
IOException
GeneralSecurityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |