Package org.zkoss.zk.ui.util
Interface DesktopSerializationListener
-
public interface DesktopSerializationListener
Used to notify an object stored in a desktop, when the desktop is going to be serialized or has been deserialized.When a desktop is going to be serialized, it checks every attribute (
Desktop.setAttribute(java.lang.String, java.lang.Object)
) to see whether this interface is implemented. If implemented,willSerialize(org.zkoss.zk.ui.Desktop)
will be called. Similarly,didDeserialize(org.zkoss.zk.ui.Desktop)
is called if the desktop has been deserialized.- Since:
- 2.4.0
- Author:
- tomyeh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
didDeserialize(Desktop desktop)
Called when a desktop has de-serialized this object back.void
willSerialize(Desktop desktop)
Called when a desktop is going to serialize this object.
-