public class FDFField extends Object implements COSObjectable
Constructor and Description |
---|
FDFField()
Default constructor.
|
FDFField(COSDictionary f)
Constructor.
|
FDFField(Element fieldXML)
This will create an FDF field from an XFDF XML document.
|
Modifier and Type | Method and Description |
---|---|
PDAction |
getAction()
This will get the action that is associated with this field.
|
PDAdditionalActions |
getAdditionalActions()
This will get a list of additional actions that will get executed based on events.
|
PDAppearanceDictionary |
getAppearanceDictionary()
This will get the appearance dictionary that specifies the appearance of a pushbutton field.
|
FDFNamedPageReference |
getAppearanceStreamReference()
This will get named page references..
|
Integer |
getClearFieldFlags()
This will get the ClrFf entry of the cos dictionary.
|
Integer |
getClearWidgetFieldFlags()
This will get the ClrF entry of the cos dictionary.
|
COSDictionary |
getCOSObject()
Convert this standard java object to a COS object.
|
COSBase |
getCOSValue()
Returns the COS value of this field.
|
Integer |
getFieldFlags()
This will get the Ff entry of the cos dictionary.
|
FDFIconFit |
getIconFit()
This will get the icon fit that is associated with this field.
|
List<FDFField> |
getKids()
This will get the list of kids.
|
List<Object> |
getOptions()
This will return a list of options for a choice field.
|
String |
getPartialFieldName()
This will get the "T" entry in the field dictionary.
|
String |
getRichText()
This will set the rich text that is associated with this field.
|
Integer |
getSetFieldFlags()
This will get the SetFf entry of the cos dictionary.
|
Integer |
getSetWidgetFieldFlags()
This will get the SetF entry of the cos dictionary.
|
Object |
getValue()
This will get the value for the field.
|
Integer |
getWidgetFieldFlags()
This will get the F entry of the cos dictionary.
|
void |
setAction(PDAction a)
This will set the action that is associated with this field.
|
void |
setAdditionalActions(PDAdditionalActions aa)
This will set the additional actions that are associated with this field.
|
void |
setAppearanceDictionary(PDAppearanceDictionary ap)
This will set the appearance dictionary.
|
void |
setAppearanceStreamReference(FDFNamedPageReference ref)
This will set the named page references.
|
void |
setClearFieldFlags(int ff)
This will get the field flags that are associated with this field.
|
void |
setClearFieldFlags(Integer ff)
This will get the field flags that are associated with this field.
|
void |
setClearWidgetFieldFlags(int ff)
This will get the field flags that are associated with this field.
|
void |
setClearWidgetFieldFlags(Integer ff)
This will get the field flags that are associated with this field.
|
void |
setFieldFlags(int ff)
This will get the field flags that are associated with this field.
|
void |
setFieldFlags(Integer ff)
This will get the field flags that are associated with this field.
|
void |
setIconFit(FDFIconFit fit)
This will set the icon fit entry.
|
void |
setKids(List<FDFField> kids)
This will set the list of kids.
|
void |
setOptions(List<Object> options)
This will set the options for the choice field.
|
void |
setPartialFieldName(String partial)
This will set the partial field name.
|
void |
setRichText(COSStream rv)
This will set the rich text value.
|
void |
setRichText(COSString rv)
This will set the rich text value.
|
void |
setSetFieldFlags(int ff)
This will get the field flags that are associated with this field.
|
void |
setSetFieldFlags(Integer ff)
This will get the field flags that are associated with this field.
|
void |
setSetWidgetFieldFlags(int ff)
This will get the widget field flags that are associated with this field.
|
void |
setSetWidgetFieldFlags(Integer ff)
This will get the widget field flags that are associated with this field.
|
void |
setValue(COSBase value)
Sets the COS value of this field.
|
void |
setValue(Object value)
You should pass in a string, or a java.util.List of strings to set the value.
|
void |
setWidgetFieldFlags(int f)
This will get the field flags that are associated with this field.
|
void |
setWidgetFieldFlags(Integer f)
This will get the widget field flags that are associated with this field.
|
void |
writeXML(Writer output)
This will write this element as an XML document.
|
public FDFField()
public FDFField(COSDictionary f)
f
- The FDF field.public FDFField(Element fieldXML) throws IOException
fieldXML
- The XML document that contains the XFDF data.IOException
- If there is an error reading from the dom.public void writeXML(Writer output) throws IOException
output
- The stream to write the xml to.IOException
- If there is an error writing the XML.public COSDictionary getCOSObject()
getCOSObject
in interface COSObjectable
public List<FDFField> getKids()
public void setKids(List<FDFField> kids)
kids
- A list of FDFField objects.public String getPartialFieldName()
public void setPartialFieldName(String partial)
partial
- The partial field name.public Object getValue() throws IOException
IOException
- If there is an error getting the value.public COSBase getCOSValue() throws IOException
IOException
- If there is an error getting the value.public void setValue(Object value) throws IOException
value
- The value that should populate when imported.IOException
- If there is an error setting the value.public void setValue(COSBase value)
value
- COS value.public Integer getFieldFlags()
public void setFieldFlags(Integer ff)
ff
- The new value for the field flags.public void setFieldFlags(int ff)
ff
- The new value for the field flags.public Integer getSetFieldFlags()
public void setSetFieldFlags(Integer ff)
ff
- The new value for the "set field flags".public void setSetFieldFlags(int ff)
ff
- The new value for the "set field flags".public Integer getClearFieldFlags()
public void setClearFieldFlags(Integer ff)
ff
- The new value for the "clear field flags".public void setClearFieldFlags(int ff)
ff
- The new value for the "clear field flags".public Integer getWidgetFieldFlags()
public void setWidgetFieldFlags(Integer f)
f
- The new value for the field flags.public void setWidgetFieldFlags(int f)
f
- The new value for the field flags.public Integer getSetWidgetFieldFlags()
public void setSetWidgetFieldFlags(Integer ff)
ff
- The new value for the "set widget field flags".public void setSetWidgetFieldFlags(int ff)
ff
- The new value for the "set widget field flags".public Integer getClearWidgetFieldFlags()
public void setClearWidgetFieldFlags(Integer ff)
ff
- The new value for the "clear widget field flags".public void setClearWidgetFieldFlags(int ff)
ff
- The new value for the "clear field flags".public PDAppearanceDictionary getAppearanceDictionary()
public void setAppearanceDictionary(PDAppearanceDictionary ap)
ap
- The apperance dictionary.public FDFNamedPageReference getAppearanceStreamReference()
public void setAppearanceStreamReference(FDFNamedPageReference ref)
ref
- The named page references.public FDFIconFit getIconFit()
public void setIconFit(FDFIconFit fit)
fit
- The icon fit object.public List<Object> getOptions()
public void setOptions(List<Object> options)
options
- The options to set.public PDAction getAction()
public void setAction(PDAction a)
a
- The new action.public PDAdditionalActions getAdditionalActions()
public void setAdditionalActions(PDAdditionalActions aa)
aa
- The additional actions.public String getRichText()
public void setRichText(COSString rv)
rv
- The rich text value for the stream.public void setRichText(COSStream rv)
rv
- The rich text value for the stream.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.