Interface ComponentActivationListener

All Known Implementing Classes:
GenericAutowireComposer, GenericForwardComposer, SelectorComposer

public interface ComponentActivationListener
Used to notify an object stored in a component, 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 component to see whether this interface is implemented. If implemented, willPassivate(org.zkoss.zk.ui.Component) will be called. Similarly, didActivate(org.zkoss.zk.ui.Component) is called if the session has been activated.

Since:
3.6.2
Author:
tomyeh
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a session has just been activated (and its value has been deserialized).
    void
    Called when a session is about to be passivated (and then serialize its value).
  • Method Details

    • didActivate

      void didActivate(Component comp)
      Called when a session has just been activated (and its value has been deserialized).
    • willPassivate

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