Package org.zkoss.zk.ui.util

## Interface DesktopActivationListener

-     public interface DesktopActivationListener

  Used to notify an object stored in a desktop, when the session is going to be deactivated or has been activated.

  When a session is going to be deactivate, it checks every variable of a desktop to see whether this interface is implemented. If implemented, `willPassivate(org.zkoss.zk.ui.Desktop)` will be called. Similarly, `didActivate(org.zkoss.zk.ui.Desktop)` is called if the session has been activated.

  Since:
    3.6.2
  Author:
    tomyeh

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `didActivate​(Desktop desktop)` | Called when a session has just been activated (and its value has been deserialized).
    `void` | `willPassivate​(Desktop desktop)` | Called when a session is about to be passivated (and then serialize its value).

- - ### Method Detail

    - #### didActivate

          void didActivate​(Desktop desktop)

      Called when a session has just been activated (and its value has been deserialized).

    - #### willPassivate

          void willPassivate​(Desktop desktop)

      Called when a session is about to be passivated (and then serialize its value).