| |
|
| java.lang.Object com.lowagie.text.pdf.BaseField com.lowagie.text.pdf.TextField
TextField | public class TextField extends BaseField (Code) | | Supports text, combo and list fields generating the correct appearances.
All the option in the Acrobat GUI are supported in an easy to use API.
author: Paulo Soares (psoares@consiste.pt) |
Constructor Summary | |
public | TextField(PdfWriter writer, Rectangle box, String fieldName) Creates a new TextField .
Parameters: writer - the document PdfWriter Parameters: box - the field location and dimensions Parameters: fieldName - the field name. |
TextField | public TextField(PdfWriter writer, Rectangle box, String fieldName)(Code) | | Creates a new TextField .
Parameters: writer - the document PdfWriter Parameters: box - the field location and dimensions Parameters: fieldName - the field name. If null only the widget keyswill be included in the field allowing it to be used as a kid field. |
getChoiceExports | public String[] getChoiceExports()(Code) | | Gets the export values in list/combo fields.
the export values in list/combo fields |
getChoiceSelection | public int getChoiceSelection()(Code) | | Gets the zero based index of the selected item.
the zero based index of the selected item |
getChoices | public String[] getChoices()(Code) | | Gets the choices to be presented to the user in list/combo
fields.
the choices to be presented to the user |
getDefaultText | public String getDefaultText()(Code) | | Gets the default text.
the default text |
getExtensionFont | public BaseFont getExtensionFont()(Code) | | Gets the extensionFont. This font will be searched before the
substitution fonts. It may be null .
the extensionFont |
getSubstitutionFonts | public ArrayList getSubstitutionFonts()(Code) | | Gets the list of substitution fonts. The list is composed of BaseFont and can be null . The fonts in this list will be used if the original
font doesn't contain the needed glyphs.
the list |
getTopFirst | int getTopFirst()(Code) | | |
setChoiceExports | public void setChoiceExports(String[] choiceExports)(Code) | | Sets the export values in list/combo fields. If this array
is null then the choice values will also be used
as the export values.
Parameters: choiceExports - the export values in list/combo fields |
setChoiceSelection | public void setChoiceSelection(int choiceSelection)(Code) | | Sets the zero based index of the selected item.
Parameters: choiceSelection - the zero based index of the selected item |
setChoices | public void setChoices(String[] choices)(Code) | | Sets the choices to be presented to the user in list/combo
fields.
Parameters: choices - the choices to be presented to the user |
setDefaultText | public void setDefaultText(String defaultText)(Code) | | Sets the default text. It is only meaningful for text fields.
Parameters: defaultText - the default text |
setExtensionFont | public void setExtensionFont(BaseFont extensionFont)(Code) | | Sets the extensionFont. This font will be searched before the
substitution fonts. It may be null .
Parameters: extensionFont - New value of property extensionFont. |
setExtraMargin | public void setExtraMargin(float extraMarginLeft, float extraMarginTop)(Code) | | Sets extra margins in text fields to better mimic the Acrobat layout.
Parameters: extraMarginLeft - the extra marging left Parameters: extraMarginTop - the extra margin top |
setSubstitutionFonts | public void setSubstitutionFonts(ArrayList substitutionFonts)(Code) | | Sets a list of substitution fonts. The list is composed of BaseFont and can also be null . The fonts in this list will be used if the original
font doesn't contain the needed glyphs.
Parameters: substitutionFonts - the list |
|
|
|