ui / com.schibsted.account.ui.ui.component / FieldView

FieldView

abstract class FieldView : SchibstedView, InputField

Constructors

<init>

FieldView(context: Context?)
FieldView(context: Context?, attrs: AttributeSet?)

Properties

validationRule

lateinit var validationRule: ValidationRule

Inherited Properties

errorView

var errorView: TextView?

The error view used to display the error message

isErrorVisible

open var isErrorVisible: Boolean

Checks if an error view is currently displayed

labelView

lateinit var labelView: TextView

View used to display the label attached to the view

Inherited Functions

getInput

abstract fun getInput(): String?

Provides the complete input of this field if valid. Implementations should return null if the input is not valid.

isInputValid

abstract fun isInputValid(): Boolean

Checks if rules are respected for the input to be valid

setError

open fun setError(message: Int): Unit
open fun setError(message: String): Unit

setImeAction

abstract fun setImeAction(imeOption: Int, editorActionListener: OnEditorActionListener!): Unit

setTextWatcher

abstract fun setTextWatcher(textWatcher: TextWatcher!): Unit

Sets an external textWatcher to interact with the input field.

setTitle

fun setTitle(label: Int): Unit
fun setTitle(title: String): Unit

setTitleVisible

fun setTitleVisible(labelVisible: Boolean): Unit

Inheritors

CodeInputView

class CodeInputView : FieldView, OnClickListener, CustomEditText.KeyEventListener, OnLongClickListener

Widget made to allow the user to enter a 6 digits code

PhoneInputView

class PhoneInputView : FieldView

View use for phone number input

SingleFieldView

open class SingleFieldView : FieldView