Package com.winnovative_software
Class PdfFormComboBox
java.lang.Object
com.winnovative_software.PdfFormField
com.winnovative_software.PdfFormComboBox
Represents a combo box in a PDF form
- 
Constructor SummaryConstructorsConstructorDescriptionPdfFormComboBox(RectangleFloat box, String[] items, PdfFont pdfFont) Constructs a combo box form field
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGets the flag indicating if it is allowed to have multiple selections in list boxbooleanGets the flag indicating if a new value selected is committed immediately without waiting to leave the fieldbooleaneditable()Gets the flag indicating if the combo box presents a text box above the drop down listfont()Gets the font of the items in the listString[]Gets the items in the list boxvoidsetAllowMultiSelect(boolean allowMultiSelect) Sets the flag indicating if it is allowed to have multiple selections in list box.voidsetCommitOnSelectionChanged(boolean commitOnSelChange) Sets the flag indicating if a new value selected is committed immediately without waiting to leave the fieldvoidsetEditable(boolean editable) Sets the flag indicating if the combo box presents a text box above the drop down list.voidSets the font of the items in the listvoidsetListItems(String[] listItems) Sets the items in the list boxvoidsetSortItems(boolean sortItems) Sets the flag indicating if the list items are sorted alphabeticallyvoidsetSpellChecking(boolean spellCheck) Sets flag indicating if the spell checking is enabled.voidSets the list box valuebooleanGets the flag indicating if the list items are sorted alphabeticallybooleanGets the flag indicating if the spell checking is enabledvalue()Gets the list box valueMethods inherited from class com.winnovative_software.PdfFormFieldboundingRectangle, defaultValue, export, flatten, name, parentForm, readOnly, required, setAction, setBoundingRectangle, setDefaultValue, setExport, setFlatten, setName, setReadOnly, setRequired, setStyle, setToolTip, style, toolTip
- 
Constructor Details- 
PdfFormComboBoxConstructs a combo box form field- Parameters:
- box- the combo box control bounding box
- items- the combo box items
- pdfFont- the combo box items font
 
 
- 
- 
Method Details- 
editablepublic boolean editable()Gets the flag indicating if the combo box presents a text box above the drop down list- Returns:
- the flag value
 
- 
setEditablepublic void setEditable(boolean editable) Sets the flag indicating if the combo box presents a text box above the drop down list. This property is true by default- Parameters:
- editable- the flag value to set
 
- 
listItemsGets the items in the list box- Returns:
- the items in the list box
 
- 
setListItemsSets the items in the list box- Parameters:
- listItems- the items in the list box to set
 
- 
valueGets the list box value- Returns:
- the list box value
 
- 
setValueSets the list box value- Parameters:
- fieldValue- the list box value to set
 
- 
fontGets the font of the items in the list- Returns:
- the font of the items in the list
 
- 
setFontSets the font of the items in the list- Parameters:
- pdfFont- the font of the items in the list to set
 
- 
allowMultiSelectpublic boolean allowMultiSelect()Gets the flag indicating if it is allowed to have multiple selections in list box- Returns:
- the flag value
 
- 
setAllowMultiSelectpublic void setAllowMultiSelect(boolean allowMultiSelect) Sets the flag indicating if it is allowed to have multiple selections in list box. This property is false by default- Parameters:
- allowMultiSelect- the flag value to set
 
- 
sortItemspublic boolean sortItems()Gets the flag indicating if the list items are sorted alphabetically- Returns:
- the flag value
 
- 
setSortItemspublic void setSortItems(boolean sortItems) Sets the flag indicating if the list items are sorted alphabetically- Parameters:
- sortItems- the flag value to set
 
- 
spellCheckingpublic boolean spellChecking()Gets the flag indicating if the spell checking is enabled- Returns:
- the flag value
 
- 
setSpellCheckingpublic void setSpellChecking(boolean spellCheck) Sets flag indicating if the spell checking is enabled. This property is false by default- Parameters:
- spellCheck- the flag value to set
 
- 
commitOnSelectionChangedpublic boolean commitOnSelectionChanged()Gets the flag indicating if a new value selected is committed immediately without waiting to leave the field- Returns:
- the flag value
 
- 
setCommitOnSelectionChangedpublic void setCommitOnSelectionChanged(boolean commitOnSelChange) Sets the flag indicating if a new value selected is committed immediately without waiting to leave the field- Parameters:
- commitOnSelChange- the flag value to set
 
 
-