ValueEvent

sealed class ValueEvent<T> : FormManagerEvent<T> (source)

Event emitted by the form manager signaling a change in a value of type T of the form.

Inheritors

Types

Link copied to clipboard
data class Add<T, TChildren>(val value: T, val addedValue: TChildren, val id: AbsolutePathFragment.Id, val path: AbsolutePath, val schema: CollectionSchema<T, TChildren>) : ValueEvent<T>

Event that indicates the addition of elements of type TChildren to a collection of type T.

Link copied to clipboard
data class Change<T>(val oldValue: T, val value: T, val path: AbsolutePath, val schema: Schema<T>) : ValueEvent<T>

Event that indicates that a certain value of type T has changed.

Link copied to clipboard
data class Destroy<T>(val oldValue: T, val path: AbsolutePath, val schema: Schema<T>) : ValueEvent<T>

Event that indicates that a value of type T has been destroyed.

Link copied to clipboard
data class Init<T>(val value: T, val path: AbsolutePath, val schema: Schema<T>) : ValueEvent<T>

Event that indicates the initialisation of a value of type T.

Link copied to clipboard
data class Remove<T, TChildren>(val value: T, val removedValue: TChildren, val id: AbsolutePathFragment.Id, val path: AbsolutePath, val schema: CollectionSchema<T, TChildren>) : ValueEvent<T>

Event that indicates the removal of elements of type TChildren from a collection of type T.

Properties

Link copied to clipboard
abstract val oldValue: T?

Value before the event occurred.

Link copied to clipboard
open override val path: AbsolutePath

Path associated with the event.

Link copied to clipboard
open override val schema: Schema<T>

Schema of the value associated with the event.

Link copied to clipboard
abstract val value: T?

Value after the event occurred, as found in the form manager.