Uses of Interface
com.vaadin.signals.impl.CommandResult
Packages that use CommandResult
-
Uses of CommandResult in com.vaadin.signals.impl
Classes in com.vaadin.signals.impl that implement CommandResultModifier and TypeClassDescriptionstatic final recordAn accepted command.static final recordA rejected command, together with the reason for the rejection.Methods in com.vaadin.signals.impl that return CommandResultModifier and TypeMethodDescriptionstatic CommandResultCommandResult.conditional(boolean condition, String reasonIfFailed) Creates an accepted or rejected result depending on the provided condition.Methods in com.vaadin.signals.impl that return types with arguments of type CommandResultModifier and TypeMethodDescriptionMutableTreeRevision.applyAndGetResults(List<SignalCommand> commands) Applies a sequence of commands and collects the results to a map.CommandsAndHandlers.getResultHandlers()Gets an unmodifiable map of the result handlers.static Map<Id, CommandResult> CommandResult.rejectAll(Map<Id, CommandResult> results, String reason) Creates a copy of the given map of command results where all accepted results are replaced with the same rejection.Method parameters in com.vaadin.signals.impl with type arguments of type CommandResultModifier 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, 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.protected voidSignalTree.notifyProcessedCommandSubscribers(List<SignalCommand> commands, Map<Id, CommandResult> results) Notifies all subscribers after a command is processed.voidCommandsAndHandlers.notifyResultHandlers(Map<Id, CommandResult> results) Notifies and removes result handlers for the given results.voidCommandsAndHandlers.notifyResultHandlers(Map<Id, CommandResult> results, List<SignalCommand> commandOrder) Notifies and removes result handlers for the given results in the given order.static Map<Id, CommandResult> CommandResult.rejectAll(Map<Id, CommandResult> results, String reason) Creates a copy of the given map of command results where all accepted results are replaced with the same rejection.SignalTree.subscribeToProcessed(BiConsumer<SignalCommand, CommandResult> subscriber) Registers a callback that is executed after commands are processed (regardless of acceptance or rejection).Constructor parameters in com.vaadin.signals.impl with type arguments of type CommandResultModifierConstructorDescriptionCommandsAndHandlers(SignalCommand command, Consumer<CommandResult> resultHandler) Creates a new command list with a single command and optional result handler.CommandsAndHandlers(List<SignalCommand> commands, Map<Id, Consumer<CommandResult>> resultHandlers) Creates a new command list with the given commands and result handlers.