public class

SeparatorFormCell

extends LinearLayout
implements FormCell<T>
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.sap.cloud.mobile.fiori.formcell.SeparatorFormCell

Class Overview

A separator control that can be used as a partition between different sections of a view. By default it displays a line using the attributes of @android.R.attr.listDivider. When a caption is set, the caption is displayed instead of the line. The caption is styled with TextAppearance.Fiori.Formcell.Caption

Summary

[Expand]
Inherited Constants
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
SeparatorFormCell(Context context)
Construct a new Separator with default styling.
SeparatorFormCell(Context context, AttributeSet attrs)
Construct a new Separator with default styling, overriding the value attributes for the control as requested.
Public Methods
CharSequence getCaption()
Get the caption for the separator.
TextView getCaptionTextView()
int getCellType()
Return the type of the filter control being used.
CellValueChangeListener<CharSequence> getCellValueChangeListener()
Return the value change handler of the control
CharSequence getValue()
Get the value set on the Separator formcell
boolean isEditable()
Returns if the control is enabled or not to modify values.
void setCaption(CharSequence caption)
Set the caption for the separator.
void setCellValueChangeListener(CellValueChangeListener<CharSequence> listener)
void setEditable(boolean isEditable)
Set if the control is enabled or not to modify value of the control.
void setTextAppearance(int resId)
void setTextColor(int color)
void setTextColor(ColorStateList color)
void setValue(CharSequence value)
Set the value on Separator formcell
Protected Methods
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[Expand]
Inherited Methods
From class android.widget.LinearLayout
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 com.sap.cloud.mobile.fiori.formcell.FormCell

Public Constructors

public SeparatorFormCell (Context context)

Construct a new Separator with default styling.

Parameters
context context

public SeparatorFormCell (Context context, AttributeSet attrs)

Construct a new Separator with default styling, overriding the value attributes for the control as requested.

Parameters
context context
attrs attribute set

Public Methods

public CharSequence getCaption ()

Get the caption for the separator.

Returns
  • the caption for the separator. Use getValue() instead

public TextView getCaptionTextView ()

public int getCellType ()

Return the type of the filter control being used.

Returns
  • WidgetType type of the control

public CellValueChangeListener<CharSequence> getCellValueChangeListener ()

Return the value change handler of the control

Returns
  • OnCellChangeListener - value change listener of the control

public CharSequence getValue ()

Get the value set on the Separator formcell

Returns
  • T - value of the property

public boolean isEditable ()

Returns if the control is enabled or not to modify values.

Returns
  • Boolean user is allowed to modify the value of the control

public void setCaption (CharSequence caption)

Set the caption for the separator. To remove the caption set it to an empty string.

Parameters
caption the caption for the separator. Use setValue(CharSequence) instead

public void setCellValueChangeListener (CellValueChangeListener<CharSequence> listener)

public void setEditable (boolean isEditable)

Set if the control is enabled or not to modify value of the control. In readOnly mode, however, the text labels and text values will be selectable. By default, the control will be editable( user can modify value of the control)

Parameters
isEditable Boolean

public void setTextAppearance (int resId)

public void setTextColor (int color)

public void setTextColor (ColorStateList color)

public void setValue (CharSequence value)

Set the value on Separator formcell

Parameters
value value of the property

Protected Methods

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)