org.faceless.pdf2.viewer2.feature
Class FormTextWidgetFactory

java.lang.Object
  extended by org.faceless.pdf2.viewer2.ViewerFeature
      extended by org.faceless.pdf2.viewer2.AnnotationComponentFactory
          extended by org.faceless.pdf2.viewer2.feature.FormTextWidgetFactory

public class FormTextWidgetFactory
extends AnnotationComponentFactory

Create annotations to handle WidgetAnnotation objects belonging to a FormText. The name of this feature is "FormTextWidgetFactory".

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.

Since:
2.8

Constructor Summary
protected FormTextWidgetFactory()
          Create a new FormTextWidgetFactory.
 
Method Summary
 JComponent createComponent(PagePanel pagepanel, PDFAnnotation annot)
          Return a JComponent that will visually represent the specified PDFAnnotation.
static FormTextWidgetFactory getInstance()
          Return the FormTextWidgetFactory
 boolean matches(PDFAnnotation annot)
          Return true if this AnnotationComponentFactory could create a JComponent for the specified PDFAnnotation.
 
Methods inherited from class org.faceless.pdf2.viewer2.AnnotationComponentFactory
bindComponentLocation, bindComponentLocation, bindComponentLocation, createEditComponent, createNewAnnotation, getAnnotationType, paintComponent, toString
 
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature
getAllFeatures, getCustomJavaScript, getName, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormTextWidgetFactory

protected FormTextWidgetFactory()
Create a new FormTextWidgetFactory. Instances of this object can be shared across viewers, so it's generally better to call the getInstance() method.

Since:
2.10.6
Method Detail

getInstance

public static FormTextWidgetFactory getInstance()
Return the FormTextWidgetFactory


matches

public boolean matches(PDFAnnotation annot)
Description copied from class: AnnotationComponentFactory
Return true if this AnnotationComponentFactory could create a JComponent for the specified PDFAnnotation.

Specified by:
matches in class AnnotationComponentFactory

createComponent

public JComponent createComponent(PagePanel pagepanel,
                                  PDFAnnotation annot)
Description copied from class: AnnotationComponentFactory
Return a JComponent that will visually represent the specified PDFAnnotation.

Specified by:
createComponent in class AnnotationComponentFactory
Parameters:
pagepanel - the panel the JComponent will be added to
annot - the annotation


Copyright © 2001-2008 Big Faceless Organization