Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.fdf » [javadoc | source]
org.apache.pdfbox.pdmodel.fdf
public class: FDFField [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.fdf.FDFField

All Implemented Interfaces:
    COSObjectable

This represents an FDF field that is part of the FDF document.
Constructor:
 public FDFField() 
 public FDFField(COSDictionary f) 
    Constructor.
    Parameters:
    f - The FDF field.
 public FDFField(Element fieldXML) throws IOException 
    This will create an FDF field from an XFDF XML document.
    Parameters:
    fieldXML - The XML document that contains the XFDF data.
    Throws:
    IOException - If there is an error reading from the dom.
Method from org.apache.pdfbox.pdmodel.fdf.FDFField Summary:
getAction,   getAdditionalActions,   getAppearanceDictionary,   getAppearanceStreamReference,   getCOSDictionary,   getCOSObject,   getClearFieldFlags,   getClearWidgetFieldFlags,   getFieldFlags,   getIconFit,   getKids,   getOptions,   getPartialFieldName,   getRichText,   getSetFieldFlags,   getSetWidgetFieldFlags,   getValue,   getWidgetFieldFlags,   setAction,   setAdditionalActions,   setAppearanceDictionary,   setAppearanceStreamReference,   setClearFieldFlags,   setClearFieldFlags,   setClearWidgetFieldFlags,   setClearWidgetFieldFlags,   setFieldFlags,   setFieldFlags,   setIconFit,   setKids,   setOptions,   setPartialFieldName,   setRichText,   setSetFieldFlags,   setSetFieldFlags,   setSetWidgetFieldFlags,   setSetWidgetFieldFlags,   setValue,   setWidgetFieldFlags,   setWidgetFieldFlags,   writeXML
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.fdf.FDFField Detail:
 public PDAction getAction() 
    This will get the action that is associated with this field.
 public PDAdditionalActions getAdditionalActions() 
    This will get a list of additional actions that will get executed based on events.
 public PDAppearanceDictionary getAppearanceDictionary() 
    This will get the appearance dictionary that specifies the appearance of a pushbutton field.
 public FDFNamedPageReference getAppearanceStreamReference() 
    This will get named page references..
 public COSDictionary getCOSDictionary() 
    Convert this standard java object to a COS object.
 public COSBase getCOSObject() 
    Convert this standard java object to a COS object.
 public Integer getClearFieldFlags() 
    This will get the ClrFf entry of the cos dictionary. If it it not present then this method will return null.
 public Integer getClearWidgetFieldFlags() 
    This will get the ClrF entry of the cos dictionary. If it it not present then this method will return null.
 public Integer getFieldFlags() 
    This will get the Ff entry of the cos dictionary. If it it not present then this method will return null.
 public FDFIconFit getIconFit() 
    This will get the icon fit that is associated with this field.
 public List getKids() 
    This will get the list of kids. This will return a list of FDFField objects. This will return null if the underlying list is null.
 public List getOptions() 
    This will return a list of options for a choice field. The value in the list will be 1 of 2 types. java.lang.String or FDFOptionElement.
 public String getPartialFieldName() 
    This will get the "T" entry in the field dictionary. A partial field name. Where the fully qualified field name is a concatenation of the parent's fully qualified field name and "." as a separator. For example
    Address.State
    Address.City
 public PDTextStream getRichText() 
    This will set the rich text that is associated with this field.
 public Integer getSetFieldFlags() 
    This will get the SetFf entry of the cos dictionary. If it it not present then this method will return null.
 public Integer getSetWidgetFieldFlags() 
    This will get the SetF entry of the cos dictionary. If it it not present then this method will return null.
 public Object getValue() throws IOException 
    This will set the value for the field. This will return type will either be
    String : Checkboxes, Radio Button
    java.util.List of strings: Choice Field PDTextStream: Textfields
 public Integer getWidgetFieldFlags() 
    This will get the F entry of the cos dictionary. If it it not present then this method will return null.
 public  void setAction(PDAction a) 
    This will set the action that is associated with this field.
 public  void setAdditionalActions(PDAdditionalActions aa) 
    This will set the additional actions that are associated with this field.
 public  void setAppearanceDictionary(PDAppearanceDictionary ap) 
    This will set the appearance dictionary.
 public  void setAppearanceStreamReference(FDFNamedPageReference ref) 
    This will set the named page references.
 public  void setClearFieldFlags(Integer ff) 
    This will get the field flags that are associated with this field. The ClrFf entry in the FDF field dictionary.
 public  void setClearFieldFlags(int ff) 
    This will get the field flags that are associated with this field. The ClrFf entry in the FDF field dictionary.
 public  void setClearWidgetFieldFlags(Integer ff) 
    This will get the field flags that are associated with this field. The ClrF entry in the FDF field dictionary.
 public  void setClearWidgetFieldFlags(int ff) 
    This will get the field flags that are associated with this field. The ClrF entry in the FDF field dictionary.
 public  void setFieldFlags(Integer ff) 
    This will get the field flags that are associated with this field. The Ff entry in the FDF field dictionary.
 public  void setFieldFlags(int ff) 
    This will get the field flags that are associated with this field. The Ff entry in the FDF field dictionary.
 public  void setIconFit(FDFIconFit fit) 
    This will set the icon fit entry.
 public  void setKids(List kids) 
    This will set the list of kids.
 public  void setOptions(List options) 
    This will set the options for the choice field. The objects in the list should either be java.lang.String or FDFOptionElement.
 public  void setPartialFieldName(String partial) 
    This will set the partial field name.
 public  void setRichText(PDTextStream rv) 
    This will set the rich text value.
 public  void setSetFieldFlags(Integer ff) 
    This will get the field flags that are associated with this field. The SetFf entry in the FDF field dictionary.
 public  void setSetFieldFlags(int ff) 
    This will get the field flags that are associated with this field. The SetFf entry in the FDF field dictionary.
 public  void setSetWidgetFieldFlags(Integer ff) 
    This will get the widget field flags that are associated with this field. The SetF entry in the FDF field dictionary.
 public  void setSetWidgetFieldFlags(int ff) 
    This will get the widget field flags that are associated with this field. The SetF entry in the FDF field dictionary.
 public  void setValue(Object value) throws IOException 
    You should pass in a string, or a java.util.List of strings to set the value.
 public  void setWidgetFieldFlags(Integer f) 
    This will get the widget field flags that are associated with this field. The F entry in the FDF field dictionary.
 public  void setWidgetFieldFlags(int f) 
    This will get the field flags that are associated with this field. The F entry in the FDF field dictionary.
 public  void writeXML(Writer output) throws IOException 
    This will write this element as an XML document.