Package eltos.simpledialogfragment.form
Klasse FormElement<T extends FormElement,V extends FormElementViewHolder>
java.lang.Object
eltos.simpledialogfragment.form.FormElement<T,V>
- Alle implementierten Schnittstellen:
android.os.Parcelable
public abstract class FormElement<T extends FormElement,V extends FormElementViewHolder>
extends Object
implements android.os.Parcelable
Base-class for form elements to be used with
SimpleFormDialog
Each form element holds a resultKey
that is used to receive element
specific results in SimpleFormDialog.onResult(int)
Created by eltos on 20.02.17.-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen android.os.Parcelable
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected static final int
protected boolean
protected String
Von Schnittstelle geerbte Felder android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotected
FormElement
(android.os.Parcel in) protected
FormElement
(String resultKey) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract V
Return your custom implementation ofFormElementViewHolder
hereint
protected String
getText
(android.content.Context context) label
(int textResourceId) Sets the labelSets the labelrequired()
Mark this Field as required.required
(boolean required) Set the required flag for this field.void
writeToParcel
(android.os.Parcel dest, int flags)
-
Felddetails
-
NO_ID
protected static final int NO_ID- Siehe auch:
-
resultKey
-
required
protected boolean required
-
-
Konstruktordetails
-
FormElement
-
FormElement
protected FormElement(android.os.Parcel in)
-
-
Methodendetails
-
buildViewHolder
Return your custom implementation ofFormElementViewHolder
here- Gibt zurück:
- The view holder that can represent this form element
-
required
Mark this Field as required. Seerequired(boolean)
- Gibt zurück:
- this instance
-
required
Set the required flag for this field. This has different meanings depending on the element typeInput fields will display an error message if their input is empty. Check fields will be required to be checked
- Parameter:
required
- whether this field is required- Gibt zurück:
- this instance
-
label
Sets the label- Parameter:
text
- label text as string- Gibt zurück:
- this instance
-
label
Sets the label- Parameter:
textResourceId
- label text as android string resource- Gibt zurück:
- this instance
-
getText
-
describeContents
public int describeContents()- Angegeben von:
describeContents
in Schnittstelleandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Angegeben von:
writeToParcel
in Schnittstelleandroid.os.Parcelable
-