public class SelectFeedbackFormField extends java.lang.Object implements FeedbackFormField, android.widget.AdapterView.OnItemSelectedListener
| Constructor and Description |
|---|
SelectFeedbackFormField(java.lang.String attribute,
java.lang.String label,
java.util.Map<java.lang.String,java.lang.String> values,
java.lang.String defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAttribute()
Return the key name for the attribute represented by this form field
|
java.lang.String |
getValue()
Return the value for the attribute respressented by this form field
|
android.view.View |
onCreateView(android.content.Context context,
android.view.View parent)
Like an adapter, implement this to return a custom view for the form element
|
void |
onItemSelected(android.widget.AdapterView<?> parent,
android.view.View view,
int position,
long id) |
void |
onNothingSelected(android.widget.AdapterView<?> parent) |
public SelectFeedbackFormField(java.lang.String attribute,
java.lang.String label,
java.util.Map<java.lang.String,java.lang.String> values,
java.lang.String defaultValue)
public android.view.View onCreateView(android.content.Context context,
android.view.View parent)
FeedbackFormFieldonCreateView in interface FeedbackFormFieldpublic java.lang.String getAttribute()
FeedbackFormFieldgetAttribute in interface FeedbackFormFieldpublic java.lang.String getValue()
FeedbackFormFieldgetValue in interface FeedbackFormFieldpublic void onItemSelected(android.widget.AdapterView<?> parent,
android.view.View view,
int position,
long id)
onItemSelected in interface android.widget.AdapterView.OnItemSelectedListenerpublic void onNothingSelected(android.widget.AdapterView<?> parent)
onNothingSelected in interface android.widget.AdapterView.OnItemSelectedListener