Class InsertOperation<T extends Signal<?>>
java.lang.Object
com.vaadin.flow.signals.operations.SignalOperation<Void>
com.vaadin.flow.signals.operations.InsertOperation<T>
- Type Parameters:
T- the type of the newly inserted signal
- All Implemented Interfaces:
Serializable
An operation that inserts a new child signal into a list or map. In addition
to the regular signal operation, there's also direct access to the newly
inserted child signal.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.signals.operations.SignalOperation
SignalOperation.Error<T extends @Nullable Object>, SignalOperation.Result<T extends @Nullable Object>, SignalOperation.ResultOrError<T extends @Nullable Object> -
Constructor Summary
ConstructorsConstructorDescriptionInsertOperation(T newSignal) Creates a new insert operation based on the new signal instance. -
Method Summary
Methods inherited from class com.vaadin.flow.signals.operations.SignalOperation
forwardMappedResult, map, result
-
Constructor Details
-
InsertOperation
Creates a new insert operation based on the new signal instance.- Parameters:
newSignal- the new signal instance, notnull
-
-
Method Details
-
signal
Gets the newly inserted signal instance. The instance can be used immediately even in cases where the result of the operation is not immediately confirmed.- Returns:
- the newly inserted signal instance, not
null
-