DynamicPDF by ceTe Software

com.cete.dynamicpdf.forms
Class TextField

java.lang.Object
  |
  +--com.cete.dynamicpdf.Resource
        |
        +--com.cete.dynamicpdf.forms.FormField
              |
              +--com.cete.dynamicpdf.forms.TextField
Direct Known Subclasses:
MergeTextField

public abstract class TextField
extends FormField

Class provides the base class representing a text field.


Constructor Summary
protected TextField(java.lang.String name, FormFieldAlign align, FormFieldFlags flags)
          Creates a new instance of TextField.
 
Method Summary
protected  void drawDictionary(DocumentWriter writer)
          Draws the text field's dictionary entries to the given DocumentWriter object.
abstract  int getMaximumLength()
          Gets the maximum length of the text in the text field.
 boolean hasValue()
          Specifies if the form field has a value.
 
Methods inherited from class com.cete.dynamicpdf.forms.FormField
draw, getAlternateName, getAnnotation, getChildFields, getFlags, getForm, getFullName, getMappingName, getName, getParent, getRequiredPdfObjects, getValue, hasChildFields, inheritsName, inheritsValue, isReadOnly, setAlternateName, setAnnotation, setMappingName, setName, setReadOnly, setValue
 
Methods inherited from class com.cete.dynamicpdf.Resource
getUid, newUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextField

protected TextField(java.lang.String name,
                    FormFieldAlign align,
                    FormFieldFlags flags)
Creates a new instance of TextField.

Parameters:
name - Name of the text field.
align - Alignment of the text field.
flags - The flags for the text field.
See Also:
TextField
Method Detail

hasValue

public boolean hasValue()
Specifies if the form field has a value.

Overrides:
hasValue in class FormField
Returns:
true, if the form field has a value.

getMaximumLength

public abstract int getMaximumLength()
Gets the maximum length of the text in the text field.

Returns:
the maximum length of the text in the text field.

drawDictionary

protected void drawDictionary(DocumentWriter writer)
Draws the text field's dictionary entries to the given DocumentWriter object.

Overrides:
drawDictionary in class FormField
Parameters:
writer - DocumentWriter object to receive the output.
See Also:
DocumentWriter

DynamicPDF by ceTe Software

API Reference for DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software