Class MetadataWriter

  • All Implemented Interfaces:
    Serializable

    public class MetadataWriter
    extends Object
    implements Serializable
    Serializes miscellaneous metadata to JSON.

    For internal use only. May be renamed or removed in a future release.

    Since:
    1.0
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Constructor Detail

      • MetadataWriter

        public MetadataWriter()
    • Method Detail

      • createMetadata

        public elemental.json.JsonObject createMetadata​(UI ui,
                                                        boolean repaintAll,
                                                        boolean async,
                                                        SystemMessages messages)
        Creates a JSON object containing metadata related to the given UI.
        Parameters:
        ui - The UI whose metadata to write.
        repaintAll - Whether the client should repaint everything.
        async - True if this message is sent by the server asynchronously, false if it is a response to a client message.
        messages - a SystemMessages containing client-side error messages.
        Returns:
        JSON object with the metadata