public class FieldObject extends Object
| Constructor and Description |
|---|
FieldObject() |
FieldObject(String name,
String value,
boolean containsRichText) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the string value of the name attribute of the field element.
|
FieldObject |
getParent()
Gets a parent field of current field.
|
String |
getRichTextValue()
Gets the string representation of the value-richtext element, a child of the field element and contains the
field's value formatted as a rich text string.
|
String |
getValue()
Gets the string representation of the value element, a child of the field element and contains the field's value,
whose format may vary depending on the field type.
|
boolean |
isContainsRichText()
Gets a boolean indicating if a value-richtext element is present inside the field.
|
void |
setContainsRichText(boolean containsRichText)
Sets a boolean indicating if a value-richtext element is present inside the field.
|
void |
setName(String name)
Sets the string value of the name attribute of the field element.
|
void |
setParent(FieldObject parent)
Sets a parent field of current field.
|
void |
setRichTextValue(String richTextValue)
Sets the string representation of the value-richtext element, a child of the field element and contains the
field's value formatted as a rich text string.
|
void |
setValue(String value)
Sets the string representation of the value element, a child of the field element and contains the field's value,
whose format may vary depending on the field type.
|
public String getName()
String value of field name attributepublic void setName(String name)
name - String value of field name attributepublic String getValue()
String representation of inner value element of the fieldpublic void setValue(String value)
value - String representation of inner value element of the fieldpublic String getRichTextValue()
String representation of inner value-richtext element of the fieldpublic void setRichTextValue(String richTextValue)
richTextValue - String representation of inner value-richtext element of the fieldpublic boolean isContainsRichText()
public void setContainsRichText(boolean containsRichText)
containsRichText - a boolean indicating if a value-richtext element is present inside the fieldpublic FieldObject getParent()
field object of the current fieldpublic void setParent(FieldObject parent)
parent - field object that is a parent of the current fieldCopyright © 1998–2020 iText Group NV. All rights reserved.