COSObjectable
PDChoice
, PDTextField
public abstract class PDVariableText extends PDTerminalField
Modifier and Type | Field | Description |
---|---|---|
static int |
QUADDING_CENTERED |
|
static int |
QUADDING_LEFT |
|
static int |
QUADDING_RIGHT |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getDefaultAppearance() |
Get the default appearance.
|
java.lang.String |
getDefaultStyleString() |
Get the default style string.
|
int |
getQ() |
This will get the 'quadding' or justification of the text to be displayed.
|
java.lang.String |
getRichTextValue() |
Get the fields rich text value.
|
protected java.lang.String |
getStringOrStream(COSBase base) |
Get a text as text stream.
|
void |
setDefaultAppearance(java.lang.String daValue) |
Set the default appearance.
|
void |
setDefaultStyleString(java.lang.String defaultStyleString) |
Set the default style string.
|
void |
setQ(int q) |
This will set the quadding/justification of the text.
|
void |
setRichTextValue(java.lang.String richTextValue) |
Set the fields rich text value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, getValueAsString, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, setValue, toString
applyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgets
public static final int QUADDING_LEFT
public static final int QUADDING_CENTERED
public static final int QUADDING_RIGHT
public java.lang.String getDefaultAppearance()
public void setDefaultAppearance(java.lang.String daValue)
daValue
- a string describing the default appearancepublic java.lang.String getDefaultStyleString()
public void setDefaultStyleString(java.lang.String defaultStyleString)
defaultStyleString
- a string describing the default style.public int getQ()
public void setQ(int q)
q
- The new text justification.public java.lang.String getRichTextValue() throws java.io.IOException
java.io.IOException
- if the field dictionary entry is not a text typepublic void setRichTextValue(java.lang.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 stringprotected final java.lang.String getStringOrStream(COSBase base)
base
- the potential text or text streamCopyright © 2002–2018. All rights reserved.