public class

GenericListPickerFormCellFragment

extends Fragment
java.lang.Object
   ↳ androidx.fragment.app.Fragment
     ↳ com.sap.cloud.mobile.fiori.formcell.GenericListPickerFormCellFragment<V extends android.view.View, T extends java.io.Serializable>

Summary

Public Constructors
GenericListPickerFormCellFragment()
GenericListPickerFormCellFragment(int res, int recyclerViewId)
Public Methods
List<T> getValue()
final void notifyDataSetChanged()
void onSaveInstanceState(Bundle outState)
void onViewCreated(View view, Bundle savedInstanceState)
void onViewStateRestored(Bundle savedInstanceState)
void setAllItemLabel(CharSequence allLabel)
Set the label for "All" item section.
void setClearSingleSelection(boolean clearSingleSelection)
Allow enable of items when already selected item is clicked.
void setGenericListPickerAdapter(Context context, GenericListPickerFormCellAdapter<V, T> adapter)
void setLeftToRight(boolean leftRight)
Show the check/radio buttons on the start or the end of the layout
void setSelectedItemLabel(CharSequence selectedItemLabel)
Set the label for "Selected" item section.
void setSingleSelectOnly(boolean singleSelect)
Enable or disable single/multiple selection
void setValue(List<T> value)
void showSelected(boolean showSelected)
Show or hide the selected item section on the list picker formcell
[Expand]
Inherited Methods
From class androidx.fragment.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.view.View.OnCreateContextMenuListener
From interface androidx.activity.result.ActivityResultCaller
From interface androidx.lifecycle.HasDefaultViewModelProviderFactory
From interface androidx.lifecycle.LifecycleOwner
From interface androidx.lifecycle.ViewModelStoreOwner
From interface androidx.savedstate.SavedStateRegistryOwner

Public Constructors

public GenericListPickerFormCellFragment ()

public GenericListPickerFormCellFragment (int res, int recyclerViewId)

Public Methods

public List<T> getValue ()

public final void notifyDataSetChanged ()

public void onSaveInstanceState (Bundle outState)

public void onViewCreated (View view, Bundle savedInstanceState)

public void onViewStateRestored (Bundle savedInstanceState)

public void setAllItemLabel (CharSequence allLabel)

Set the label for "All" item section.

Parameters
allLabel CharSequence

public void setClearSingleSelection (boolean clearSingleSelection)

Allow enable of items when already selected item is clicked. Note that this flag only affects the single select picker.

Parameters
clearSingleSelection boolean

public void setGenericListPickerAdapter (Context context, GenericListPickerFormCellAdapter<V, T> adapter)

public void setLeftToRight (boolean leftRight)

Show the check/radio buttons on the start or the end of the layout

Parameters
leftRight boolean

public void setSelectedItemLabel (CharSequence selectedItemLabel)

Set the label for "Selected" item section.

Parameters
selectedItemLabel CharSequence

public void setSingleSelectOnly (boolean singleSelect)

Enable or disable single/multiple selection

Parameters
singleSelect boolean

public void setValue (List<T> value)

public void showSelected (boolean showSelected)

Show or hide the selected item section on the list picker formcell

Parameters
showSelected boolean