public class FormButtonWidgetFactory extends AnnotationComponentFactory
WidgetAnnotation
objects belonging to a FormButton
.
The name of this feature is FormButtonWidgetFactory
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.
FOCUSBORDER
Constructor and Description |
---|
FormButtonWidgetFactory()
Create a new FormButtonWidgetFactory.
|
Modifier and Type | Method and Description |
---|---|
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 . |
addStockDetailsToEditComponent, bindComponentLocation, bindComponentLocation, bindComponentLocation, bindComponentLocation, copyAnnotationState, createDeleteAction, createEditAction, createEditComponent, createFlattenAction, createNewAnnotation, createNewAnnotation, getAnnotationType, getPreferences, getViewer, initialize, isFactoryReadOnly, makeComponentInteractive, paintComponent, paintComponentAnnotations, popupPropertyMenu, postEdit, toString
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown
public FormButtonWidgetFactory()
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()
Copyright © 2001-2017 Big Faceless Organization