public class

FastFilterView

extends LinearLayoutCompat
implements CompoundButton.OnCheckedChangeListener
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ androidx.appcompat.widget.LinearLayoutCompat
         ↳ com.sap.cloud.mobile.fiori.listControls.FastFilterView

Class Overview

A custom control using chips for presenting multiple options to user to choose from.

A list of FastFilterView options containing names of all options ERROR(/#setChipGroupOptions(List)) should be specified.

Summary

Nested Classes
interface FastFilterView.ValueChangeListener  
XML Attributes
Attribute Name Related Method Description
FastFilterView_android_enabled  
FastFilterView_autoHideWhenNoOption  
FastFilterView_outlined  
FastFilterView_singleLine  
[Expand]
Inherited Constants
From class androidx.appcompat.widget.LinearLayoutCompat
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
FastFilterView(Context context)
Construct a new FastFilterFormCell with default styling, sets the CellType to WidgetType.FastFilterFormCell
FastFilterView(Context context, AttributeSet attrs)
Construct a new FastFilterFormCell with default styling, overriding the attributes for the control as requested, sets the CellType to WidgetType.FastFilterFormCell
Public Methods
List<FastFilterOption> getValue()
Returns the ordered list of selected items in the FastFilterFormCell
boolean isOutlined()
True when outlined chips are outlined.
boolean isSingleLine()
True when chips are displayed on a single line, that scrolls horizontally.
void onCheckedChanged(CompoundButton compoundButton, boolean isChecked)
void onRestoreInstanceState(Parcelable state)
Parcelable onSaveInstanceState()
void setAutoHideWhenNoSelection(boolean autoHideWhenNoSelection)
Should the cell auto hide when no chips are selected
void setEnabled(boolean enabled)
Enable or disable the view
void setFastFilterOptions(List<FastFilterOption> fastFilterOptions)
Set fast filter option to the cell.
void setOutlined(boolean outlined)
Indicate if chips should be outlined.
void setSingleLine(boolean singleLine)
When set to true, chips will be displayed on a single line that can scroll horizontally when the line is wider than the display.
void setValue(List<FastFilterOption> value)
Set the values available on FilterOptions
void setValueChangeListener(FastFilterView.ValueChangeListener listener)
Set the value change listenr
[Expand]
Inherited Methods
From class androidx.appcompat.widget.LinearLayoutCompat
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface android.widget.CompoundButton.OnCheckedChangeListener

XML Attributes

FastFilterView_android_enabled

Related Methods

FastFilterView_autoHideWhenNoOption

Related Methods

FastFilterView_outlined

Related Methods

FastFilterView_singleLine

Related Methods

Public Constructors

public FastFilterView (Context context)

Construct a new FastFilterFormCell with default styling, sets the CellType to WidgetType.FastFilterFormCell

Parameters
context context

public FastFilterView (Context context, AttributeSet attrs)

Construct a new FastFilterFormCell with default styling, overriding the attributes for the control as requested, sets the CellType to WidgetType.FastFilterFormCell

Parameters
context context
attrs attribute set

Public Methods

public List<FastFilterOption> getValue ()

Returns the ordered list of selected items in the FastFilterFormCell

See Also

public boolean isOutlined ()

True when outlined chips are outlined.

Returns
  • true when outlined chips are outlined.

public boolean isSingleLine ()

True when chips are displayed on a single line, that scrolls horizontally. Otherwise, chips are displayed on multiple lines.

public void onCheckedChanged (CompoundButton compoundButton, boolean isChecked)

public void onRestoreInstanceState (Parcelable state)

public Parcelable onSaveInstanceState ()

public void setAutoHideWhenNoSelection (boolean autoHideWhenNoSelection)

Should the cell auto hide when no chips are selected

public void setEnabled (boolean enabled)

Enable or disable the view

Parameters
enabled boolean

public void setFastFilterOptions (List<FastFilterOption> fastFilterOptions)

Set fast filter option to the cell. Values provided through fast filters remain part of the cell even when deselected.

public void setOutlined (boolean outlined)

Indicate if chips should be outlined.

Parameters
outlined true to outline chips, otherwise chips are not outlined.

public void setSingleLine (boolean singleLine)

When set to true, chips will be displayed on a single line that can scroll horizontally when the line is wider than the display. When set to false, chips will be displayed on multiple lines.

public void setValue (List<FastFilterOption> value)

Set the values available on FilterOptions

public void setValueChangeListener (FastFilterView.ValueChangeListener listener)

Set the value change listenr