com.vaadin.server.communication
Class ConnectorHierarchyWriter

java.lang.Object
  extended by com.vaadin.server.communication.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

Constructor Summary
ConnectorHierarchyWriter()
           
 
Method Summary
 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.


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.