Java Doc for TextField.java in  » PDF » pdf-itext » com » lowagie » text » pdf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » pdf itext » com.lowagie.text.pdf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.

Method Summary
public  PdfAppearancegetAppearance()
    
public  String[]getChoiceExports()
     Gets the export values in list/combo fields.
protected  PdfFormFieldgetChoiceField(boolean isList)
    
public  intgetChoiceSelection()
     Gets the zero based index of the selected item.
public  String[]getChoices()
     Gets the choices to be presented to the user in list/combo fields.
public  PdfFormFieldgetComboField()
     Gets a new combo field.
public  StringgetDefaultText()
     Gets the default text.
public  BaseFontgetExtensionFont()
     Gets the extensionFont.
 PdfAppearancegetListAppearance()
    
public  PdfFormFieldgetListField()
     Gets a new list field.
public  ArrayListgetSubstitutionFonts()
     Gets the list of substitution fonts.
public  PdfFormFieldgetTextField()
     Gets a new text field.
 intgetTopFirst()
    
public  voidsetChoiceExports(String[] choiceExports)
     Sets the export values in list/combo fields.
public  voidsetChoiceSelection(int choiceSelection)
     Sets the zero based index of the selected item.
public  voidsetChoices(String[] choices)
     Sets the choices to be presented to the user in list/combo fields.
public  voidsetDefaultText(String defaultText)
     Sets the default text.
public  voidsetExtensionFont(BaseFont extensionFont)
     Sets the extensionFont.
public  voidsetExtraMargin(float extraMarginLeft, float extraMarginTop)
     Sets extra margins in text fields to better mimic the Acrobat layout.
public  voidsetSubstitutionFonts(ArrayList substitutionFonts)
     Sets a list of substitution fonts.


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




Method Detail
getAppearance
public PdfAppearance getAppearance() throws IOException, DocumentException(Code)



getChoiceExports
public String[] getChoiceExports()(Code)
Gets the export values in list/combo fields. the export values in list/combo fields



getChoiceField
protected PdfFormField getChoiceField(boolean isList) throws IOException, DocumentException(Code)



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



getComboField
public PdfFormField getComboField() throws IOException, DocumentException(Code)
Gets a new combo field.
throws:
  IOException - on error
throws:
  DocumentException - on error a new combo field



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



getListAppearance
PdfAppearance getListAppearance() throws IOException, DocumentException(Code)



getListField
public PdfFormField getListField() throws IOException, DocumentException(Code)
Gets a new list field.
throws:
  IOException - on error
throws:
  DocumentException - on error a new list field



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



getTextField
public PdfFormField getTextField() throws IOException, DocumentException(Code)
Gets a new text field.
throws:
  IOException - on error
throws:
  DocumentException - on error a new text field



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



Fields inherited from com.lowagie.text.pdf.BaseField
final public static float BORDER_WIDTH_MEDIUM(Code)(Java Doc)
final public static float BORDER_WIDTH_THICK(Code)(Java Doc)
final public static float BORDER_WIDTH_THIN(Code)(Java Doc)
final public static int COMB(Code)(Java Doc)
final public static int DO_NOT_SCROLL(Code)(Java Doc)
final public static int DO_NOT_SPELL_CHECK(Code)(Java Doc)
final public static int EDIT(Code)(Java Doc)
final public static int FILE_SELECTION(Code)(Java Doc)
final public static int HIDDEN(Code)(Java Doc)
final public static int HIDDEN_BUT_PRINTABLE(Code)(Java Doc)
final public static int MULTILINE(Code)(Java Doc)
final public static int PASSWORD(Code)(Java Doc)
final public static int READ_ONLY(Code)(Java Doc)
final public static int REQUIRED(Code)(Java Doc)
final public static int VISIBLE(Code)(Java Doc)
final public static int VISIBLE_BUT_DOES_NOT_PRINT(Code)(Java Doc)
protected int alignment(Code)(Java Doc)
protected Color backgroundColor(Code)(Java Doc)
protected Color borderColor(Code)(Java Doc)
protected int borderStyle(Code)(Java Doc)
protected float borderWidth(Code)(Java Doc)
protected Rectangle box(Code)(Java Doc)
protected String fieldName(Code)(Java Doc)
protected BaseFont font(Code)(Java Doc)
protected float fontSize(Code)(Java Doc)
protected int maxCharacterLength(Code)(Java Doc)
protected int options(Code)(Java Doc)
protected int rotation(Code)(Java Doc)
protected String text(Code)(Java Doc)
protected Color textColor(Code)(Java Doc)
protected int visibility(Code)(Java Doc)
protected PdfWriter writer(Code)(Java Doc)

Methods inherited from com.lowagie.text.pdf.BaseField
protected static ArrayList breakLines(ArrayList breaks, BaseFont font, float fontSize, float width)(Code)(Java Doc)
public int getAlignment()(Code)(Java Doc)
public Color getBackgroundColor()(Code)(Java Doc)
protected PdfAppearance getBorderAppearance()(Code)(Java Doc)
public Color getBorderColor()(Code)(Java Doc)
public int getBorderStyle()(Code)(Java Doc)
public float getBorderWidth()(Code)(Java Doc)
public Rectangle getBox()(Code)(Java Doc)
public String getFieldName()(Code)(Java Doc)
public BaseFont getFont()(Code)(Java Doc)
public float getFontSize()(Code)(Java Doc)
protected static ArrayList getHardBreaks(String text)(Code)(Java Doc)
public int getMaxCharacterLength()(Code)(Java Doc)
public int getOptions()(Code)(Java Doc)
protected BaseFont getRealFont() throws IOException, DocumentException(Code)(Java Doc)
public int getRotation()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public Color getTextColor()(Code)(Java Doc)
public int getVisibility()(Code)(Java Doc)
public PdfWriter getWriter()(Code)(Java Doc)
public static void moveFields(PdfDictionary from, PdfDictionary to)(Code)(Java Doc)
public void setAlignment(int alignment)(Code)(Java Doc)
public void setBackgroundColor(Color backgroundColor)(Code)(Java Doc)
public void setBorderColor(Color borderColor)(Code)(Java Doc)
public void setBorderStyle(int borderStyle)(Code)(Java Doc)
public void setBorderWidth(float borderWidth)(Code)(Java Doc)
public void setBox(Rectangle box)(Code)(Java Doc)
public void setFieldName(String fieldName)(Code)(Java Doc)
public void setFont(BaseFont font)(Code)(Java Doc)
public void setFontSize(float fontSize)(Code)(Java Doc)
public void setMaxCharacterLength(int maxCharacterLength)(Code)(Java Doc)
public void setOptions(int options)(Code)(Java Doc)
public void setRotation(int rotation)(Code)(Java Doc)
public void setRotationFromPage(Rectangle page)(Code)(Java Doc)
public void setText(String text)(Code)(Java Doc)
public void setTextColor(Color textColor)(Code)(Java Doc)
public void setVisibility(int visibility)(Code)(Java Doc)
public void setWriter(PdfWriter writer)(Code)(Java Doc)
protected static void trimRight(StringBuffer buf)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.