java.lang.Object | |||
↳ | com.pdftron.pdf.Annot | ||
↳ | com.pdftron.pdf.annots.Widget | ||
↳ | com.pdftron.pdf.annots.ListBoxWidget |
An object representing a List Box used in a PDF Form.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.annots.Widget
| |||||||||||
From class
com.pdftron.pdf.Annot
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ListBoxWidget(Obj d)
Creates a List Box Widget annotation and initialize it using given Cos/SDF object.
| |||||||||||
ListBoxWidget()
Create an empty List Box Widget annotation.
| |||||||||||
ListBoxWidget(Annot annot)
Creates a List Box Widget annotation and initialize it using given annotation object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addOption(String value)
Adds option to List Box Widget.
| ||||||||||
void |
addOptions(String[] opts)
Adds multiple options to List Box Widget.
| ||||||||||
static ListBoxWidget |
create(Doc doc, Rect pos, String field_name)
Creates a new List Box Widget annotation, in the specified document.
| ||||||||||
static ListBoxWidget |
create(Doc doc, Rect pos, Field field)
Creates a new List Box Widget annotation, in the specified document.
| ||||||||||
static ListBoxWidget |
create(Doc doc, Rect pos)
Creates a new List Box Widget annotation, in the specified document.
| ||||||||||
String[] |
getOptions()
Gets all options of the List Box widget.
| ||||||||||
String[] |
getSelectedOptions()
Gets all selected options in the List Box widget.
| ||||||||||
void |
removeOption(String value)
Remove the option from List Box widget.
| ||||||||||
void |
replaceOptions(String[] new_opts)
Replaces the current List Box widget options with a new set.
| ||||||||||
void |
setSelectedOptions(String[] selected_opts)
Sets the options for the ListBox widget.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.annots.Widget
| |||||||||||
From class
com.pdftron.pdf.Annot
| |||||||||||
From class
java.lang.Object
|
Creates a List Box Widget annotation and initialize it using given Cos/SDF object.
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
d | the object to use to initialize the List Box widget |
---|
Create an empty List Box Widget annotation.
Creates a List Box Widget annotation and initialize it using given annotation object.
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
annot | The annotation to use. |
---|
PDFNetException |
---|
Adds multiple options to List Box Widget.
opts | The options to add. |
---|
PDFNetException |
---|
Creates a new List Box Widget annotation, in the specified document.
doc | The document to which the annotation is added. |
---|---|
pos | A rectangle specifying the annotation's bounds, specified in user space coordinates. |
field_name | The name of the field for which to create a List Box Widget |
PDFNetException |
---|
Creates a new List Box Widget annotation, in the specified document.
doc | The document to which the annotation is added. |
---|---|
pos | A rectangle specifying the annotation's bounds, specified in user space coordinates. |
field | the field for which to create a List Box Widget |
PDFNetException |
---|
Creates a new List Box Widget annotation, in the specified document.
doc | The document to which the annotation is added. |
---|---|
pos | A rectangle specifying the annotation's bounds, specified in user space coordinates. |
PDFNetException |
---|
Gets all options of the List Box widget.
PDFNetException |
---|
Gets all selected options in the List Box widget.
PDFNetException |
---|
Remove the option from List Box widget.
value | The option to remove. |
---|
PDFNetException |
---|
Replaces the current List Box widget options with a new set.
new_opts | The new set of options to use. |
---|
PDFNetException |
---|
Sets the options for the ListBox widget.
selected_opts | The options to select. |
---|
PDFNetException |
---|