Class LegacyUidlWriter

  • All Implemented Interfaces:
    java.io.Serializable

    public class LegacyUidlWriter
    extends java.lang.Object
    implements java.io.Serializable
    Serializes legacy UIDL changes 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, PaintTarget target)
      Writes a JSON array containing the changes of all dirty LegacyComponents in the given UI.
      • Methods inherited from class java.lang.Object

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

      • LegacyUidlWriter

        public LegacyUidlWriter()
    • Method Detail

      • write

        public void write​(UI ui,
                          java.io.Writer writer,
                          PaintTarget target)
                   throws java.io.IOException
        Writes a JSON array containing the changes of all dirty LegacyComponents in the given UI.
        Parameters:
        ui - The UI whose legacy changes to write
        writer - The Writer to write the JSON with
        target - The PaintTarget to use
        Throws:
        java.io.IOException - If the serialization fails.