interface InputField : ErrorField
Describes an input field which is entitled to prevent access to its content if it is considered invalid. Implementations should verify their input before potentially providing it.
abstract var isErrorVisible: Boolean
Checks if an error view is currently displayed |
abstract fun getInput(): String?
Provides the complete input of this field if valid. Implementations should return |
|
abstract fun isInputValid(): Boolean
Checks if rules are respected for the input to be valid |
|
abstract fun setImeAction(imeOption: Int, editorActionListener: OnEditorActionListener!): Unit |
|
abstract fun setTextWatcher(textWatcher: TextWatcher!): Unit
Sets an external textWatcher to interact with the input field. |
abstract fun hideErrorView(): Unit
Hides the error message previously displayed |
|
abstract fun setError(message: Int): Unit abstract fun setError(message: String): Unit |
|
abstract fun showErrorView(): Unit
Displays an error message related to the input field |
abstract class FieldView : SchibstedView, InputField |