TextBoxField
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.TextBoxField, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.TextBoxField, com.aspose.pdf.Annotation, com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.TextBoxField, com.aspose.pdf.WidgetAnnotation, com.aspose.pdf.Field com.aspose.pdf.TextBoxField, com.aspose.pdf.Field, com.aspose.pdf.TextBoxField
All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable< WidgetAnnotation >, com.aspose.ms.System.Collections.IEnumerable< WidgetAnnotation >, com.aspose.ms.System.ICloneable, Cloneable, Iterable < WidgetAnnotation >
public class TextBoxField extends Field
Class representing text box field.
Constructors
| Constructor | Description |
|---|---|
| TextBoxField | Create instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc) |
| TextBoxField | Create instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc) |
| TextBoxField | Create instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc) |
| TextBoxField | Create instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc) |
| TextBoxField | Create instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc) |
Methods
| Method | Description |
|---|---|
| addBarcode | Adds barcode 128 into the field. Field value will be changed onto the code and field become read only. |
| addImage | Adds image into the field resources and draws it. |
| getForceCombs | Gets flag which indicates is field divided into spaced positions. |
| getMaxLen | Gets maximum length of text in the field. |
| getMultiline | Gets multiline flag of the field. If Multiline is true field can contain multiple lines of text. |
| getScrollable | Gets scrollable flag of field. If true field can be scrolled. |
| getSpellCheck | Gets spellcheck flag for field. If true field shall be spell checked. |
| getTextVerticalAlignment | Gets or sets text vertical alignment for annotation. |
| getValue | Gets value of the field. |
| setForceCombs | Sets flag which indicates is field divided into spaced positions. |
| setJustification | Sets justification |
| setMaxLen | Sets maximum length of text in the field. |
| setMultiline | Sets multiline flag of the field. If Multiline is true field can contain multiple lines of text. |
| setScrollable | Sets scrollable flag of field. If true field can be scrolled. |
| setSpellCheck | Sets spellcheck flag for field. If true field shall be spell checked. |
| setTextVerticalAlignment | Gets or sets text vertical alignment for annotation. |
| setValue | Sets value of the field. |
TextBoxField
@Deprecated public TextBoxField()
Create instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc)
TextBoxField
Create instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc)
TextBoxField
Create instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc)
TextBoxField
Create instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc)
TextBoxField
Create instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc)
addBarcode
Adds barcode 128 into the field. Field value will be changed onto the code and field become read only.
addImage
Adds image into the field resources and draws it.
getForceCombs
public boolean getForceCombs()
Gets flag which indicates is field divided into spaced positions.
Returns: boolean value
getMaxLen
public int getMaxLen()
Gets maximum length of text in the field.
Returns: int value
getMultiline
public boolean getMultiline()
Gets multiline flag of the field. If Multiline is true field can contain multiple lines of text.
Returns: boolean value
getScrollable
public boolean getScrollable()
Gets scrollable flag of field. If true field can be scrolled.
Returns: boolean value
getSpellCheck
public boolean getSpellCheck()
Gets spellcheck flag for field. If true field shall be spell checked.
Returns: boolean value
getTextVerticalAlignment
public final VerticalAlignment getTextVerticalAlignment()
Gets or sets text vertical alignment for annotation.
Returns: VerticalAlignment element
getValue
public String getValue()
Gets value of the field.
Returns: String value
setForceCombs
public void setForceCombs(boolean value)
Sets flag which indicates is field divided into spaced positions.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setJustification
public void setJustification(boolean value)
Sets justification
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setMaxLen
public void setMaxLen(int value)
Sets maximum length of text in the field.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value |
setMultiline
public void setMultiline(boolean value)
Sets multiline flag of the field. If Multiline is true field can contain multiple lines of text.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setScrollable
public void setScrollable(boolean value)
Sets scrollable flag of field. If true field can be scrolled.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setSpellCheck
public void setSpellCheck(boolean value)
Sets spellcheck flag for field. If true field shall be spell checked.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setTextVerticalAlignment
Gets or sets text vertical alignment for annotation.
setValue
Sets value of the field.