DynamicPDF by ceTe Software

com.cete.dynamicpdf.forms
Class FormFieldList

java.lang.Object
  |
  +--com.cete.dynamicpdf.forms.FormFieldList

public class FormFieldList
extends java.lang.Object

Class Represents a collection of form fields.

Licensing:
Reading the values or properties of a field is a DynamicPDF Merger Standard Edition feature (for modifying field values see below). One of the following licenses is required for non-evaluation usage:

Modiying the values of the fields (i.e. form filling) is a Professional Edition Feature. One of the following licenses is required for non-evaluation usage:


Constructor Summary
protected FormFieldList(Form form, FormField owner)
           
 
Method Summary
 int add(FormField formField)
          Adds a form field to the collection.
 void drawKidReferences(DocumentWriter writer)
          Draws the child references to the given DocumentWriter object.
 FormField getFormField(int index)
          Gets a FormField by index.
 FormField getFormField(java.lang.String name)
          Gets a FormField by the given name.
 java.util.Iterator getIterator()
          Returns an Iterator that can iterate through the FormFieldList
 FormField getOwner()
          Get the FormField that owns the form field list.
 int getSize()
          Gets the number of fields in the list.
 boolean remove(FormField field)
          Removes the field from the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormFieldList

protected FormFieldList(Form form,
                        FormField owner)
Method Detail

getSize

public int getSize()
Gets the number of fields in the list.


getOwner

public FormField getOwner()
Get the FormField that owns the form field list.

See Also:
FormField

getFormField

public FormField getFormField(java.lang.String name)
Gets a FormField by the given name.

Parameters:
name - Name of the filed to be retrieved.
See Also:
FormField

getFormField

public FormField getFormField(int index)
Gets a FormField by index.


add

public int add(FormField formField)
Adds a form field to the collection.

Parameters:
formField - FormField object to add.
Returns:
The index of the added form field.
See Also:
FormField

remove

public boolean remove(FormField field)
Removes the field from the collection.

Returns:
true, if it is deleted from the collection. Otherwise, false.

getIterator

public java.util.Iterator getIterator()
Returns an Iterator that can iterate through the FormFieldList

Returns:
An Iterator for the entire FormFieldList
See Also:
Iterator

drawKidReferences

public void drawKidReferences(DocumentWriter writer)
Draws the child references to the given DocumentWriter object.

Parameters:
writer - DocumentWriter object to receive the FormField list's output.
See Also:
DocumentWriter, FormField

DynamicPDF by ceTe Software

API Reference for DynamicPDFTM v4.0.3 for Java generated on March 22, 2007
© Copyright 2007, ceTe Software