Class ListStateEvent<T>
java.lang.Object
com.vaadin.hilla.signals.core.event.ListStateEvent<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible types of state events.static final classThe field names used in the JSON representation of the state event.static enumPossible types of state events.static interfacestatic interface -
Constructor Summary
ConstructorsConstructorDescriptionListStateEvent(com.fasterxml.jackson.databind.node.ObjectNode json, Class<T> valueType) Creates a new state event using the given JSON representation.ListStateEvent(String id, ListStateEvent.EventType eventType, Collection<ListStateEvent.ListEntry<T>> entries) ListStateEvent(String id, ListStateEvent.EventType eventType, T value, ListStateEvent.InsertPosition insertPosition) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractParentSignalId(com.fasterxml.jackson.databind.JsonNode json) getId()getValue()voidsetAccepted(Boolean accepted) voidsetEntryId(UUID entryId) voidsetValidationError(String validationError) com.fasterxml.jackson.databind.node.ObjectNodetoJson()
-
Constructor Details
-
ListStateEvent
public ListStateEvent(String id, ListStateEvent.EventType eventType, Collection<ListStateEvent.ListEntry<T>> entries) -
ListStateEvent
public ListStateEvent(String id, ListStateEvent.EventType eventType, T value, ListStateEvent.InsertPosition insertPosition) -
ListStateEvent
Creates a new state event using the given JSON representation.- Parameters:
json- The JSON representation of the event.
-
-
Method Details
-
extractParentSignalId
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson() -
getId
-
getEventType
-
getEntries
-
getValue
-
getPosition
-
getEntryId
-
setEntryId
-
getAccepted
-
setAccepted
-
getValidationError
-
setValidationError
-