Uses of Interface
com.vaadin.signals.SignalCommand
Packages that use SignalCommand
-
Uses of SignalCommand in com.vaadin.signals
Subinterfaces of SignalCommand in com.vaadin.signalsModifier and TypeInterfaceDescriptionstatic interfaceA signal command that doesn't apply any change but only performs a test that will be part of determining whether a transaction passes.static interfaceA signal command that doesn't target a specific node.static interfaceA signal command that targets a map entry by key.static interfaceA signal command that creates a new signal node that might have an owner.static interfaceA signal command that sets the value of a signal.Classes in com.vaadin.signals that implement SignalCommandModifier and TypeClassDescriptionstatic final recordAdopts the given node as a child with the given key.static final recordAdopts the given node as a child at the given insertion position.static final recordRemoves all children from the target node.static final recordRemoves all nodes that have its scope owner set as the given id.static final recordIncrements the value of the given node by the given delta.static final recordInserts a new node with the given value at the given list insert position.static final recordTests whether the given node has the expected child for a specific map key.static final recordTests that the given node was last updated by the command with the given id.static final recordTests whether the given node has a given child at a given position.static final recordStores the given value in a child node with the given key.static final recordStores the given value in a child node with the given key if it doesn't already exist.static final recordRemoves the child with the given key, if present.static final recordRemoves the given node from its parent, optionally verifying that the parent is as expected.static final recordSets the value of the given node.static final recordInitializes a tree based on a collection of pre-existing nodes.static final recordA sequence of commands that should be applied atomically and only if all commands are individually accepted.static final recordTests whether the given node has the expected value, based on JSON equality.Fields in com.vaadin.signals with type parameters of type SignalCommandModifier and TypeFieldDescriptionprotected static final Predicate<SignalCommand>Signal.ANYTHING_GOESSignal validator that accepts anything.Methods in com.vaadin.signals that return types with arguments of type SignalCommandModifier and TypeMethodDescriptionSignalCommand.TransactionCommand.commands()Returns the value of thecommandsrecord component.protected Predicate<SignalCommand>Signal.mergeValidators(Predicate<SignalCommand> validator) Merges the validator used by this signal with the given validator.protected Predicate<SignalCommand>Signal.validator()Gets the validator used by this signal instance.Methods in com.vaadin.signals with parameters of type SignalCommandModifier and TypeMethodDescriptionstatic booleanSignalUtils.isValid(Signal<?> signal, SignalCommand command) Checks whether the given command is considered valid by the validator instance of the provided signal.protected SignalOperation<Void>Signal.submit(SignalCommand command) Submits a command for this signal and updates the created operation without a value once the command result is confirmed.protected <R> SignalOperation<R>Signal.submit(SignalCommand command, Function<CommandResult.Accept, R> resultConverter) Submits a command for this signal and uses the provided result converter to updates the created operation once the command result is confirmed.protected <R,O extends SignalOperation<R>>
OSignal.submit(SignalCommand command, Function<CommandResult.Accept, R> resultConverter, O operation) Submits a command for this signal and updates the given operation using the given result converter once the command result is confirmed.protected <I extends Signal<?>>
InsertOperation<I>Signal.submitInsert(SignalCommand command, Function<Id, I> childFactory) Submits a command for this signal and creates and insert operation that is updated once the command result is confirmed.protected <O extends SignalOperation<Void>>
OSignal.submitVoidOperation(SignalCommand command, O operation) Submits a command for this signal and updates the given operation without a value once the command result is confirmed.Method parameters in com.vaadin.signals with type arguments of type SignalCommandModifier and TypeMethodDescriptionprotected Predicate<SignalCommand>Signal.mergeValidators(Predicate<SignalCommand> validator) Merges the validator used by this signal with the given validator.ListSignal.withValidator(Predicate<SignalCommand> validator) Wraps this signal with a validator.MapSignal.withValidator(Predicate<SignalCommand> validator) Wraps this signal with a validator.NodeSignal.withValidator(Predicate<SignalCommand> validator) Wraps this signal with a validator.NumberSignal.withValidator(Predicate<SignalCommand> validator) Wraps this signal with a validator.ValueSignal.withValidator(Predicate<SignalCommand> validator) Wraps this signal with a validator.Constructor parameters in com.vaadin.signals with type arguments of type SignalCommandModifierConstructorDescriptionprotectedListSignal(SignalTree tree, Id id, Predicate<SignalCommand> validator, Class<T> elementType) Creates a new list signal instance with the given id and validator for the given signal tree with the given element type.protectedMapSignal(SignalTree tree, Id id, Predicate<SignalCommand> validator, Class<T> elementType) Creates a new map signal instance with the given id and validator for the given signal tree with the given element type.protectedNodeSignal(SignalTree tree, Id id, Predicate<SignalCommand> validator) Creates a new node signal based on the given tree, node id and validator.protectedNumberSignal(SignalTree tree, Id id, Predicate<SignalCommand> validator) Creates a new number signal instance with the given id and validator for the given signal tree.protectedSignal(SignalTree tree, Id id, Predicate<SignalCommand> validator) Creates a new signal instance with the given id and validator for the given signal tree.TransactionCommand(Id commandId, List<SignalCommand> commands) Creates an instance of aTransactionCommandrecord class.protectedValueSignal(SignalTree tree, Id id, Predicate<SignalCommand> validator, Class<T> valueType) Creates a new value signal instance with the given id and validator for the given signal tree with the given value type. -
Uses of SignalCommand in com.vaadin.signals.impl
Methods in com.vaadin.signals.impl that return types with arguments of type SignalCommandModifier and TypeMethodDescriptionCommandsAndHandlers.getCommands()Gets an unmodifiable view of the commands.Methods in com.vaadin.signals.impl with parameters of type SignalCommandModifier and TypeMethodDescriptionvoidMutableTreeRevision.apply(SignalCommand command, BiConsumer<Id, CommandResult> resultCollector) Applies a single command and passes the results to the provided handler.voidSignalTree.commitSingleCommand(SignalCommand command) Applies a single command to this tree without listening for the result.voidSignalTree.commitSingleCommand(SignalCommand command, Consumer<CommandResult> resultHandler) Applies a single command to this tree.voidStagedTransaction.include(SignalTree tree, SignalCommand command, Consumer<CommandResult> resultHandler, boolean applyToTree) voidTransaction.include(SignalTree tree, SignalCommand command, Consumer<CommandResult> resultHandler) Includes the given command to the given tree in the context of this transaction and sets the command to be applied to the underlying signal tree.protected abstract voidTransaction.include(SignalTree tree, SignalCommand command, Consumer<CommandResult> resultHandler, boolean applyToTree) Includes the given command to the given tree in the context of this transaction and optionally also sets the command to be applied to the underlying signal tree.Method parameters in com.vaadin.signals.impl with type arguments of type SignalCommandModifier and TypeMethodDescriptionvoidMutableTreeRevision.apply(List<SignalCommand> commands) Applies a sequence of commands and ignores the results.MutableTreeRevision.applyAndGetResults(List<SignalCommand> commands) Applies a sequence of commands and collects the results to a map.voidAsynchronousSignalTree.confirm(List<SignalCommand> commands) Adds a sequence of commands to the confirmed snapshot.protected voidSignalTree.notifyProcessedCommandSubscribers(List<SignalCommand> commands, Map<Id, CommandResult> results) Notifies all subscribers after a command is processed.voidCommandsAndHandlers.notifyResultHandlers(Map<Id, CommandResult> results, List<SignalCommand> commandOrder) Notifies and removes result handlers for the given results in the given order.protected abstract voidAsynchronousSignalTree.submit(List<SignalCommand> commands) Submits a sequence of commands to the event log.SignalTree.subscribeToProcessed(BiConsumer<SignalCommand, CommandResult> subscriber) Registers a callback that is executed after commands are processed (regardless of acceptance or rejection).Constructors in com.vaadin.signals.impl with parameters of type SignalCommandModifierConstructorDescriptionCommandsAndHandlers(SignalCommand command, Consumer<CommandResult> resultHandler) Creates a new command list with a single command and optional result handler.Constructor parameters in com.vaadin.signals.impl with type arguments of type SignalCommandModifierConstructorDescriptionCommandsAndHandlers(List<SignalCommand> commands, Map<Id, Consumer<CommandResult>> resultHandlers) Creates a new command list with the given commands and result handlers.