public class TextField extends Field
Modifier and Type | Method and Description |
---|---|
static TextField |
createDynamicObject(long handle) |
HorizontalAlignment |
getAlignment()
The text alignment (Getter)
|
java.lang.Double |
getFontSize()
The font size (Getter)
|
java.lang.String |
getText()
This field's text (Getter)
|
void |
setAlignment(HorizontalAlignment value)
The text alignment (Setter)
|
void |
setFontSize(java.lang.Double value)
The font size (Setter)
|
void |
setText(java.lang.String value)
This field's text (Setter)
|
addNewWidget, getDoNotExport, getReadOnly, getRequired, getWidgets, setDoNotExport, setReadOnly, setRequired
copy, getDisplayName, getExportName, setDisplayName, setExportName
equals, hashCode
public static TextField createDynamicObject(long handle)
public java.lang.String getText()
java.lang.IllegalStateException
- if the object has already been closedpublic void setText(java.lang.String value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalStateException
- the form field is marked as read-onlyjava.lang.IllegalStateException
- if the form field has widgetsjava.lang.IllegalArgumentException
- the string length of the given value exceeds the text field's GeneralTextField.getMaxLength()
public HorizontalAlignment getAlignment()
java.lang.IllegalStateException
- if the object has already been closedpublic void setAlignment(HorizontalAlignment value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalStateException
- if the form field has widgetsjava.lang.IllegalArgumentException
- if value
is null
public java.lang.Double getFontSize()
null
then the font size is chosen automatically by the PDF viewer.java.lang.IllegalStateException
- if the object has already been closedpublic void setFontSize(java.lang.Double value)
null
then the font size is chosen automatically by the PDF viewer.java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalStateException
- if the form field has widgetsjava.lang.IllegalArgumentException
- if the given value is smaller than 0.0