Class Spinner

java.lang.Object
eltos.simpledialogfragment.form.FormElement<Spinner,eltos.simpledialogfragment.form.SpinnerViewHolder>
eltos.simpledialogfragment.form.Spinner
All Implemented Interfaces:
android.os.Parcelable

@Deprecated public class Spinner extends FormElement<Spinner,eltos.simpledialogfragment.form.SpinnerViewHolder>
Deprecated.
A spinner form element to be used with SimpleFormDialog This is an Spinner that can be used to give a choice between different values. This will add an int to resource bundle containing the index of the chosen value within the supplied item list or -1 if none was chosen. Created by philipp on 23.02.17.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<Spinner>
    Deprecated.
     

    Fields inherited from class eltos.simpledialogfragment.form.FormElement

    NO_ID, required, resultKey

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Spinner(android.os.Parcel in)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    eltos.simpledialogfragment.form.SpinnerViewHolder
    Deprecated.
    Return your custom implementation of FormElementViewHolder here
    int
    Deprecated.
     
    protected String[]
    getItems(android.content.Context context)
    Deprecated.
     
    protected String
    getPlaceholderText(android.content.Context context)
    Deprecated.
     
    items(int itemArrayRes)
    Deprecated.
    Provide an array resource with items to be shown by this spinner.
    items(int... itemsStringResArray)
    Deprecated.
    Provide an array of items to be shown by this spinner.
    items(String... items)
    Deprecated.
    Provide an array of items to be shown by this spinner.
    placeholder(int textResourceId)
    Deprecated.
    Sets the placeholder text displayed if nothing is selected
    Deprecated.
    Sets the placeholder text displayed if nothing is selected
    static Spinner
    Deprecated.
    Factory method for a plain spinner.
    preset(int itemIndex)
    Deprecated.
    Set the initially selected item
    void
    writeToParcel(android.os.Parcel dest, int flags)
    Deprecated.
     

    Methods inherited from class eltos.simpledialogfragment.form.FormElement

    getText, label, label, required, required

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<Spinner> CREATOR
      Deprecated.
  • Constructor Details

    • Spinner

      protected Spinner(android.os.Parcel in)
      Deprecated.
  • Method Details

    • plain

      public static Spinner plain(String key)
      Deprecated.
      Factory method for a plain spinner.
      Parameters:
      key - the key that can be used to receive the chosen item index from the bundle in SimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)
      Returns:
      this instance
    • placeholder

      public Spinner placeholder(String text)
      Deprecated.
      Sets the placeholder text displayed if nothing is selected
      Parameters:
      text - placeholder text as string
      Returns:
      this instance
    • placeholder

      public Spinner placeholder(@StringRes int textResourceId)
      Deprecated.
      Sets the placeholder text displayed if nothing is selected
      Parameters:
      textResourceId - placeholder text as android string resource
      Returns:
      this instance
    • items

      public Spinner items(@ArrayRes int itemArrayRes)
      Deprecated.
      Provide an array resource with items to be shown by this spinner.
      Parameters:
      itemArrayRes - the string array resource to suggest
      Returns:
      this instance
    • items

      public Spinner items(@StringRes int... itemsStringResArray)
      Deprecated.
      Provide an array of items to be shown by this spinner.
      Parameters:
      itemsStringResArray - array of string resources to suggest
      Returns:
      this instance
    • items

      public Spinner items(String... items)
      Deprecated.
      Provide an array of items to be shown by this spinner.
      Parameters:
      items - array of strings to suggest
      Returns:
      this instance
    • preset

      public Spinner preset(int itemIndex)
      Deprecated.
      Set the initially selected item
      Parameters:
      itemIndex - The index of the initially selected item
      Returns:
      this instance
    • buildViewHolder

      public eltos.simpledialogfragment.form.SpinnerViewHolder buildViewHolder()
      Deprecated.
      Description copied from class: FormElement
      Return your custom implementation of FormElementViewHolder here
      Specified by:
      buildViewHolder in class FormElement<Spinner,eltos.simpledialogfragment.form.SpinnerViewHolder>
      Returns:
      The view holder that can represent this form element
    • getPlaceholderText

      @Nullable protected String getPlaceholderText(android.content.Context context)
      Deprecated.
    • getItems

      @Nullable protected String[] getItems(android.content.Context context)
      Deprecated.
    • describeContents

      public int describeContents()
      Deprecated.
      Specified by:
      describeContents in interface android.os.Parcelable
      Overrides:
      describeContents in class FormElement<Spinner,eltos.simpledialogfragment.form.SpinnerViewHolder>
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Deprecated.
      Specified by:
      writeToParcel in interface android.os.Parcelable
      Overrides:
      writeToParcel in class FormElement<Spinner,eltos.simpledialogfragment.form.SpinnerViewHolder>