org.pdfbox.pdmodel.fdf
Class FDFOptionElement
java.lang.Object
org.pdfbox.pdmodel.fdf.FDFOptionElement
- COSObjectable
public class FDFOptionElement
extends java.lang.Object
This represents an object that can be used in a Field's Opt entry to represent
an available option and a default appearance string.
FDFOptionElement
public FDFOptionElement()
Default constructor.
FDFOptionElement
public FDFOptionElement(COSArray o)
Constructor.
getCOSArray
public COSArray getCOSArray()
Convert this standard java object to a COS object.
- The cos object that matches this Java object.
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.
- getCOSObject in interface COSObjectable
- The cos object that matches this Java object.
getDefaultAppearanceString
public String getDefaultAppearanceString()
This will get the string of default appearance string. A required element.
- A default appearance string.
getOption
public String getOption()
This will get the string of one of the available options. A required element.
setDefaultAppearanceString
public void setDefaultAppearanceString(String da)
This will set the default appearance string.
da
- The default appearance string.
setOption
public void setOption(String opt)
This will set the string for an available option.
opt
- One of the available options.