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.


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.
 
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

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 DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software