|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ChoiceField
ChoiceField is the abstract class to hold a choice field. A choice field contains
several text items.
ComboField and ListField extend this class.
| Field Summary |
|---|
| Fields inherited from interface com.qoppa.pdf.form.FormField |
|---|
TYPE_BUTTON, TYPE_CHECKBOX, TYPE_COMBOBOX, TYPE_LISTBOX, TYPE_RADIOBUTTON, TYPE_SIGNATURE, TYPE_TEXT |
| Method Summary | |
|---|---|
String |
getDefaultValue()
Returns the default value for this field. |
Vector |
getDisplayOptions()
Returns the list of display options (or items) for this field. |
String |
getDisplayValue(String exportValue)
Returns the display value (or item) corresponding to a given export value. |
Vector |
getExportOptions()
Returns the list of export options for this field. |
String |
getExportValue(String displayValue)
Returns the export value corresponding to a given display value (or item). |
String |
getValue()
Returns the current selected value. |
Vector |
getValues()
Returns the current list of selected export values. |
boolean |
isCombo()
Returns true if the choice field is a combo box field, false if it's a list field. |
boolean |
isEditable()
Returns true if user is allowed to enter custom text, false if not. |
boolean |
isMultiSelect()
Returns true if selection of multiple items is allowed, false if not. |
boolean |
isSpellCheck()
Returns true if spelling should be checked on the custom values entered by user (@see isEditable()), false if not. |
void |
setDefaultValue(String defaultValue)
Sets the default selected export value for this choice field. |
void |
setOptions(Vector exportOptions,
Vector displayOptions)
Set the list of options for this choice field. |
void |
setValue(String value)
Sets the selected export value for this choice field. |
void |
setValues(Vector values)
Sets the list of currently selected values for this choice field. |
| Methods inherited from interface com.qoppa.pdf.form.FormField |
|---|
addFieldListener, addKeyListener, addMouseListener, flattenField, getAltFieldName, getFieldName, getFieldTypeDesc, getFullFieldName, getKids, getMapFieldName, getTriggerActions, getUserName, getWidgets, isEmpty, isNoExport, isReadOnly, isRequired, removeFieldListener, reset, setAltFieldName, setComponentVisible, setFieldFlags, setFieldName, setHidden, setMapFieldName, setNoExport, setPrintable, setReadOnly, setRequired, setTriggerActions, setUserName |
| Method Detail |
|---|
String getDefaultValue()
Vector getDisplayOptions()
String getDisplayValue(String exportValue)
Vector getExportOptions()
String getExportValue(String displayValue)
Vector getValues()
String getValue()
boolean isCombo()
boolean isEditable()
boolean isMultiSelect()
boolean isSpellCheck()
void setDefaultValue(String defaultValue)
defaultValue -
void setOptions(Vector exportOptions,
Vector displayOptions)
exportOptions - the list of export optionsdisplayOptions - the list of items or display options.
void setValue(String value)
throws PDFException
value -
PDFException
void setValues(Vector values)
throws PDFException
values - List of selected export values as a vector
PDFException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||