Klasse Check

java.lang.Object
eltos.simpledialogfragment.form.FormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>
eltos.simpledialogfragment.form.Check
Alle implementierten Schnittstellen:
android.os.Parcelable

public class Check extends FormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>
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

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final android.os.Parcelable.Creator<Check>
     

    Von Klasse geerbte Felder eltos.simpledialogfragment.form.FormElement

    NO_ID, required, resultKey

    Von Schnittstelle geerbte Felder android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static Check
    box(String key)
    Factory method for a check field.
    eltos.simpledialogfragment.form.CheckViewHolder
    Return your custom implementation of FormElementViewHolder here
    check(boolean preset)
    Sets the initial state of the checkbox
    check(int preset)
    Sets the initial state of the checkbox
    int
     
    protected boolean
    getInitialState(android.content.Context context)
     
    protected String
    getText(android.content.Context context)
     
    label(int textResourceId)
    Sets the label
    label(String text)
    Sets the label
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Von Klasse geerbte Methoden eltos.simpledialogfragment.form.FormElement

    required, required

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • CREATOR

      public static final android.os.Parcelable.Creator<Check> CREATOR
  • Methodendetails

    • box

      public static Check box(String key)
      Factory method for a check field.
      Parameter:
      key - the key that can be used to receive the final state from the bundle in SimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)
      Gibt zurück:
      this instance
    • check

      public Check check(boolean preset)
      Sets the initial state of the checkbox
      Parameter:
      preset - initial state
      Gibt zurück:
      this instance
    • check

      public Check check(@BoolRes int preset)
      Sets the initial state of the checkbox
      Parameter:
      preset - initial state as boolean resource
      Gibt zurück:
      this instance
    • label

      public Check label(String text)
      Sets the label
      Setzt außer Kraft:
      label in Klasse FormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>
      Parameter:
      text - label text as string
      Gibt zurück:
      this instance
    • label

      public Check label(@StringRes int textResourceId)
      Sets the label
      Setzt außer Kraft:
      label in Klasse FormElement<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: FormElement
      Return your custom implementation of FormElementViewHolder here
      Angegeben von:
      buildViewHolder in Klasse FormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>
      Gibt zurück:
      The view holder that can represent this form element
    • getText

      @Nullable protected String getText(android.content.Context context)
      Setzt außer Kraft:
      getText in Klasse FormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>
    • getInitialState

      protected boolean getInitialState(android.content.Context context)
    • describeContents

      public int describeContents()
      Angegeben von:
      describeContents in Schnittstelle android.os.Parcelable
      Setzt außer Kraft:
      describeContents in Klasse FormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Angegeben von:
      writeToParcel in Schnittstelle android.os.Parcelable
      Setzt außer Kraft:
      writeToParcel in Klasse FormElement<Check,eltos.simpledialogfragment.form.CheckViewHolder>