Interface ComponentSerializationListener


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

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

Since:
2.4.0
Author:
tomyeh
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a component has de-serialized this object back.
    void
    Called when a component is going to serialize this object.
  • Method Details

    • willSerialize

      void willSerialize(Component comp)
      Called when a component is going to serialize this object.
    • didDeserialize

      void didDeserialize(Component comp)
      Called when a component has de-serialized this object back.