com.qoppa.pdf.form
Interface PushButtonField

All Superinterfaces:
FormField

public interface PushButtonField
extends FormField

PushButtonField holds a push button field.

Author:
Qoppa Software

Field Summary
 
Fields inherited from interface com.qoppa.pdf.form.FormField
TYPE_BUTTON, TYPE_CHECKBOX, TYPE_COMBOBOX, TYPE_LISTBOX, TYPE_RADIOBUTTON, TYPE_SIGNATURE, TYPE_TEXT
 
Method Summary
 boolean isImageField()
          Checks whether this push button field is designated to be an image field.
 void setImage(BufferedImage bi)
          Set an image to display in the button fields.
 
Methods inherited from interface com.qoppa.pdf.form.FormField
addFieldListener, addKeyListener, addMouseListener, flattenField, getAltFieldName, getFieldName, getFieldTypeDesc, getFullFieldName, getKids, getMapFieldName, getTriggerActions, getUserName, getWidgets, isEmpty, isNoExport, isReadOnly, isRequired, removeFieldListener, reset, setAltFieldName, setComponentVisible, setFieldFlags, setFieldName, setHidden, setMapFieldName, setNoExport, setPrintable, setReadOnly, setRequired, setTriggerActions, setUserName
 

Method Detail

setImage

void setImage(BufferedImage bi)
              throws PDFException
Set an image to display in the button fields. Push button fields in PDF can be used to load and display images. The field has to be an "image field", which is a push button field designated to hold images.

Parameters:
bi - The image to set in the field.
Throws:
PDFException

isImageField

boolean isImageField()
Checks whether this push button field is designated to be an image field.

Returns:
true if the button is an image field.