ui / com.schibsted.account.ui.ui.component / SchibstedView

SchibstedView

abstract class SchibstedView : LinearLayout, ErrorField

Constructors

<init>

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

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

Functions

setError

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

setTitle

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

setTitleVisible

fun setTitleVisible(labelVisible: Boolean): Unit

Inherited Functions

hideErrorView

abstract fun hideErrorView(): Unit

Hides the error message previously displayed

showErrorView

abstract fun showErrorView(): Unit

Displays an error message related to the input field

Inheritors

CheckBoxView

class CheckBoxView : SchibstedView

Defines a custom checkbox error resources and attach a text to this checkbox If you have a android.text.style.ClickableSpan inside your text you should use this class rather than CheckBox in order to avoid to give a focus to the android.text.style.ClickableSpan when clicking on the CheckBox

FieldView

abstract class FieldView : SchibstedView, InputField