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)) 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
 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.
 

Method Detail

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.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo