Package com.vaadin.collaborationengine
Interface CollaborationMessageSubmitter
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Submitter of messages. A submitter can be set on a
CollaborationMessageList
to setup the message appending logic when
the connection to the associated topic is activated and also to return a
callback to handle connection deactivation (e.g. disabling an input field).- Since:
- 3.1
- Author:
- Vaadin Ltd.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
The activation context of aCollaborationMessageSubmitter
. -
Method Summary
Modifier and TypeMethodDescriptiononActivation
(CollaborationMessageSubmitter.ActivationContext activationContext) Handles the activation of the submitter, for example setting up an input component to append new messages using theCollaborationMessageSubmitter.ActivationContext.appendMessage(String)
method.
-
Method Details
-
onActivation
Handles the activation of the submitter, for example setting up an input component to append new messages using theCollaborationMessageSubmitter.ActivationContext.appendMessage(String)
method. The returnedRegistration
callback can be used to handle the deactivation of the submitter, for example to disable an input component.- Parameters:
activationContext
- the activation context- Returns:
- the registration which will be removed when the connection is deactivated, not null
-