Companion

object Companion

Functions

Link copied to clipboard

Attach an arbitrary text provider. By default, this does nothing. Different validations can provide implementations to accept various provider types

Link copied to clipboard
fun <T, F : ValidatedField<T>> F.descriptionProvider(provider: BiFunction<T, String, MutableText?>): F

Provides a custom description (tooltip) provider implementation for the receiver field

Link copied to clipboard
fun <T, F : ValidatedField<T>> F.translationProvider(provider: BiFunction<T, String, MutableText?>): F

Provides a custom translation provider implementation for the receiver field

Link copied to clipboard
Link copied to clipboard
fun <T, F : ValidatedField<T>> F.withListener(listener: Consumer<F>): F

Attaches a listener to the receiver field. This listener will be called any time the field is written to ("set"). accept, validateAndSet, setAndUpdate and so on will all call the listener.