NamedField

class NamedField<T, C>(name: String, nameVisualizer: ItemVisualizer<String, Any>, valueVisualizer: ItemVisualizer<T, C>, layout: ConstraintDslContext.(Bounds, Bounds) -> Unit?) : ItemVisualizer<T, C> (source)

Constructors

Link copied to clipboard
constructor(name: String, nameVisualizer: ItemVisualizer<String, Any>, valueVisualizer: ItemVisualizer<T, C>, layout: ConstraintDslContext.(Bounds, Bounds) -> Unit?)

Functions

Link copied to clipboard
open operator override fun invoke(item: T, previous: View?, context: C): View

Called whenever an item needs to be translated to a View.

Inherited functions

Link copied to clipboard
fun <T, R, C> ItemVisualizer<R, C>.after(mapper: (T) -> R): ItemVisualizer<T, C>

Creates a visualizer for T using a visualizer for R by mapping T -> R.

Link copied to clipboard
operator fun <T> ItemVisualizer<T, Any>.invoke(item: T, previous: View? = null): View