Class ConnectorHierarchyWriter

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConnectorHierarchyWriter
    extends java.lang.Object
    implements java.io.Serializable
    Serializes a connector hierarchy to JSON.
    Since:
    7.1
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(UI ui, java.io.Writer writer, java.util.Set<java.lang.String> stateUpdateConnectors)
      Writes a JSON object containing the connector hierarchy (parent-child mappings) of the dirty connectors in the given UI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectorHierarchyWriter

        public ConnectorHierarchyWriter()
    • Method Detail

      • write

        public void write​(UI ui,
                          java.io.Writer writer,
                          java.util.Set<java.lang.String> stateUpdateConnectors)
                   throws java.io.IOException
        Writes a JSON object containing the connector hierarchy (parent-child mappings) of the dirty connectors in the given UI.
        Parameters:
        ui - The UI whose hierarchy to write.
        writer - The Writer used to write the JSON.
        stateUpdateConnectors - connector ids with state changes
        Throws:
        java.io.IOException - If the serialization fails.