public class MetadataWriter extends Object implements Serializable
Constructor and Description |
---|
MetadataWriter() |
Modifier and Type | Method and Description |
---|---|
void |
write(UI ui,
Writer writer,
boolean repaintAll,
boolean async,
SystemMessages messages)
Writes a JSON object containing metadata related to the given UI.
|
public void write(UI ui, Writer writer, boolean repaintAll, boolean async, SystemMessages messages) throws IOException
ui
- The UI whose metadata to write.writer
- The writer used.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.IOException
- If the serialization fails.Copyright © 2017 Vaadin Ltd. All rights reserved.