|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
ChoiceField is the abstract class to hold a choice field. A choice field contains
several text items.
ComboField and ListField extend this class.
| 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, getMapFieldName, getUserName, getWidgets, isNoExport, isReadOnly, isRequired, removeFieldListener, reset, setAltFieldName, setComponentVisible, setFieldFlags, setFieldName, setHidden, setMapFieldName, setNoExport, setPrintable, setReadOnly, setRequired, setUserName |
| Method Detail |
public String getDefaultValue()
public Vector getDisplayOptions()
public String getDisplayValue(String exportValue)
public Vector getExportOptions()
public String getExportValue(String displayValue)
public Vector getValues()
public String getValue()
public boolean isCombo()
public boolean isEditable()
public boolean isMultiSelect()
public boolean isSpellCheck()
public void setDefaultValue(String defaultValue)
defaultValue -
public void setOptions(Vector exportOptions,
Vector displayOptions)
exportOptions - the list of export optionsdisplayOptions - the list of items or display options.
public void setValue(String value)
throws PDFException
value -
PDFException
public 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 | ||||||||||