com.vaadin.signals.operations.

Class InsertOperation<T extends Signal<?>>

java.lang.Object
com.vaadin.signals.operations.SignalOperation<Void>
com.vaadin.signals.operations.InsertOperation<T>

Type Parameters:

T - the type of the newly inserted signal

public class InsertOperation<T extends Signal<?>> extends SignalOperation<Void>

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.

  • Constructor Details

    • InsertOperation

      public InsertOperation(T newSignal)

      Creates a new insert operation based on the new signal instance.

      Parameters:

      newSignal - the new signal instance, not null

  • Method Details

    • signal

      public T 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