public abstract class PDVariableText extends PDTerminalField
Modifier and Type | Field and Description |
---|---|
static int |
QUADDING_CENTERED |
static int |
QUADDING_LEFT |
static int |
QUADDING_RIGHT |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultAppearance()
Get the default appearance.
|
String |
getDefaultStyleString()
Get the default style string.
|
int |
getQ()
This will get the 'quadding' or justification of the text to be displayed.
|
String |
getRichTextValue()
Get the fields rich text value.
|
protected String |
getStringOrStream(COSBase base)
Get a text as text stream.
|
void |
setDefaultAppearance(String daValue)
Set the default appearance.
|
void |
setDefaultStyleString(String defaultStyleString)
Set the default style string.
|
void |
setQ(int q)
This will set the quadding/justification of the text.
|
void |
setRichTextValue(String richTextValue)
Set the fields rich text value.
|
applyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgets
getAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, getValueAsString, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, setValue, toString
public static final int QUADDING_LEFT
public static final int QUADDING_CENTERED
public static final int QUADDING_RIGHT
public String getDefaultAppearance()
public void setDefaultAppearance(String daValue)
daValue
- a string describing the default appearancepublic String getDefaultStyleString()
public void setDefaultStyleString(String defaultStyleString)
defaultStyleString
- a string describing the default style.public int getQ()
public void setQ(int q)
q
- The new text justification.public String getRichTextValue() throws IOException
IOException
- if the field dictionary entry is not a text typepublic void setRichTextValue(String richTextValue)
Setting the rich text value will not generate the appearance
for the field.
You can set PDAcroForm.setNeedAppearances(Boolean)
to
signal a conforming reader to generate the appearance stream.
richTextValue
- a rich text stringCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.