Package org.zkoss.zk.ui.util
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
didDeserialize(Component comp)
Called when a component has de-serialized this object back.void
willSerialize(Component comp)
Called when a component is going to serialize this object.
-