public interface

FormCell

com.sap.cloud.mobile.fiori.formcell.FormCell<T>
Known Indirect Subclasses

Class Overview

This interface needs to be implemented by all filter controls. T is the data-type of value passed to filter control implementing this interface.

Summary

Nested Classes
enum FormCell.CellChangeListenerMode EditText change listener mode  
class FormCell.CellValueChangeListener<T> A callback that notifies clients when the value of the control has been changed. 
enum FormCell.WidgetType Filter controls that can be used  
Public Methods
abstract int getCellType()
Return the type of the filter control being used.
abstract CellValueChangeListener<T> getCellValueChangeListener()
Return the value change handler of the control
abstract T getValue()
Return the value of the property of the control
abstract boolean isEditable()
Returns if the control is enabled or not to modify values.
abstract void setCellValueChangeListener(CellValueChangeListener<T> listener)
Set the value change listener of the control
abstract void setEditable(boolean isEditable)
Set if the control is enabled or not to modify value of the control.
abstract void setValue(T value)
Sets the value of the property of the control.

Public Methods

public abstract int getCellType ()

Return the type of the filter control being used.

Returns
  • WidgetType type of the control

public abstract CellValueChangeListener<T> getCellValueChangeListener ()

Return the value change handler of the control

Returns
  • OnCellChangeListener - value change listener of the control

public abstract T getValue ()

Return the value of the property of the control

Returns
  • T - value of the property

public abstract 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 abstract void setCellValueChangeListener (CellValueChangeListener<T> listener)

Set the value change listener of the control

Parameters
listener value change listener of the control

public abstract 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 abstract void setValue (T value)

Sets the value of the property of the control.

Parameters
value value of the property