public abstract class

FilterDialogFragment

extends DialogFragment
implements Toolbar.OnMenuItemClickListener
java.lang.Object
   ↳ androidx.fragment.app.Fragment
     ↳ androidx.fragment.app.DialogFragment
       ↳ com.sap.cloud.mobile.fiori.formcell.FilterDialogFragment

Summary

Nested Classes
interface FilterDialogFragment.OnApplyListener Listener for notification when apply button is tapped. 
interface FilterDialogFragment.OnDismissListener Listener for notification when the dialog fragment is embedded has been dismissed. 
[Expand]
Inherited Constants
From class androidx.fragment.app.DialogFragment
Public Constructors
FilterDialogFragment()
Public Methods
void dismiss()
void onActivityCreated(Bundle savedInstanceState)
Dialog onCreateDialog(Bundle savedInstanceState)
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
boolean onMenuItemClick(MenuItem item)
void onResume()
void onSaveInstanceState(Bundle state)
void setApplyListener(FilterDialogFragment.OnApplyListener listener)
Set a listener to be notified when the apply button is tapped.
void setDismissListener(FilterDialogFragment.OnDismissListener listener)
Set a listener to be notified when the dialog fragment is embedded has been dismissed.
Protected Methods
abstract void fillCellAtPosition(int section, int row, FormCell ob)
Bind the data values to the control at the row in a section.
abstract boolean filterHasChanged()
Returns true if the filter has been changed.
abstract FormCell.WidgetType getCellTypeInSectionAtRow(int section, int row)
Return the enum for the control at the given row in the section
abstract int getCountOfItemsInSection(int section)
Returns number of rows in a given section
abstract int getNumberOfSections()
Returns the number of sections in the view
abstract void resetChangeHandler()
Need to implement to reset the values of the controls being used in filter activity to some default value
[Expand]
Inherited Methods
From class androidx.fragment.app.DialogFragment
From class androidx.fragment.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.DialogInterface.OnCancelListener
From interface android.content.DialogInterface.OnDismissListener
From interface android.view.View.OnCreateContextMenuListener
From interface androidx.activity.result.ActivityResultCaller
From interface androidx.appcompat.widget.Toolbar.OnMenuItemClickListener
From interface androidx.lifecycle.HasDefaultViewModelProviderFactory
From interface androidx.lifecycle.LifecycleOwner
From interface androidx.lifecycle.ViewModelStoreOwner
From interface androidx.savedstate.SavedStateRegistryOwner

Public Constructors

public FilterDialogFragment ()

Public Methods

public void dismiss ()

public void onActivityCreated (Bundle savedInstanceState)

public Dialog onCreateDialog (Bundle savedInstanceState)

public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

public boolean onMenuItemClick (MenuItem item)

public void onResume ()

public void onSaveInstanceState (Bundle state)

public void setApplyListener (FilterDialogFragment.OnApplyListener listener)

Set a listener to be notified when the apply button is tapped.

Parameters
listener a listener to be notified when the apply button is tapped

public void setDismissListener (FilterDialogFragment.OnDismissListener listener)

Set a listener to be notified when the dialog fragment is embedded has been dismissed.

Parameters
listener a listener to be notified when the dialog fragment is embedded has been dismissed.

Protected Methods

protected abstract void fillCellAtPosition (int section, int row, FormCell ob)

Bind the data values to the control at the row in a section. Application developer will have to cast the base control object to the specific control type.

Parameters
section section number of the view
row row number of the view
ob FormCell object at this location

protected abstract boolean filterHasChanged ()

Returns true if the filter has been changed.

Returns
  • true if the filter has been changed

protected abstract FormCell.WidgetType getCellTypeInSectionAtRow (int section, int row)

Return the enum for the control at the given row in the section

Parameters
section section number of the view
row row number of the view
Returns
  • FormCell.WidgetType type of control

protected abstract int getCountOfItemsInSection (int section)

Returns number of rows in a given section

Parameters
section section number
Returns
  • int number of rows in section

protected abstract int getNumberOfSections ()

Returns the number of sections in the view

Returns
  • int number of sections

protected abstract void resetChangeHandler ()

Need to implement to reset the values of the controls being used in filter activity to some default value