Package org.apache.pdfbox.pdmodel.fdf
Class FDFOptionElement
java.lang.Object
org.apache.pdfbox.pdmodel.fdf.FDFOptionElement
- All Implemented Interfaces:
COSObjectable
This represents an object that can be used in a Field's Opt entry to represent an available option and a default
appearance string.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionConvert this standard java object to a COS object.Convert this standard java object to a COS object.This will get the string of default appearance string.This will get the string of one of the available options.void
This will set the default appearance string.void
This will set the string for an available option.
-
Field Details
-
option
-
-
Constructor Details
-
FDFOptionElement
public FDFOptionElement()Default constructor. -
FDFOptionElement
Constructor.- Parameters:
o
- The option element.
-
-
Method Details
-
getCOSObject
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getCOSArray
Convert this standard java object to a COS object.- Returns:
- The cos object that matches this Java object.
-
getOption
This will get the string of one of the available options. A required element.- Returns:
- An available option.
-
setOption
This will set the string for an available option.- Parameters:
opt
- One of the available options.
-
getDefaultAppearanceString
This will get the string of default appearance string. A required element.- Returns:
- A default appearance string.
-
setDefaultAppearanceString
This will set the default appearance string.- Parameters:
da
- The default appearance string.
-