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

ConstructorDescription
TextBoxFieldCreate instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc)
TextBoxFieldCreate instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc)
TextBoxFieldCreate instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc)
TextBoxFieldCreate instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc)
TextBoxFieldCreate instance of TextBoxField. @deprecated For full field functionality, a binding to the document is required - use TextBoxField(Document doc)

Methods

MethodDescription
addBarcodeAdds barcode 128 into the field. Field value will be changed onto the code and field become read only.
addImageAdds image into the field resources and draws it.
getForceCombsGets flag which indicates is field divided into spaced positions.
getMaxLenGets maximum length of text in the field.
getMultilineGets multiline flag of the field. If Multiline is true field can contain multiple lines of text.
getScrollableGets scrollable flag of field. If true field can be scrolled.
getSpellCheckGets spellcheck flag for field. If true field shall be spell checked.
getTextVerticalAlignmentGets or sets text vertical alignment for annotation.
getValueGets value of the field.
setForceCombsSets flag which indicates is field divided into spaced positions.
setJustificationSets justification
setMaxLenSets maximum length of text in the field.
setMultilineSets multiline flag of the field. If Multiline is true field can contain multiple lines of text.
setScrollableSets scrollable flag of field. If true field can be scrolled.
setSpellCheckSets spellcheck flag for field. If true field shall be spell checked.
setTextVerticalAlignmentGets or sets text vertical alignment for annotation.
setValueSets 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:

ParameterTypeDescription
valueboolean value

setJustification

public void setJustification(boolean value)

Sets justification

Parameters:

ParameterTypeDescription
valueboolean value

setMaxLen

public void setMaxLen(int value)

Sets maximum length of text in the field.

Parameters:

ParameterTypeDescription
valueint 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:

ParameterTypeDescription
valueboolean value

setScrollable

public void setScrollable(boolean value)

Sets scrollable flag of field. If true field can be scrolled.

Parameters:

ParameterTypeDescription
valueboolean value

setSpellCheck

public void setSpellCheck(boolean value)

Sets spellcheck flag for field. If true field shall be spell checked.

Parameters:

ParameterTypeDescription
valueboolean value

setTextVerticalAlignment

Gets or sets text vertical alignment for annotation.

setValue

Sets value of the field.