Package eltos.simpledialogfragment.form
Klasse Check
java.lang.Object
eltos.simpledialogfragment.form.FormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>
eltos.simpledialogfragment.form.Check
- Alle implementierten Schnittstellen:
android.os.Parcelable
An checkbox form element to be used with
SimpleFormDialog
This is a CheckBox - what else?
This will add a Boolean to resource bundle containing the checked state.
Created by eltos on 21.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
FelderVon Klasse geerbte Felder eltos.simpledialogfragment.form.FormElement
NO_ID, required, resultKeyVon Schnittstelle geerbte Felder android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic CheckFactory method for a check field.eltos.simpledialogfragment.form.CheckViewHolderReturn your custom implementation ofFormElementViewHolderherecheck(boolean preset) Sets the initial state of the checkboxcheck(int preset) Sets the initial state of the checkboxintprotected booleangetInitialState(android.content.Context context) protected StringgetText(android.content.Context context) label(int textResourceId) Sets the labelSets the labelvoidwriteToParcel(android.os.Parcel dest, int flags) Von Klasse geerbte Methoden eltos.simpledialogfragment.form.FormElement
required, required
-
Felddetails
-
CREATOR
-
-
Methodendetails
-
box
Factory method for a check field.- Parameter:
key- the key that can be used to receive the final state from the bundle inSimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)- Gibt zurück:
- this instance
-
check
Sets the initial state of the checkbox- Parameter:
preset- initial state- Gibt zurück:
- this instance
-
check
Sets the initial state of the checkbox- Parameter:
preset- initial state as boolean resource- Gibt zurück:
- this instance
-
label
Sets the label- Setzt außer Kraft:
labelin KlasseFormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder> - Parameter:
text- label text as string- Gibt zurück:
- this instance
-
label
Sets the label- Setzt außer Kraft:
labelin KlasseFormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder> - Parameter:
textResourceId- label text as android string resource- Gibt zurück:
- this instance
-
buildViewHolder
public eltos.simpledialogfragment.form.CheckViewHolder buildViewHolder()Beschreibung aus Klasse kopiert:FormElementReturn your custom implementation ofFormElementViewHolderhere- Angegeben von:
buildViewHolderin KlasseFormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder> - Gibt zurück:
- The view holder that can represent this form element
-
getText
- Setzt außer Kraft:
getTextin KlasseFormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>
-
getInitialState
protected boolean getInitialState(android.content.Context context) -
describeContents
public int describeContents()- Angegeben von:
describeContentsin Schnittstelleandroid.os.Parcelable- Setzt außer Kraft:
describeContentsin KlasseFormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Angegeben von:
writeToParcelin Schnittstelleandroid.os.Parcelable- Setzt außer Kraft:
writeToParcelin KlasseFormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>
-