Interface AutofillSource
- All Known Implementing Classes:
AbstractStaticAutoFillSource
,CurrentUserAutoFillSource
,CustomValueAutoFillSource
,UDUserAutoFillSource
public interface AutofillSource
Interface for creating a new source for autofill in text fields
-
Method Summary
Modifier and TypeMethodDescriptiongetAutofillValue
(FormQuestion question) Get autofill valueGet description of autofill sourcegetId()
Get id of the autofill sourcegetLabel()
Get label of autofill sourceGet the type model items If the return value is null there won't be any processing on the server sideGet the view items for the main tabboolean
isCacheable
(FormQuestion question) Returntrue
if the question can be cacheable with this source.void
saxAdditionalInfos
(ContentHandler contentHandler, FormQuestion question) Sax additional infos
-
Method Details
-
getId
Get id of the autofill source- Returns:
- the id
-
getLabel
Get label of autofill source- Returns:
- the label
-
getDescription
Get description of autofill source- Returns:
- the description
-
getAutofillValue
Get autofill value- Parameters:
question
- the question- Returns:
- the autofill value.
-
getModelItems
Get the type model items If the return value is null there won't be any processing on the server side- Returns:
- a list of the model items
-
getViewElements
Get the view items for the main tab- Returns:
- a list of view items
-
saxAdditionalInfos
Sax additional infos- Parameters:
contentHandler
- the content handlerquestion
- the question- Throws:
SAXException
- if an error occurred
-
isCacheable
Returntrue
if the question can be cacheable with this source.- Parameters:
question
- the question- Returns:
true
if the question can be cacheable.
-