Package org.zkoss.zk.ui.util

## Interface PageSerializationListener

-     public interface PageSerializationListener

  Used to notify an object stored in a page, when the page is going to be serialized or has been deserialized.

  When a page is going to be serialized, it checks every attribute (`Page.setAttribute(java.lang.String, java.lang.Object, int)`), listener (`Page.addEventListener(java.lang.String, org.zkoss.zk.ui.event.EventListener<? extends org.zkoss.zk.ui.event.Event>)`), and variable resolver (`Page.addVariableResolver(org.zkoss.xel.VariableResolver)`) to see whether this interface is implemented. If implemented, `willSerialize(org.zkoss.zk.ui.Page)` will be called. Similarly, `didDeserialize(org.zkoss.zk.ui.Page)` is called if the page has been deserialized.

  Since:
    2.4.0
  Author:
    tomyeh

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `didDeserialize​(Page page)` | Called when a page has de-serialized this object back.
    `void` | `willSerialize​(Page page)` | Called when a page is going to serialize this object.

- - ### Method Detail

    - #### willSerialize

          void willSerialize​(Page page)

      Called when a page is going to serialize this object.

    - #### didDeserialize

          void didDeserialize​(Page page)

      Called when a page has de-serialized this object back.