abstract class FieldView : SchibstedView, InputField
FieldView(context: Context?) FieldView(context: Context?, attrs: AttributeSet?) |
lateinit var validationRule: ValidationRule |
var errorView: TextView?
The error view used to display the error message |
|
open var isErrorVisible: Boolean
Checks if an error view is currently displayed |
|
lateinit var labelView: TextView
View used to display the label attached to the view |
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 |
|
open fun setError(message: Int): Unit open fun setError(message: String): Unit |
|
abstract fun setImeAction(imeOption: Int, editorActionListener: OnEditorActionListener!): Unit |
|
abstract fun setTextWatcher(textWatcher: TextWatcher!): Unit
Sets an external textWatcher to interact with the input field. |
|
fun setTitle(label: Int): Unit fun setTitle(title: String): Unit |
|
fun setTitleVisible(labelVisible: Boolean): Unit |
class CodeInputView : FieldView, OnClickListener, CustomEditText.KeyEventListener, OnLongClickListener
Widget made to allow the user to enter a 6 digits code |
|
class PhoneInputView : FieldView
View use for phone number input |
|
open class SingleFieldView : FieldView |